qcacld-3.0: Config WOW_NLO_SCAN_COMPLETE_EVENT by default

WOW_NLO_SCAN_COMPLETE_EVENT should be always a wakeable event so
there is no need config it again during runtime PM suspend. Same
for WOW_NLO_DETECTED_EVENT which is already configed by default.
Hence it is safe to skip config dynamic wake events for runtime
PM.

Change-Id: Ie99f9f3dbd5e696601c79b826dbc949c0b439dc1
CRs-fixed: 2502738
This commit is contained in:
Yue Ma
2019-08-08 17:40:03 -07:00
gecommit door nshrivas
bovenliggende b4a3a42477
commit 0bd8428348
2 gewijzigde bestanden met toevoegingen van 11 en 2 verwijderingen

Bestand weergeven

@@ -448,8 +448,14 @@ static QDF_STATUS pmo_core_psoc_configure_suspend(struct wlan_objmgr_psoc *psoc,
if (pmo_core_is_wow_applicable(psoc)) {
pmo_debug("WOW Suspend");
pmo_core_apply_lphb(psoc);
pmo_core_configure_dynamic_wake_events(psoc);
/*
* Dynamic wake events should not be needed for runtime PM.
* Any wake events can be configed by default if they are
* really needed for runtime PM. In fact, most of them are
* only needed for system suspend.
*/
if (!is_runtime_pm)
pmo_core_configure_dynamic_wake_events(psoc);
pmo_core_update_wow_enable(psoc_ctx, true);
pmo_core_update_wow_enable_cmd_sent(psoc_ctx, false);
} else {

Bestand weergeven

@@ -422,6 +422,9 @@ void pmo_set_sta_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size)
pmo_set_wow_event_bitmap(WOW_11D_SCAN_EVENT,
wow_bitmap_size,
bitmask);
pmo_set_wow_event_bitmap(WOW_NLO_SCAN_COMPLETE_EVENT,
wow_bitmap_size,
bitmask);
}
void pmo_set_sap_wow_bitmask(uint32_t *bitmask, uint32_t wow_bitmap_size)