Skip to content

Commit f9680c7

Browse files
Yibo ZhaoKalle Valo
authored andcommitted
ath10k: fix not registering airtime of 11a station with WMM disable
The tid of 11a station with WMM disable reported by FW is 0x10 in tx completion. The tid 16 is mapped to a NULL txq since buffer MMPDU capbility is not supported. Then 11a station's airtime will not be registered due to NULL txq check. As a results, airtime of 11a station keeps unchanged in debugfs system. Mask the tid along with IEEE80211_QOS_CTL_TID_MASK to make it in the valid range. Hardwares tested : QCA9984 Firmwares tested : 10.4-3.10-00047 Signed-off-by: Yibo Zhao <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent a36adf5 commit f9680c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/wireless/ath/ath10k/htt_rx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2744,7 +2744,8 @@ static void ath10k_htt_rx_tx_compl_ind(struct ath10k *ar,
27442744
continue;
27452745
}
27462746

2747-
tid = FIELD_GET(HTT_TX_PPDU_DUR_INFO0_TID_MASK, info0);
2747+
tid = FIELD_GET(HTT_TX_PPDU_DUR_INFO0_TID_MASK, info0) &
2748+
IEEE80211_QOS_CTL_TID_MASK;
27482749
tx_duration = __le32_to_cpu(ppdu_dur->tx_duration);
27492750

27502751
ieee80211_sta_register_airtime(peer->sta, tid, tx_duration, 0);

0 commit comments

Comments
 (0)