qcacld-3.0: Refine PMO wow to support legacy chip

wma_is_service_enabled can't get valid service bitmap if call in
hdd_update_pmo_config, use psoc_ctx->caps.unified_wow instead to check
pattern id per vdev and legacy d0 wow capability.

Change-Id: If7bf316f482c49253fc4b95b94e172727b27ffd1
CRs-Fixed: 2225847
This commit is contained in:
Will Huang
2018-04-25 17:57:24 +08:00
committed by nshrivas
parent aa6d55d9e7
commit 67ce1e332b
5 changed files with 12 additions and 15 deletions

View File

@@ -140,7 +140,9 @@ QDF_STATUS pmo_tgt_psoc_send_wow_enable_req(struct wlan_objmgr_psoc *psoc,
psoc_ctx = pmo_psoc_get_priv(psoc);
pmo_tx_ops = GET_PMO_TX_OPS_FROM_PSOC(psoc);
if (psoc_ctx->psoc_cfg.d0_wow_supported && !param->can_suspend_link) {
if (psoc_ctx->psoc_cfg.d0_wow_supported &&
!psoc_ctx->caps.unified_wow &&
!param->can_suspend_link) {
if (!pmo_tx_ops.psoc_send_d0wow_enable_req) {
pmo_err("psoc_send_d0wow_enable_req is null");
return QDF_STATUS_E_NULL_VALUE;