在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
… …
#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
… …
本文详细介绍了如何在WiFi驱动配置中修改国家代码,以支持不同国家的无线频段通道,如美国(US)、欧洲(EU)和日本(JP)。针对MT5931芯片,提供了具体修改步骤,包括在`wndrv_configure.c`文件中更改`WIFI_DEFAULT_REG_DOMAIN`以及`Wifi_driver_customer_setting[]`数组中的`countrycode`值。
1976

被折叠的 条评论
为什么被折叠?



