diff options
| author | Mukul Sharma <mukul@codeaurora.org> | 2016-10-07 16:09:08 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-10-14 15:09:16 +0530 |
| commit | b250d924e2c3db413f1e634c97da893128f71a24 (patch) | |
| tree | fa14b5752aa89c8e824aa533fd0f7ab788b83596 | |
| parent | b040160e697c99e65c805907c87a6c9d663b62be (diff) | |
qcacld-2.0: Do not handle regdomain notifier after cfg80211 suspend
Currently, kernel invoke the regdomain notifier to host driver
using registered callback. If kernel call this callback after
cfg80211 aka system suspend, Then because of race condition host
might send the PDEV SET REGDOMAIN/PARAM to fwr after WOW ENABLE
cmd which is not correct cmd sequence.
Change-Id: Ie3cd94d86345c9b6de0c5597d23e0b0dc6751937
CRs-Fixed: 1075079
| -rw-r--r-- | CORE/VOSS/src/vos_nvitem.c | 10 |
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 */ |
