wlan: Remove Passive scan Restrication for non-zero Default CC & world reg.
When Country code in nv.bin file is Non-world and Reg Domain is world;
it's neither CUSTOM nor STRICT regulatory. In this case,
if country code is Non-world and domain is world; driver will not
change channel to Active.
Fixed this by adding check for US CC and World reg domain.
CRs-Fixed: 710980
Change-Id: Ie07248efed2d2333a7ee337c6729a695e6d6699e
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index c3c9324..324c669 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -3408,8 +3408,14 @@
if (0 == err)
#endif
{
- if (wiphy->flags & WIPHY_FLAG_CUSTOM_REGULATORY) {
+ /* When Country code in nv.bin file is Non Zero and Reg Domain
+ * is world; it's neither CUSTOM nor STRICT. In this Case
+ * if country code is Non-Zero and domain is world; driver
+ * will not change channel to active.
+ */
+ if (!(wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY ))
+ {
if (!(reg_rule->flags & NL80211_RRF_PASSIVE_SCAN))
{
VOS_TRACE(VOS_MODULE_ID_VOSS, VOS_TRACE_LEVEL_INFO,