summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_ddb.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-12-15 01:26:33 +0000
committersam <sam@FreeBSD.org>2008-12-15 01:26:33 +0000
commitdc256886cd00e7367a087d21fe06be26030d80e0 (patch)
treec93f57c8693451ef5985e24651f8da4d8456781a /sys/net80211/ieee80211_ddb.c
parent3ec60cf583778dfd58f3aef1e866bb688c51c04d (diff)
downloadFreeBSD-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_ddb.c')
-rw-r--r--sys/net80211/ieee80211_ddb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ddb.c b/sys/net80211/ieee80211_ddb.c
index 8334d77..59c6a46 100644
--- a/sys/net80211/ieee80211_ddb.c
+++ b/sys/net80211/ieee80211_ddb.c
@@ -542,7 +542,7 @@ _db_show_com(const struct ieee80211com *ic, int showvaps, int showsta, int showp
*/
db_printf("\tnchans %d", ic->ic_nchans);
#if 0
- struct ieee80211_channel ic_channels[IEEE80211_CHAN_MAX+1];
+ struct ieee80211_channel ic_channels[IEEE80211_CHAN_MAX];
uint8_t ic_chan_avail[IEEE80211_CHAN_BYTES];
uint8_t ic_chan_active[IEEE80211_CHAN_BYTES];
uint8_t ic_chan_scan[IEEE80211_CHAN_BYTES];
OpenPOWER on IntegriCloud