diff options
author | 2006-11-26 11:14:17 +0000 | |
---|---|---|
committer | 2006-11-26 11:14:17 +0000 | |
commit | f2cd5b67881e9bb071096f9e7a0fa7932126cc3c (patch) | |
tree | 56e8494ac5cb4c9933fdc90d765e22b12951cc36 /sys/dev/usb/if_uath.c | |
parent | correct hardware revision mask. (diff) | |
download | wireguard-openbsd-f2cd5b67881e9bb071096f9e7a0fa7932126cc3c.tar.xz wireguard-openbsd-f2cd5b67881e9bb071096f9e7a0fa7932126cc3c.zip |
do not have each net80211 driver define its own rates structures. if they use
the standard rates, use some defined by net80211 itself. kernel shrinks a bit
ok jsg mglocker
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r-- | sys/dev/usb/if_uath.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c index 3a30a58d718..ae98cfd67b3 100644 --- a/sys/dev/usb/if_uath.c +++ b/sys/dev/usb/if_uath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_uath.c,v 1.11 2006/10/03 19:48:21 damien Exp $ */ +/* $OpenBSD: if_uath.c,v 1.12 2006/11/26 11:14:22 deraadt Exp $ */ /*- * Copyright (c) 2006 @@ -194,15 +194,6 @@ Static void uath_stop(struct ifnet *, int); Static int uath_loadfirmware(struct uath_softc *, const u_char *, int); Static int uath_activate(device_ptr_t, enum devact); -/* - * Supported rates for 802.11b/g modes (in 500Kbps unit). - */ -static const struct ieee80211_rateset uath_rateset_11b = - { 4, { 2, 4, 11, 22 } }; - -static const struct ieee80211_rateset uath_rateset_11g = - { 12, { 2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108 } }; - USB_DECLARE_DRIVER(uath); USB_MATCH(uath) @@ -369,8 +360,8 @@ USB_ATTACH(uath) IEEE80211_C_WEP; /* h/w WEP */ /* set supported .11b and .11g rates */ - ic->ic_sup_rates[IEEE80211_MODE_11B] = uath_rateset_11b; - ic->ic_sup_rates[IEEE80211_MODE_11G] = uath_rateset_11g; + ic->ic_sup_rates[IEEE80211_MODE_11B] = ieee80211_std_rateset_11b; + ic->ic_sup_rates[IEEE80211_MODE_11G] = ieee80211_std_rateset_11g; /* set supported .11b and .11g channels (1 through 14) */ for (i = 1; i <= 14; i++) { |