0
点赞
收藏
分享

微信扫一扫

修改country code定制wifi支持的channel

在mcu\custom\drv\wifi\project name\wndrv_configure.c中

#define COUNTRY_CODE_EU (((kal_uint16) 'E' << 8) | (kal_uint16) 'U') /* ETSI (Europe) */(添加)

Kal_uint16 wndrv_get_reg_domain(void)

{

return WIFI_DEFAULT_REG_DOMAIN;

}

WIFI_DEFAULT_REG_DOMAIN是默认值支持channel 1~14。

改为COUNTRY_CODE_US,如果要支持channel 1~11

改为COUNTRY_CODE_EU,如果要支持channel 1~13

… …

修改完后,再m c,r custom就可以了

WIFI CHIP为MT5931:

在mcu\custom\drv\wifi\project name\wndrv_configure.c中

Wifi_driver_customer_setting[]中

第一项就是country code,

改为0x5553 即(('U'<8)|'S') 对应US 1~11 channel

改为0x4555 即(('E'<8)|'U') 对应EU 1~13 channel

改为0x4A50 即(('J'<8)|'P') 对应JP 1~14 channel

… …

举报

相关推荐

0 条评论