]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Avoid multiple times configuring monitor filter
authorP Praneesh <quic_ppranees@quicinc.com>
Mon, 23 Dec 2024 06:01:21 +0000 (11:31 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sun, 26 Jan 2025 18:41:28 +0000 (10:41 -0800)
commit6e8c9ba7f0308ba2a88270cec6ce7e8ef621df1f
tree68be27009c4e605bd2f2dbac206dc5ab6d60b75a
parent9b0d8fb3326b32a11981a3ac6fa4ddf97248b8a6
wifi: ath12k: Avoid multiple times configuring monitor filter

ath12k_mac_op_configure_filter() gets called multiple times during
interface bringup. Applying filter configuration from this function leads
to writing same filter configurations multiple times.

Resolve this issue by relocating the filter configuration to
ath12k_mac_config_mon_status_default(), which is invoked by both
ath12k_mac_op_start() and ath12k_mac_op_stop(). Additionally, set the
rxmon_disable flag to true when called from ath12k_mac_op_stop() to
disable the monitor destination ring.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
Link: https://patch.msgid.link/20241223060132.3506372-4-quic_ppranees@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/mac.c