|
@@ -3862,11 +3862,15 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter)
|
|
|
"driver hint alpha2: %2.2s\n", reg_alpha2);
|
|
|
regulatory_hint(wiphy, reg_alpha2);
|
|
|
} else {
|
|
|
- country_code = mwifiex_11d_code_2_region(adapter->region_code);
|
|
|
- if (country_code)
|
|
|
- mwifiex_dbg(adapter, WARN,
|
|
|
- "ignoring F/W country code %2.2s\n",
|
|
|
- country_code);
|
|
|
+ if (adapter->region_code == 0x00) {
|
|
|
+ mwifiex_dbg(adapter, WARN, "Ignore world regulatory domain\n");
|
|
|
+ } else {
|
|
|
+ country_code =
|
|
|
+ mwifiex_11d_code_2_region(adapter->region_code);
|
|
|
+ if (country_code &&
|
|
|
+ regulatory_hint(wiphy, country_code))
|
|
|
+ mwifiex_dbg(priv->adapter, ERROR, "regulatory_hint() failed\n");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,
|