From afccd9a4775cd70ee3cb5213abbe40f7ed904001 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 2 May 2019 12:55:14 -0700 Subject: [PATCH] qcacld-3.0: Fix bool logic typo in GO suspend enable check If gEnableSapSuspend is disabled then in both SAP and GO mode cfg80211 suspend should be rejected. Fix a boolean logic typo in GO mode such that GO mode behaves same as SAP mode. Change-Id: I49ab2a378f32eb4dedaa57183ad78cc022419cfa CRs-Fixed: 2446133 --- core/hdd/src/wlan_hdd_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 22698abb624b..edf587fe51df 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1766,7 +1766,7 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, return -EOPNOTSUPP; } } else if (QDF_P2P_GO_MODE == adapter->device_mode) { - if (!!ucfg_pmo_get_enable_sap_suspend( + if (!ucfg_pmo_get_enable_sap_suspend( hdd_ctx->psoc)) { /* return -EOPNOTSUPP if GO does not support * suspend