wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/657-ath12k-prevent-monitor-interface-to-transmit-packet.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

34 lines
1.0 KiB
Diff

From f97d948bd2554e70e1140fe6396f4656810a6430 Mon Sep 17 00:00:00 2001
From: P Praneesh <quic_ppranees@quicinc.com>
Date: Thu, 18 Aug 2022 17:33:47 +0530
Subject: [PATCH] ath12k: prevent monitor interface to transmit packet
Firmware crash has observed when monitor interface queues tx
packet. Since firmware does not support tx through monitor interface,
Avoid the packet queuing in drvier itself.
Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
---
drivers/net/wireless/ath/ath12k/mac.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 1fc0878..9712bc4 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -6656,6 +6656,11 @@ static void ath12k_mac_op_tx(struct ieee80211_hw *hw,
bool is_prb_rsp;
int ret;
+ if (arvif->vdev_type == WMI_VDEV_TYPE_MONITOR) {
+ ieee80211_free_txskb(ah->hw, skb);
+ return;
+ }
+
memset(skb_cb, 0, sizeof(*skb_cb));
skb_cb->vif = vif;
--
2.7.4