修改Wi-Fi国家码的方法有很多,目前只列举出几种方法
1.supplicant provide one private command which can be used by framework or supplicant to change the country code of wlan driver
wpa_cli -i wlan0 DRIVER COUNTRY CN //change to CN
3
48
48
73
(1)首先开启手机的飞行模式
(2)adb remount; adb shell setprop gsm.operator.iso-country us---->设置成对应的国家
(3)adb remount; adb shell setprop gsm.sim.operator.iso-country us
(4)adb shell getprop | grep operator
此方法通过获取SIM卡中的MCC(移动国家码,Mobile Country Code,3bit)信息然后通过setCountryCode方法设置。具体代码流程请看
我的另一篇博文
http://blog.csdn.net/xiaoxiangyuhai/article/details/75044469(点击打开链接)
5.修改WCNSS_qcom_cfg.ini修改国家码
#Set countrycode for STA mode.
gStaCountryCode = us
#Set country code in SoftAP mode.
gAPCntryCode = us
6.通过开启11d功能设置国际码