1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Follow-up r298818: hide size of 'bands' array behind a macro.

This commit is contained in:
Kevin Lo 2016-05-16 02:27:28 +00:00
parent 0ee6da55a6
commit cbb62fa6aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299883

View File

@ -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. */