Skip to content

Commit 00a9a6d

Browse files
chunyeowjmberg-intel
authored andcommitted
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>
1 parent 9b4816f commit 00a9a6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/mac80211/status.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
618618
sta, true, acked);
619619

620620
if ((local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL) &&
621+
(ieee80211_is_data(hdr->frame_control)) &&
621622
(rates_idx != -1))
622623
sta->last_tx_rate = info->status.rates[rates_idx];
623624

0 commit comments

Comments
 (0)