* [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue
@ 2026-01-13 5:46 Yingying Tang
2026-01-13 6:22 ` Vasanthakumar Thiagarajan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Yingying Tang @ 2026-01-13 5:46 UTC (permalink / raw)
To: ath12k; +Cc: linux-wireless, yintang, yingying.tang
Wrong P2P device link id value of 0 was introduced in ath12k_mac_op_tx() by [1].
During the P2P negotiation process, there is only one scan vdev with link ID 15.
Currently, the device link ID is incorrectly set to 0 in ath12k_mac_op_tx()
during the P2P negotiation process, which leads to TX failures.
Set the correct P2P device link ID to 15 to fix the TX failure issue.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
Fixes: 648a121bafa3 ("wifi: ath12k: ath12k_mac_op_tx(): MLO support") # [1]
Signed-off-by: Yingying Tang <yingying.tang@oss.qualcomm.com>
---
drivers/net/wireless/ath/ath12k/mac.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index db351c922018..32cdf6d73ac0 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -8838,7 +8838,10 @@ static void ath12k_mac_op_tx(struct ieee80211_hw *hw,
return;
}
} else {
- link_id = 0;
+ if (vif->type == NL80211_IFTYPE_P2P_DEVICE)
+ link_id = ATH12K_FIRST_SCAN_LINK;
+ else
+ link_id = 0;
}
arvif = rcu_dereference(ahvif->link[link_id]);
--
base-commit: d0309c054362a235077327b46f727bc48878a3bc
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue
2026-01-13 5:46 [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue Yingying Tang
@ 2026-01-13 6:22 ` Vasanthakumar Thiagarajan
2026-01-13 6:25 ` Baochen Qiang
2026-01-13 15:29 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Vasanthakumar Thiagarajan @ 2026-01-13 6:22 UTC (permalink / raw)
To: Yingying Tang, ath12k; +Cc: linux-wireless, yintang
On 1/13/2026 11:16 AM, Yingying Tang wrote:
> Wrong P2P device link id value of 0 was introduced in ath12k_mac_op_tx() by [1].
>
> During the P2P negotiation process, there is only one scan vdev with link ID 15.
> Currently, the device link ID is incorrectly set to 0 in ath12k_mac_op_tx()
> during the P2P negotiation process, which leads to TX failures.
>
> Set the correct P2P device link ID to 15 to fix the TX failure issue.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
>
> Fixes: 648a121bafa3 ("wifi: ath12k: ath12k_mac_op_tx(): MLO support") # [1]
> Signed-off-by: Yingying Tang <yingying.tang@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue
2026-01-13 5:46 [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue Yingying Tang
2026-01-13 6:22 ` Vasanthakumar Thiagarajan
@ 2026-01-13 6:25 ` Baochen Qiang
2026-01-13 15:29 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Baochen Qiang @ 2026-01-13 6:25 UTC (permalink / raw)
To: Yingying Tang, ath12k; +Cc: linux-wireless, yintang
On 1/13/2026 1:46 PM, Yingying Tang wrote:
> Wrong P2P device link id value of 0 was introduced in ath12k_mac_op_tx() by [1].
>
> During the P2P negotiation process, there is only one scan vdev with link ID 15.
> Currently, the device link ID is incorrectly set to 0 in ath12k_mac_op_tx()
> during the P2P negotiation process, which leads to TX failures.
>
> Set the correct P2P device link ID to 15 to fix the TX failure issue.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3
>
> Fixes: 648a121bafa3 ("wifi: ath12k: ath12k_mac_op_tx(): MLO support") # [1]
> Signed-off-by: Yingying Tang <yingying.tang@oss.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath12k/mac.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
> index db351c922018..32cdf6d73ac0 100644
> --- a/drivers/net/wireless/ath/ath12k/mac.c
> +++ b/drivers/net/wireless/ath/ath12k/mac.c
> @@ -8838,7 +8838,10 @@ static void ath12k_mac_op_tx(struct ieee80211_hw *hw,
> return;
> }
> } else {
> - link_id = 0;
> + if (vif->type == NL80211_IFTYPE_P2P_DEVICE)
> + link_id = ATH12K_FIRST_SCAN_LINK;
> + else
> + link_id = 0;
> }
>
> arvif = rcu_dereference(ahvif->link[link_id]);
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue
2026-01-13 5:46 [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue Yingying Tang
2026-01-13 6:22 ` Vasanthakumar Thiagarajan
2026-01-13 6:25 ` Baochen Qiang
@ 2026-01-13 15:29 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2026-01-13 15:29 UTC (permalink / raw)
To: ath12k, Yingying Tang; +Cc: linux-wireless, yintang
On Tue, 13 Jan 2026 13:46:36 +0800, Yingying Tang wrote:
> Wrong P2P device link id value of 0 was introduced in ath12k_mac_op_tx() by [1].
>
> During the P2P negotiation process, there is only one scan vdev with link ID 15.
> Currently, the device link ID is incorrectly set to 0 in ath12k_mac_op_tx()
> during the P2P negotiation process, which leads to TX failures.
>
> Set the correct P2P device link ID to 15 to fix the TX failure issue.
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: Fix wrong P2P device link id issue
commit: 31707572108da55a005e7fed32cc3869c16b7c16
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-13 15:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-13 5:46 [PATCH ath-current] wifi: ath12k: Fix wrong P2P device link id issue Yingying Tang
2026-01-13 6:22 ` Vasanthakumar Thiagarajan
2026-01-13 6:25 ` Baochen Qiang
2026-01-13 15:29 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox