From ee554d2e114027b7d6f51f78ab08dfacb7ef2d14 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Thu, 6 Aug 2020 13:31:03 +0530 Subject: [PATCH] qcacld-3.0: Don't enable packet log in Monitor mode Packet log and Monitor mode features cannot coexist, since both share common ring resources concurrent access is not expected. so don't enable packet log when device is in monitor mode. Change-Id: Ibb3ed6dc36e5797c654c37fc567eb89bdaa1ea39 CRs-Fixed: 2745973 --- core/hdd/src/wlan_hdd_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 0f12c068c15a..76534d01ae9b 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -12968,8 +12968,9 @@ static int hdd_features_init(struct hdd_context *hdd_ctx) * hdd_features_deinit if pktlog is enabled in ini. * Re-enable pktlog in SSR case, if pktlog is enabled in ini. */ - if (cds_is_packet_log_enabled() || - (cds_is_driver_recovering() && hdd_ctx->is_pktlog_enabled)) + if (hdd_get_conparam() != QDF_GLOBAL_MONITOR_MODE && + (cds_is_packet_log_enabled() || + (cds_is_driver_recovering() && hdd_ctx->is_pktlog_enabled))) hdd_pktlog_enable_disable(hdd_ctx, true, 0, 0); hddtxlimit.txPower2g = ucfg_get_tx_power(hdd_ctx->psoc, BAND_2G);