From 4e3bef462195bcf0e20d21c5beb56f4c8cc53da8 Mon Sep 17 00:00:00 2001 From: jitiphil Date: Wed, 14 Nov 2018 14:31:13 +0530 Subject: [PATCH] qcacld-3.0: disable pktlog as part of stop modules Pktlog is not disabled as part of stop procedure. If the DUT was booted up with WLAN turned off, the modules will be loaded and after a timer expires they are unloaded. At this point if WLAN was turned on, the start procedure will try to enable pktlog and find that it is already enabled, and will not send indication to firmware. Ensure pktlog is called as part of stop procedure. Change-Id: If17fb597cabed59ef5a3220ba7e536820a940eaf CRs-Fixed: 2349956 --- core/hdd/src/wlan_hdd_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d63a5bc36335..b3ebf951519d 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10737,6 +10737,8 @@ static void hdd_features_deinit(struct hdd_context *hdd_ctx) wlan_hdd_twt_deinit(hdd_ctx); wlan_hdd_deinit_chan_info(hdd_ctx); wlan_hdd_tsf_deinit(hdd_ctx); + if (cds_is_packet_log_enabled()) + hdd_pktlog_enable_disable(hdd_ctx, false, 0, 0); } /**