Date: Mon, 16 May 2016 02:27:28 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299883 - head/sys/dev/iwm Message-ID: <201605160227.u4G2RSM5086262@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Mon May 16 02:27:28 2016 New Revision: 299883 URL: https://svnweb.freebsd.org/changeset/base/299883 Log: Follow-up r298818: hide size of 'bands' array behind a macro. Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm/if_iwm.c ============================================================================== --- head/sys/dev/iwm/if_iwm.c Mon May 16 02:23:58 2016 (r299882) +++ head/sys/dev/iwm/if_iwm.c Mon May 16 02:27:28 2016 (r299883) @@ -1725,7 +1725,7 @@ iwm_init_channel_map(struct ieee80211com { 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605160227.u4G2RSM5086262>