]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: update last_tx_rate only for data frame
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Wed, 2 Apr 2014 04:05:09 +0000 (12:05 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 08:50:45 +0000 (10:50 +0200)
commit6bfb5c05f887e53ece11194cb00ce16af58f7704
treec0fe48ea8245379a5e7d79b70b82d7ac16fe1153
parentda97cc222ef3379c89cba4133119f276ad571b47
mac80211: update last_tx_rate only for data frame

Rate controller in firmware may also return the Tx Rate
used for management frame that is usually sent as lowest
Tx Rate (1Mbps in 2.4GHz). So update the last_tx_rate only
if it is data frame.

This patch is tested with ath9k_htc.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/status.c