diff options
author | kevlo <kevlo@FreeBSD.org> | 2016-05-16 02:27:28 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2016-05-16 02:27:28 +0000 |
commit | f4cddde38abccb7ce45a25e00bc94c4e2759dba9 (patch) | |
tree | ba3739232b07638207273a8cc9ad12b25a88105f /sys/dev/iwm/if_iwm.c | |
parent | 98bc5f3a9802132ebb93aa04aad1e4e972882c02 (diff) | |
download | FreeBSD-src-f4cddde38abccb7ce45a25e00bc94c4e2759dba9.zip FreeBSD-src-f4cddde38abccb7ce45a25e00bc94c4e2759dba9.tar.gz |
Follow-up r298818: hide size of 'bands' array behind a macro.
Diffstat (limited to 'sys/dev/iwm/if_iwm.c')
-rw-r--r-- | sys/dev/iwm/if_iwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 220d5a0..4554966 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -1725,7 +1725,7 @@ iwm_init_channel_map(struct ieee80211com *ic, int maxchans, int *nchans, { struct iwm_softc *sc = ic->ic_softc; struct iwm_nvm_data *data = &sc->sc_nvm; - uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)]; + uint8_t bands[IEEE80211_MODE_BYTES]; memset(bands, 0, sizeof(bands)); /* 1-13: 11b/g channels. */ |