Skip to content

Commit 2d64da9

Browse files
Ramya Gnanasekarjeff-t-johnson
authored andcommitted
wifi: ath12k: set flag for mgmt no-ack frames in Tx completion
IEEE80211_TX_STAT_NOACK_TRANSMITTED flag signifies that frame was successfully transmitted without any errors when no-ack is requested. In WMI Tx management completion path, driver is not setting IEEE80211_TX_STAT_NOACK_TRANSMITTED flag for the frames with IEEE80211_TX_CTL_NO_ACK. Without this flag, the management frame statistics will not track such frames. Add IEEE80211_TX_STAT_NOACK_TRANSMITTED flag as part of the flags in skb transmit information when WMI is processing Tx completion for management frames. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 Signed-off-by: Ramya Gnanasekar <[email protected]> Signed-off-by: Muna Sinada <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jeff Johnson <[email protected]>
1 parent 9035756 commit 2d64da9

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+3
-0
lines changed

drivers/net/wireless/ath/ath12k/wmi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5362,6 +5362,9 @@ static int wmi_process_mgmt_tx_comp(struct ath12k *ar, u32 desc_id,
53625362
if ((!(info->flags & IEEE80211_TX_CTL_NO_ACK)) && !status)
53635363
info->flags |= IEEE80211_TX_STAT_ACK;
53645364

5365+
if ((info->flags & IEEE80211_TX_CTL_NO_ACK) && !status)
5366+
info->flags |= IEEE80211_TX_STAT_NOACK_TRANSMITTED;
5367+
53655368
ieee80211_tx_status_irqsafe(ath12k_ar_to_hw(ar), msdu);
53665369

53675370
num_mgmt = atomic_dec_if_positive(&ar->num_pending_mgmt_tx);

0 commit comments

Comments
 (0)