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
This commit is contained in:
Rajeev Kumar 2019-05-02 12:55:14 -07:00 • committed by nshrivas
commit afccd9a477

View file

@ -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