mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-20 10:51:27 +00:00
34 lines
1.0 KiB
Diff
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
|
|
|