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
This commit is contained in:
Karthik Kantamneni 2020-08-06 13:31:03 +05:30 • committed by snandini
commit ee554d2e11

View file

@ -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);