summaryrefslogtreecommitdiffstats
path: root/sys/dev/urtwn/if_urtwn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/urtwn/if_urtwn.c')
-rw-r--r--sys/dev/urtwn/if_urtwn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/urtwn/if_urtwn.c b/sys/dev/urtwn/if_urtwn.c
index d79ea2b..dce9d19 100644
--- a/sys/dev/urtwn/if_urtwn.c
+++ b/sys/dev/urtwn/if_urtwn.c
@@ -490,7 +490,7 @@ urtwn_attach(device_t self)
struct usb_attach_arg *uaa = device_get_ivars(self);
struct urtwn_softc *sc = device_get_softc(self);
struct ieee80211com *ic = &sc->sc_ic;
- uint8_t bands[howmany(IEEE80211_MODE_MAX, 8)];
+ uint8_t bands[IEEE80211_MODE_BYTES];
int error;
device_set_usb_desc(self);
OpenPOWER on IntegriCloud