Selaa lähdekoodia

qcacld-3.0: Set wow enable parameter in WMA properly

WoW is getting enabled even in disconnected state when
PNO, EXT_SCAN or LPASS is not enabled. Enable wow only
when one of interface is in beaconing mode, connected
state or PNO/EXT_SCAN/LPASS is enabled.

Change-Id: I30226700844c9b4adbe3a0659a270b99dc6e66f8
CRs-Fixed: 971738
Rajeev Kumar 9 vuotta sitten
vanhempi
sitoutus
aea89633d6
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      core/wma/src/wma_features.c

+ 3 - 2
core/wma/src/wma_features.c

@@ -3364,8 +3364,9 @@ bool wma_is_extscan_in_progress(tp_wma_handle wma, int vdev_id)
  *  2) Is any one of vdev in connected state (in STA mode) ?
  *  3) Is PNO in progress in any one of vdev ?
  *  4) Is Extscan in progress in any one of vdev ?
+ *  If none of above conditions is true then return false
  *
- * Return: true if wma needs to configure wow.
+ * Return: true if wma needs to configure wow false otherwise.
  */
 bool wma_is_wow_applicable(tp_wma_handle wma)
 {
@@ -3389,7 +3390,7 @@ bool wma_is_wow_applicable(tp_wma_handle wma)
 	}
 
 	WMA_LOGD("All vdev are in disconnected state and pno/extscan is not in progress, skipping wow");
-	return true;
+	return false;
 }
 
 /**