diff options
author | sam <sam@FreeBSD.org> | 2008-12-15 01:26:33 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-12-15 01:26:33 +0000 |
commit | dc256886cd00e7367a087d21fe06be26030d80e0 (patch) | |
tree | c93f57c8693451ef5985e24651f8da4d8456781a /sys/net80211/_ieee80211.h | |
parent | 3ec60cf583778dfd58f3aef1e866bb688c51c04d (diff) | |
download | FreeBSD-src-dc256886cd00e7367a087d21fe06be26030d80e0.zip FreeBSD-src-dc256886cd00e7367a087d21fe06be26030d80e0.tar.gz |
Fix definition of IEEE80211_CHAN_MAX; it was defined as 255 but
really was meant to be 256. Adjust usage accordingly and replace
bogus usage of this value in checking IEEE channel #'s.
NB: this causes an ABI change; ifconfig must be recompiled
Diffstat (limited to 'sys/net80211/_ieee80211.h')
-rw-r--r-- | sys/net80211/_ieee80211.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/_ieee80211.h b/sys/net80211/_ieee80211.h index b735b5c..f5858fe 100644 --- a/sys/net80211/_ieee80211.h +++ b/sys/net80211/_ieee80211.h @@ -137,7 +137,7 @@ struct ieee80211_channel { uint8_t ic_extieee; /* HT40 extension channel number */ }; -#define IEEE80211_CHAN_MAX 255 +#define IEEE80211_CHAN_MAX 256 #define IEEE80211_CHAN_BYTES 32 /* howmany(IEEE80211_CHAN_MAX, NBBY) */ #define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */ #define IEEE80211_CHAN_ANYC \ |