wlan: Enable BMPS when sme_RoamConnect fails.
Currently, driver disable BMPS during connect start
if any concurrent session is present, it is re-enabled
if connect start fails. BMPS is re-enabled when value
status is negative. The issue arises when sme_RoamConnect
fails, in that case value of status is positive and hence
BMPS is not enabled. As a part of fix, make sure that BMPS
is re-enabled in failure case.
Change-Id: I8e789af2b3590a9bbfb849e941e3a79ae17f3692
CRs-Fixed: 811049
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index da39e18..b31b7d2 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -11916,7 +11916,7 @@
req->ssid_len, req->bssid, 0);
}
- if (0 > status)
+ if (0 != status)
{
//ReEnable BMPS if disabled
if((VOS_STATUS_SUCCESS == exitbmpsStatus) &&