]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Update last_tx_rate only for data frames
authorHelmut Schaa <helmut.schaa@googlemail.com>
Wed, 1 Dec 2010 15:34:45 +0000 (16:34 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Dec 2010 20:58:43 +0000 (15:58 -0500)
commitff0e053f8884285e65b2daeeae5a0c634c868555
tree29456d61473f3273d83420e3fa12f7476657adfd
parente4b32e8e929c110b7e1a79201a9c52d1619980fe
mac80211: Update last_tx_rate only for data frames

The last_tx_rate field was also updated for non-data frames that are
often sent with a lower rate (for example management frames at 1 Mbps).
This is confusing when the data rate is actually much higher.

Hence, only update the last_tx_rate field with tx rate information
gathered from last data frames.

If the rate control algorithm filled in txrc.reported_rate we don't need
to verify this information.

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c