wlan: Collect mgmt frame logs on zero scan results
Collect mgmt frame logs if no scan results are received to get to
know whether there is a bug in command exchange or really none of
the APs are in the STA's vicinity.
Change-Id: I8406aa2b51da71f17833b05ffd8fa59482c42051
CRs-Fixed: 855057
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index d4b6929..c8ebdeb 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -9990,6 +9990,8 @@
{
hddLog(VOS_TRACE_LEVEL_INFO, "%s: No scan result Status %d",
__func__, status);
+ wlan_hdd_get_frame_logs(pAdapter,
+ WLAN_HDD_GET_FRAME_LOG_CMD_SEND_AND_CLEAR);
return status;
}
@@ -10948,7 +10950,7 @@
goto free_mem;
}
}
-
+ wlan_hdd_get_frame_logs(pAdapter, WLAN_HDD_GET_FRAME_LOG_CMD_CLEAR);
status = sme_ScanRequest( WLAN_HDD_GET_HAL_CTX(pAdapter),
pAdapter->sessionId, &scanRequest, &scanId,
&hdd_cfg80211_scan_done_callback, dev );