Restart TX rate control algorithm for a peer node, if its current TX
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 24 Dec 2006 11:39:59 +0000 (11:39 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sun, 24 Dec 2006 11:39:59 +0000 (11:39 +0000)
commit1bfe1f1773eab3f9b4c0499f324e4c18bbc8c6e2
treee9289da05864d064d4423d5fe302667b271af750
parent5723d84b151f2490dd9e95c4b84d1206f68e5847
Restart TX rate control algorithm for a peer node, if its current TX
rate index is beyond the number of TX rates it supports.

This could happen at least in following way:
1) Start a 11g HOSTAP, which uses TX rate control algorithm
2) Use a 11g cardbus wireless card as STA, set its mode to "auto" or
   "11g" and join the BSS created by HOSTAP
3) Transmit some packets from HOSTAP to STA and make sure that TX rate
   index for the STA reaches maximum.
4) Unplug the cardbus wireless card, so it has no chance to send out
   disassociation management frame.
5) Plug the cardbus wireless card back immediately, set its mode to
   "11b" and join the BSS created by HOSTAP again.
sys/netproto/802_11/wlan_ratectl/amrr/ieee80211_ratectl_amrr.c
sys/netproto/802_11/wlan_ratectl/onoe/ieee80211_ratectl_onoe.c