summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorKang Yang <quic_kangyang@quicinc.com>2024-02-05 19:03:29 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2024-02-07 17:07:00 +0200
commit32e7b12e2611e6b49510a3b36c0ba4deafac10c7 (patch)
treeae8830de63a12136db3bfd98472f3b345985f757 /drivers/net/wireless/ath
parent28035a88f8b3cc849e4b13b9b5f5dd0aa1e18365 (diff)
downloadlinux-stable-32e7b12e2611e6b49510a3b36c0ba4deafac10c7.tar.gz
linux-stable-32e7b12e2611e6b49510a3b36c0ba4deafac10c7.tar.bz2
linux-stable-32e7b12e2611e6b49510a3b36c0ba4deafac10c7.zip
wifi: ath12k: allow specific mgmt frame tx while vdev is not up
In current code, the management frames must be sent after vdev is started. But for P2P device, vdev won't start until P2P negotiation is done. So this logic doesn't make sense for P2P device. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1 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> Link: https://msgid.link/20240130040303.370590-9-quic_kangyang@quicinc.com
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath12k/mac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index dbaef009e972..04a4a7c0eedf 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -5123,8 +5123,8 @@ static void ath12k_mgmt_over_wmi_tx_work(struct work_struct *work)
}
arvif = ath12k_vif_to_arvif(skb_cb->vif);
- if (ar->allocated_vdev_map & (1LL << arvif->vdev_id) &&
- arvif->is_started) {
+
+ if (ar->allocated_vdev_map & (1LL << arvif->vdev_id)) {
ret = ath12k_mac_mgmt_tx_wmi(ar, arvif, skb);
if (ret) {
ath12k_warn(ar->ab, "failed to tx mgmt frame, vdev_id %d :%d\n",