* [PATCH ath-next] wifi: ath12k: set MSDU payload correctly
@ 2026-10-20 7:52 Kang Yang
2026-10-26 5:46 ` Baochen Qiang
2026-10-26 6:04 ` Vasanthakumar Thiagarajan
0 siblings, 2 replies; 3+ messages in thread
From: Kang Yang @ 2026-10-20 7:52 UTC (permalink / raw)
To: Jeff Johnson
Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel, Kang Yang
ath12k_dp_mon_rx_merg_msdus() mistakenly passes head_msdu to
ath12k_dp_mon_rx_msdus_set_payload() while iterating over all MSDUs in
the chain.
As a result, skb_pull() is applied repeatedly to the head MSDU, whereas
the remaining MSDUs are never adjusted.
Pass the current MSDU instead so each MSDU is processed exactly once.
Also rename the helper parameter from head_msdu to msdu since the helper
operates on any MSDU in the chain.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
Fixes: 1cf514fdc790 ("wifi: ath12k: use different packet offset for WCN7850")
Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
---
drivers/net/wireless/ath/ath12k/dp_mon.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c
index 709507d44d8e..ae14e118fe36 100644
--- a/drivers/net/wireless/ath/ath12k/dp_mon.c
+++ b/drivers/net/wireless/ath/ath12k/dp_mon.c
@@ -186,7 +186,7 @@ ath12k_dp_mon_fill_rx_rate(struct ath12k_pdev_dp *dp_pdev,
}
static void ath12k_dp_mon_rx_msdus_set_payload(struct ath12k_base *ab,
- struct sk_buff *head_msdu,
+ struct sk_buff *msdu,
struct sk_buff *tail_msdu)
{
u32 rx_pkt_offset, l2_hdr_offset, total_offset;
@@ -200,7 +200,7 @@ static void ath12k_dp_mon_rx_msdus_set_payload(struct ath12k_base *ab,
else
total_offset = rx_pkt_offset + l2_hdr_offset;
- skb_pull(head_msdu, total_offset);
+ skb_pull(msdu, total_offset);
}
struct sk_buff *
@@ -261,7 +261,7 @@ ath12k_dp_mon_rx_merg_msdus(struct ath12k_pdev_dp *dp_pdev,
head_frag_list = NULL;
while (msdu) {
- ath12k_dp_mon_rx_msdus_set_payload(ab, head_msdu, tail_msdu);
+ ath12k_dp_mon_rx_msdus_set_payload(ab, msdu, tail_msdu);
if (!head_frag_list)
head_frag_list = msdu;
@@ -296,7 +296,7 @@ ath12k_dp_mon_rx_merg_msdus(struct ath12k_pdev_dp *dp_pdev,
msdu = head_msdu;
while (msdu) {
- ath12k_dp_mon_rx_msdus_set_payload(ab, head_msdu, tail_msdu);
+ ath12k_dp_mon_rx_msdus_set_payload(ab, msdu, tail_msdu);
if (qos_pkt) {
dest = skb_push(msdu, sizeof(__le16));
if (!dest)
---
base-commit: cd026e68fdbf88b9cc522b76c7a9d92c9a41f709
change-id: 20261020-msdupayload-2c8d4c1e54b4
Best regards,
--
Kang Yang <kang.yang@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH ath-next] wifi: ath12k: set MSDU payload correctly
2026-10-20 7:52 [PATCH ath-next] wifi: ath12k: set MSDU payload correctly Kang Yang
@ 2026-10-26 5:46 ` Baochen Qiang
2026-10-26 6:04 ` Vasanthakumar Thiagarajan
1 sibling, 0 replies; 3+ messages in thread
From: Baochen Qiang @ 2026-10-26 5:46 UTC (permalink / raw)
To: Kang Yang, Jeff Johnson
Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel
On 10/20/2026 3:52 PM, Kang Yang wrote:
> ath12k_dp_mon_rx_merg_msdus() mistakenly passes head_msdu to
> ath12k_dp_mon_rx_msdus_set_payload() while iterating over all MSDUs in
> the chain.
>
> As a result, skb_pull() is applied repeatedly to the head MSDU, whereas
> the remaining MSDUs are never adjusted.
>
> Pass the current MSDU instead so each MSDU is processed exactly once.
>
> Also rename the helper parameter from head_msdu to msdu since the helper
> operates on any MSDU in the chain.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
>
> Fixes: 1cf514fdc790 ("wifi: ath12k: use different packet offset for WCN7850")
> Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH ath-next] wifi: ath12k: set MSDU payload correctly
2026-10-20 7:52 [PATCH ath-next] wifi: ath12k: set MSDU payload correctly Kang Yang
2026-10-26 5:46 ` Baochen Qiang
@ 2026-10-26 6:04 ` Vasanthakumar Thiagarajan
1 sibling, 0 replies; 3+ messages in thread
From: Vasanthakumar Thiagarajan @ 2026-10-26 6:04 UTC (permalink / raw)
To: Kang Yang, Jeff Johnson
Cc: Jeff Johnson, linux-wireless, ath12k, linux-kernel
On 20-10-2026 13:22, Kang Yang wrote:
> ath12k_dp_mon_rx_merg_msdus() mistakenly passes head_msdu to
> ath12k_dp_mon_rx_msdus_set_payload() while iterating over all MSDUs in
> the chain.
>
> As a result, skb_pull() is applied repeatedly to the head MSDU, whereas
> the remaining MSDUs are never adjusted.
>
> Pass the current MSDU instead so each MSDU is processed exactly once.
>
> Also rename the helper parameter from head_msdu to msdu since the helper
> operates on any MSDU in the chain.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c7-00108-QCAHMTSWPL_V1.0_V2.0_SILICONZ_UPSTREAM-3
>
> Fixes: 1cf514fdc790 ("wifi: ath12k: use different packet offset for WCN7850")
> Signed-off-by: Kang Yang <kang.yang@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-26 6:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 7:52 [PATCH ath-next] wifi: ath12k: set MSDU payload correctly Kang Yang
2026-10-26 5:46 ` Baochen Qiang
2026-10-26 6:04 ` Vasanthakumar Thiagarajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®