diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2010-04-22 09:27:48 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-04-26 20:11:40 +0200 |
commit | 0c86980817853e4166f66c7cd18bc5fe1adeb5f7 (patch) | |
tree | 945d0486a2bb79e37ee7bde7ea9de510362f5c0d /drivers/net/wireless/p54 | |
parent | ssb: Fix order of definitions and some text space indents (diff) | |
download | linux-0c86980817853e4166f66c7cd18bc5fe1adeb5f7.tar.xz linux-0c86980817853e4166f66c7cd18bc5fe1adeb5f7.zip |
mac80211: Fix sta->last_tx_rate setting with no-op rate control devices
The sta->last_tx_rate is traditionally updated just before transmitting a
frame based on information from the rate control algorithm. However, for
hardware drivers with IEEE80211_HW_HAS_RATE_CONTROL this is not performed,
as the rate control algorithm is not executed, and because the used rate is
not known before the frame has actually been transmitted.
This causes atleast a fixed 1Mb/s to be reported to user space. A few other
instances of code also rely on this information.
Fix this by setting the sta->last_tx_rate in tx_status handling. There, look
for last rates entry set by the driver, and use that as value for
sta->last_tx_rate.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54')
0 files changed, 0 insertions, 0 deletions