1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

wi: fix a typo.

The max size of bitmask is IEEE80211_MODE_BYTES, not IEEE80211_MODE_MAX.

Reuse it in bwn(4) while I'm here.

Noticed by:	kevlo
This commit is contained in:
Andriy Voskoboinyk 2016-05-20 08:58:06 +00:00
parent fa13831f86
commit 4328ca5a21
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300292
2 changed files with 2 additions and 2 deletions

View File

@ -1498,7 +1498,7 @@ bwn_setup_channels(struct bwn_mac *mac, int have_bg, int have_a)
{
struct bwn_softc *sc = mac->mac_sc;
struct ieee80211com *ic = &sc->sc_ic;
uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
uint8_t bands[IEEE80211_MODE_BYTES];
memset(ic->ic_channels, 0, sizeof(ic->ic_channels));
ic->ic_nchans = 0;

View File

@ -691,7 +691,7 @@ wi_getradiocaps(struct ieee80211com *ic,
int maxchans, int *nchans, struct ieee80211_channel chans[])
{
struct wi_softc *sc = ic->ic_softc;
u_int8_t bands[IEEE80211_MODE_MAX];
u_int8_t bands[IEEE80211_MODE_BYTES];
int i;
memset(bands, 0, sizeof(bands));