svn commit: r299883 - head/sys/dev/iwm

Kevin Lo kevlo at FreeBSD.org
Mon May 16 02:27:29 UTC 2016


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


More information about the svn-src-head mailing list