summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/VOSS/src/vos_nvitem.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index 5e2524b639ab..53d2ebd92d7c 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -2142,6 +2142,16 @@ int __wlan_hdd_linux_reg_notifier(struct wiphy *wiphy,
#endif
}
+ if (pHddCtx->isWiphySuspended == TRUE) {
+ VOS_TRACE( VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_ERROR,
+ "system/cfg80211 is already suspend");
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)) || defined(WITH_BACKPORTS)
+ return;
+#else
+ return 0;
+#endif
+ }
+
sme_GetFreqBand(pHddCtx->hHal, &nBandCapability);
/* first check if this callback is in response to the driver callback */