STA+GO New INI parameter to enable FCC regulatory rule
Ini parameter gEnableStrictRegulatoryForFCC to enable
or disable FCC regulatory rule
By default Strict Regulatory FCC rule is enabled.
Change-Id: I64681698727c9d45451e32fe3739dcfb6989fd59
CRs-fixed: 607653
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index be7f572..89555c8 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -4061,7 +4061,17 @@
/* Haven't seen any condition that will set by driver after init.
If we do, then we should also call sme_ChangeCountryCode */
- if (wiphy->bands[IEEE80211_BAND_5GHZ])
+
+ /* To Disable the strict regulatory FCC rule, need set
+ gEnableStrictRegulatoryForFCC to zero from INI.
+ By default regulatory FCC rule enable or set to 1, and
+ in this case one can control dynamically using IOCTL
+ (nEnableStrictRegulatoryForFCC).
+ If gEnableStrictRegulatoryForFCC is set to zero then
+ IOCTL operation is inactive */
+
+ if ( pHddCtx->cfg_ini->gEnableStrictRegulatoryForFCC &&
+ wiphy->bands[IEEE80211_BAND_5GHZ])
{
for (j=0; j<wiphy->bands[IEEE80211_BAND_5GHZ]->n_channels; j++)
{