* [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850
@ 2024-05-10 11:12 kangyang
2024-05-10 11:27 ` Kalle Valo
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: kangyang @ 2024-05-10 11:12 UTC (permalink / raw)
To: ath12k; +Cc: linux-wireless, quic_kangyang
From: Kang Yang <quic_kangyang@quicinc.com>
ath12k_mac_op_unassign_vif_chanctx() will do peer delete for WCN7850's
monitor interface.
But for host no need to do peer create/delete for monitor interface
because firmware doesn't require it, QCN9274 is the same.
Also, the first judgement is true only for WCN7850, so this logic won't
affect QCN9274 at any time.
So remove this peer delete.
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
---
v2: rewrite commit message.
---
drivers/net/wireless/ath/ath12k/mac.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 96dc5c2e096f..1b8a74159ca5 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -7366,11 +7366,6 @@ ath12k_mac_op_unassign_vif_chanctx(struct ieee80211_hw *hw,
WARN_ON(!arvif->is_started);
- if (ab->hw_params->vdev_start_delay &&
- arvif->vdev_type == WMI_VDEV_TYPE_MONITOR &&
- ath12k_peer_find_by_addr(ab, ar->mac_addr))
- ath12k_peer_delete(ar, arvif->vdev_id, ar->mac_addr);
-
if (arvif->vdev_type == WMI_VDEV_TYPE_MONITOR) {
ret = ath12k_mac_monitor_stop(ar);
if (ret) {
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850
2024-05-10 11:12 [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850 kangyang
@ 2024-05-10 11:27 ` Kalle Valo
2024-05-10 14:35 ` Jeff Johnson
2024-05-16 8:28 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-05-10 11:27 UTC (permalink / raw)
To: kangyang; +Cc: ath12k, linux-wireless
kangyang <quic_kangyang@quicinc.com> writes:
> From: Kang Yang <quic_kangyang@quicinc.com>
Please fix your git config, it looks your name in email From header is
formatted wrong:
From: kangyang <quic_kangyang@quicinc.com>
https://lore.kernel.org/ath12k/20240510111238.1113-1-quic_kangyang@quicinc.com/raw
I guess it should be like this:
From: Kang Yang <quic_kangyang@quicinc.com>
Though I'm not sure what kind of formatting you prefer, please just pick
one and use it consistently :) No need to resend because of this.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850
2024-05-10 11:12 [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850 kangyang
2024-05-10 11:27 ` Kalle Valo
@ 2024-05-10 14:35 ` Jeff Johnson
2024-05-16 8:28 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2024-05-10 14:35 UTC (permalink / raw)
To: kangyang, ath12k; +Cc: linux-wireless
On 5/10/2024 4:12 AM, kangyang wrote:
> From: Kang Yang <quic_kangyang@quicinc.com>
>
> ath12k_mac_op_unassign_vif_chanctx() will do peer delete for WCN7850's
> monitor interface.
>
> But for host no need to do peer create/delete for monitor interface
> because firmware doesn't require it, QCN9274 is the same.
>
> Also, the first judgement is true only for WCN7850, so this logic won't
> affect QCN9274 at any time.
>
> So remove this peer delete.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
>
> Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850
2024-05-10 11:12 [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850 kangyang
2024-05-10 11:27 ` Kalle Valo
2024-05-10 14:35 ` Jeff Johnson
@ 2024-05-16 8:28 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-05-16 8:28 UTC (permalink / raw)
To: kangyang; +Cc: ath12k, linux-wireless, quic_kangyang
kangyang <quic_kangyang@quicinc.com> wrote:
> ath12k_mac_op_unassign_vif_chanctx() will do peer delete for WCN7850's monitor
> interface. But for host no need to do peer create/delete for monitor interface
> because firmware doesn't require it, QCN9274 is the same. Also, the first
> judgement is true only for WCN7850, so this logic won't affect QCN9274 at any
> time.
>
> So remove this peer delete.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
>
> Signed-off-by: Kang Yang <quic_kangyang@quicinc.com>
> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
3a29442a1741 wifi: ath12k: remove redundant peer delete for WCN7850
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240510111238.1113-1-quic_kangyang@quicinc.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-16 8:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-10 11:12 [PATCH v2] wifi: ath12k: remove redundant peer delete for WCN7850 kangyang
2024-05-10 11:27 ` Kalle Valo
2024-05-10 14:35 ` Jeff Johnson
2024-05-16 8:28 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox