diff options
author | avos <avos@FreeBSD.org> | 2016-04-29 22:14:11 +0000 |
---|---|---|
committer | avos <avos@FreeBSD.org> | 2016-04-29 22:14:11 +0000 |
commit | 9c2f5157e79ad3b61010120d7f03c4d3223d3c38 (patch) | |
tree | d5493e2c620a2478b160e46203a8b64047ba2651 /sys/dev/usb/wlan/if_run.c | |
parent | d791a14b7227a0d12c7545985887bd2923434b16 (diff) | |
download | FreeBSD-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.c | 2 |
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; |