[PATCH] wifi: ath11k: keep the PPDU status for the full monitor delivery
From: Christopher Griffin via B4 Relay
Date: Thu Nov 05 2026 - 14:27:09 EST
From: Christopher Griffin <christophergriffin05@xxxxxxxxx>
In full monitor mode (QCN9074), ath11k_dp_rx_process_full_mon_status_ring()
reaps the status buffer of the held PPDU with
ath11k_dp_rx_process_mon_status() and then delivers the PPDU's MPDUs with
pmon->mon_ppdu_info, the status that function parsed. But
ath11k_dp_rx_process_mon_status() clears mon_ppdu_info again after each
status buffer whose PPDU names a peer ID, whether the peer is found or
not. Since commit 2a2451a34afd ("wifi: ath11k: fix peer resolution on rx
path when peer_id=0") a PPDU from a station without a peer, which is
every frame a monitor hears from other BSSs, names peer ID 0 and is
cleared too. Every frame a QCN9074 monitor delivers then has an empty
status: signal -95 dBm (the default noise floor and a zero rssi_comb),
no TSFT, and the rate of its rx descriptor instead of its PPDU's.
Each status buffer is already parsed from a cleared status. Drop the
clear after it, so that the status of the last parsed PPDU stays for the
delivery. The other monitor path is not affected: it delivers from
within the loop, before the clear.
On a QCN9074 alone in monitor mode on 6 GHz (5975, 6135 and 6455 MHz,
frames from neighbouring APs), 311 of 313 frames had signal -95 dBm and
TSFT 0 before. After, 307 of 309 had their received level (-79 and
-80 dBm for the nearest AP's beacons) and their TSFT, and the beacons
their 6 Mb/s rate instead of 48.
Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.5.r4-00683-QCAHKSWPL_SILICONZ-1
Fixes: 67a9d399fcb0 ("ath11k: enable RX PPDU stats in monitor co-exist mode")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Christopher Griffin <christophergriffin05@xxxxxxxxx>
---
drivers/net/wireless/ath/ath11k/dp_rx.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c
index 6d95f7b343a55..8bee3bfe33dfe 100644
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -5290,6 +5290,10 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id,
if (log_type != ATH11K_PKTLOG_TYPE_INVALID)
trace_ath11k_htt_rxdesc(ar, skb->data, log_type, rx_buf_sz);
+ /* Each status buffer is parsed from a clear status. The last one's
+ * stays in mon_ppdu_info: full monitor mode delivers its PPDU after
+ * this returns, with that status (signal, TSFT, rate).
+ */
memset(ppdu_info, 0, sizeof(*ppdu_info));
ppdu_info->peer_id = HAL_INVALID_PEERID;
hal_status = ath11k_hal_rx_parse_mon_status(ab, ppdu_info, skb);
@@ -5334,8 +5338,6 @@ int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id,
rcu_read_unlock();
dev_kfree_skb_any(skb);
- memset(ppdu_info, 0, sizeof(*ppdu_info));
- ppdu_info->peer_id = HAL_INVALID_PEERID;
}
exit:
return num_buffs_reaped;
---
base-commit: 5c8eab13e391aaabd5a1ad58f3ee4bb10ce7573e
change-id: 20261105-ath11k-full-mon-ppdu-status-dbc6ddd5e32c
Best regards,
--
Christopher Griffin <christophergriffin05@xxxxxxxxx>