qcacld-3.0: Cancel ROC on receiving wlan suspend request

qcacld-2.0 to qcacld-3.0 propagation

Cancel ROC if any upon receiving wlan suspend request
to avoid potential wlan suspend failure issue.

Change-Id: I59f75005e375ea1a6599a1dd978c28effee29370
CRs-Fixed: 996156
This commit is contained in:
Masti, Narayanraddi
2016-08-19 14:33:22 +05:30
کامیت شده توسط Gerrit - the friendly Code Review server
والد dd374d9b21
کامیت 3e26de62cf

مشاهده پرونده

@@ -54,6 +54,7 @@
#include <wlan_hdd_power.h>
#include <dbglog_host.h>
#include <wlan_hdd_trace.h>
#include <wlan_hdd_p2p.h>
#include <linux/semaphore.h>
#include <wlan_hdd_hostapd.h>
@@ -1812,6 +1813,8 @@ static int __wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy,
return -EOPNOTSUPP;
}
}
if (pAdapter->is_roc_inprogress)
wlan_hdd_cleanup_remain_on_channel_ctx(pAdapter);
status = hdd_get_next_adapter(pHddCtx, pAdapterNode, &pNext);
pAdapterNode = pNext;
}