wlan: Add SSR protection to WEXT APIs
Add SSR protection to WEXT common, WEXT private and new cfg80211
APIs. These external APIs should be protected when SSR is going on.
Change-Id: Ic231d1f6b3e857b52de041ff6276b464d766fea5
CRs-Fixed: 454725
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index ee4b5dd..1d04460 100755
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -6381,6 +6381,12 @@
"Invalid arguments");
return -EINVAL;
}
+ if (pHddCtx->isLogpInProgress)
+ {
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ "%s:LOGP in Progress. Ignore!!!", __func__);
+ return -EBUSY;
+ }
if (FALSE == pHddCtx->cfg_ini->fEnableTDLSSupport ||
FALSE == sme_IsFeatureSupportedByFW(TDLS))
@@ -6608,6 +6614,13 @@
return -EINVAL;
}
+ if (pHddCtx->isLogpInProgress)
+ {
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ "%s:LOGP in Progress. Ignore!!!", __func__);
+ return -EBUSY;
+ }
+
if (FALSE == pHddCtx->cfg_ini->fEnableTDLSSupport ||
FALSE == sme_IsFeatureSupportedByFW(TDLS))
{
@@ -6720,6 +6733,13 @@
return -EINVAL;
}
+ if (pHddCtx->isLogpInProgress)
+ {
+ VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
+ "%s:LOGP in Progress. Ignore!!!", __func__);
+ return -EBUSY;
+ }
+
#ifdef WLAN_FEATURE_TDLS_DEBUG
if((int)oper > 4)
oper = 5;