summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/wlan/if_run.c
diff options
context:
space:
mode:
authoravos <avos@FreeBSD.org>2016-04-29 22:14:11 +0000
committeravos <avos@FreeBSD.org>2016-04-29 22:14:11 +0000
commit9c2f5157e79ad3b61010120d7f03c4d3223d3c38 (patch)
treed5493e2c620a2478b160e46203a8b64047ba2651 /sys/dev/usb/wlan/if_run.c
parentd791a14b7227a0d12c7545985887bd2923434b16 (diff)
downloadFreeBSD-src-9c2f5157e79ad3b61010120d7f03c4d3223d3c38.zip
FreeBSD-src-9c2f5157e79ad3b61010120d7f03c4d3223d3c38.tar.gz
net80211 + drivers: hide size of 'bands' array behind a macro.
Auto-replace 'howmany(IEEE80211_MODE_MAX, 8)' with 'IEEE80211_MODE_BYTES'. No functional changes.
Diffstat (limited to 'sys/dev/usb/wlan/if_run.c')
-rw-r--r--sys/dev/usb/wlan/if_run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c
index fe115ed..74a83ec 100644
--- a/sys/dev/usb/wlan/if_run.c
+++ b/sys/dev/usb/wlan/if_run.c
@@ -704,7 +704,7 @@ run_attach(device_t self)
struct usb_attach_arg *uaa = device_get_ivars(self);
struct ieee80211com *ic = &sc->sc_ic;
uint32_t ver;
- uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
+ uint8_t bands[IEEE80211_MODE_BYTES];
uint8_t iface_index;
int ntries, error;
OpenPOWER on IntegriCloud