summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/SME/src/sme_common/sme_Api.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c
index 87cf4e4ddae3..53205738a6c9 100644
--- a/CORE/SME/src/sme_common/sme_Api.c
+++ b/CORE/SME/src/sme_common/sme_Api.c
@@ -8225,6 +8225,18 @@ eHalStatus sme_HandleChangeCountryCode(tpAniSirGlobal pMac, void *pMsgBuf)
status = eHAL_STATUS_FAILURE;
return status;
}
+ /*
+ * Update the 11d country to default country from NV bin so that when
+ * callback is received for this default country, driver will not
+ * disable the 11d taking it as valid country by user.
+ */
+ smsLog(pMac, LOG1,
+ FL
+ ("Set default country code (%c%c) from NV as invalid country received"),
+ pMsg->countryCode[0],pMsg->countryCode[1]);
+ vos_mem_copy(pMac->scan.countryCode11d, pMsg->countryCode,
+ WNI_CFG_COUNTRY_CODE_LEN);
+
}
else
{