From cbb62fa6aa73b4a7e6bb763de4d8807f5f054934 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Mon, 16 May 2016 02:27:28 +0000 Subject: [PATCH] Follow-up r298818: hide size of 'bands' array behind a macro. --- sys/dev/iwm/if_iwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 220d5a06ecea..45549665da9c 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. */