diff options
author | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-01-25 07:12:42 +0000 |
---|---|---|
committer | Marcus Glocker <mglocker@cvs.openbsd.org> | 2008-01-25 07:12:42 +0000 |
commit | a376f10ea819ad38d01a59d37cf2bb6c3f6d437e (patch) | |
tree | 543a19e73df432b494b6875ce7a40212bad29acb /sys/dev/usb | |
parent | 3da94328e89dc70c6b512ff53c4851346752ab8b (diff) |
Since TX rate control is done by the firmware, we report the maximum
rate which is available.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_upgt.c | 8 |
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); |