summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_upgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/if_upgt.c')
-rw-r--r--sys/dev/usb/if_upgt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index 66a74404f65..f52d41f304b 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.30 2008/01/24 22:35:08 mglocker Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.31 2008/01/25 07:12:41 mglocker Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -1339,6 +1339,12 @@ upgt_newstate_task(void *arg)
ni = ic->ic_bss;
+ /*
+ * TX rate control is done by the firmware.
+ * Report the maximum rate which is available therefore.
+ */
+ ni->ni_txrate = ni->ni_rates.rs_nrates - 1;
+
if (ic->ic_opmode != IEEE80211_M_MONITOR)
upgt_set_macfilter(sc, IEEE80211_S_RUN);
upgt_set_led(sc, UPGT_LED_ON);