wlan: Fix for schedule scan print
wpa_supplicant periodically scans neighboring access points if the
wiphy capability WIPHY_FLAG_SUPPORTS_SCHED_SCAN is set. Any active
sessions do not allow scheduled scan. The log level of the print is
lowered to info. Also corrected another print on flushing pmksa
entries.
Change-Id: I80f8d007f66ac214c1bc468372bd93981cb06fe8
CRs-Fixed: 623339
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index f2ea016..9caaf55 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -8169,8 +8169,7 @@
/*in case index is 0,no entry to delete*/
if (0 == PMKIDCacheIndex)
{
- hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Invalid entry to delete" ,
- __func__);
+ hddLog(VOS_TRACE_LEVEL_ERROR, FL("No entries to flush"));
return -EINVAL;
}
@@ -8285,8 +8284,7 @@
/*
* FUNCTION: wlan_hdd_is_pno_allowed
- * To check is there any P2P GO/SAP or P2P Client/STA
- * session is active
+ * Disallow pno if any session is active
*/
static eHalStatus wlan_hdd_is_pno_allowed(hdd_adapter_t *pAdapter)
{
@@ -8297,6 +8295,10 @@
int status = 0;
status = hdd_get_front_adapter(pHddCtx, &pAdapterNode);
+ /* The current firmware design does not allow PNO during any
+ * active sessions. Hence, determine the active sessions
+ * and return a failure.
+ */
while ((NULL != pAdapterNode) && (VOS_STATUS_SUCCESS == status))
{
pTempAdapter = pAdapterNode->pAdapter;
@@ -8387,14 +8389,9 @@
return -EINVAL;
}
- /* The current firmware design for PNO does not consider concurrent
- * active sessions.Hence , determine the concurrent active sessions
- * and return a failure to the framework on a request for schedule
- * scan.
- */
if (eHAL_STATUS_SUCCESS != wlan_hdd_is_pno_allowed(pAdapter))
{
- VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_WARN,
FL("Cannot handle sched_scan"));
return -EBUSY;
}