summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_ral.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-11-26 11:14:17 +0000
committerderaadt <deraadt@openbsd.org>2006-11-26 11:14:17 +0000
commitf2cd5b67881e9bb071096f9e7a0fa7932126cc3c (patch)
tree56e8494ac5cb4c9933fdc90d765e22b12951cc36 /sys/dev/usb/if_ral.c
parentcorrect hardware revision mask. (diff)
downloadwireguard-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_ral.c')
-rw-r--r--sys/dev/usb/if_ral.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index 506caa91eb1..a0637f7555a 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.83 2006/11/19 16:44:36 damien Exp $ */
+/* $OpenBSD: if_ral.c,v 1.84 2006/11/26 11:14:22 deraadt Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -173,15 +173,6 @@ Static void ural_amrr_timeout(void *);
Static void ural_amrr_update(usbd_xfer_handle, usbd_private_handle,
usbd_status status);
-/*
- * Supported rates for 802.11b/g modes (in 500Kbps unit).
- */
-static const struct ieee80211_rateset ural_rateset_11b =
- { 4, { 2, 4, 11, 22 } };
-
-static const struct ieee80211_rateset ural_rateset_11g =
- { 12, { 2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108 } };
-
static const struct {
uint16_t reg;
uint16_t val;
@@ -309,8 +300,8 @@ USB_ATTACH(ural)
IEEE80211_C_WEP; /* s/w WEP */
/* set supported .11b and .11g rates */
- ic->ic_sup_rates[IEEE80211_MODE_11B] = ural_rateset_11b;
- ic->ic_sup_rates[IEEE80211_MODE_11G] = ural_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++) {