simplify display of 1/2 and 1/4 width channels
This commit is contained in:
parent
2f686fcee3
commit
2da7e03a99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187843
@ -3119,23 +3119,16 @@ get_chaninfo(const struct ieee80211_channel *c, int precise,
|
|||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
if (IEEE80211_IS_CHAN_FHSS(c))
|
if (IEEE80211_IS_CHAN_FHSS(c))
|
||||||
strlcat(buf, " FHSS", bsize);
|
strlcat(buf, " FHSS", bsize);
|
||||||
if (IEEE80211_IS_CHAN_A(c)) {
|
if (IEEE80211_IS_CHAN_A(c))
|
||||||
if (IEEE80211_IS_CHAN_HALF(c))
|
strlcat(buf, " 11a", bsize);
|
||||||
strlcat(buf, " 11a/10Mhz", bsize);
|
else if (IEEE80211_IS_CHAN_ANYG(c))
|
||||||
else if (IEEE80211_IS_CHAN_QUARTER(c))
|
strlcat(buf, " 11g", bsize);
|
||||||
strlcat(buf, " 11a/5Mhz", bsize);
|
else if (IEEE80211_IS_CHAN_B(c))
|
||||||
else
|
|
||||||
strlcat(buf, " 11a", bsize);
|
|
||||||
}
|
|
||||||
if (IEEE80211_IS_CHAN_ANYG(c)) {
|
|
||||||
if (IEEE80211_IS_CHAN_HALF(c))
|
|
||||||
strlcat(buf, " 11g/10Mhz", bsize);
|
|
||||||
else if (IEEE80211_IS_CHAN_QUARTER(c))
|
|
||||||
strlcat(buf, " 11g/5Mhz", bsize);
|
|
||||||
else
|
|
||||||
strlcat(buf, " 11g", bsize);
|
|
||||||
} else if (IEEE80211_IS_CHAN_B(c))
|
|
||||||
strlcat(buf, " 11b", bsize);
|
strlcat(buf, " 11b", bsize);
|
||||||
|
if (IEEE80211_IS_CHAN_HALF(c))
|
||||||
|
strlcat(buf, "/10Mhz", bsize);
|
||||||
|
if (IEEE80211_IS_CHAN_QUARTER(c))
|
||||||
|
strlcat(buf, "/5Mhz", bsize);
|
||||||
if (IEEE80211_IS_CHAN_TURBO(c))
|
if (IEEE80211_IS_CHAN_TURBO(c))
|
||||||
strlcat(buf, " Turbo", bsize);
|
strlcat(buf, " Turbo", bsize);
|
||||||
if (precise) {
|
if (precise) {
|
||||||
|
Loading…
Reference in New Issue
Block a user