From a376f10ea819ad38d01a59d37cf2bb6c3f6d437e Mon Sep 17 00:00:00 2001 From: Marcus Glocker Date: Fri, 25 Jan 2008 07:12:42 +0000 Subject: Since TX rate control is done by the firmware, we report the maximum rate which is available. --- sys/dev/usb/if_upgt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/dev') 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 @@ -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); -- cgit v1.2.3