高通方案:
修改的主要方法是g_all_countries和g_reg_dmn_pairs在方法中,文件是vendor/qcom/opensource/wlan/qcawifi-host-cmn/umac/regulatory/core/src/reg_db.c
vendor/qcom/opensource/wlan/qca-wifihost-cmn/umac/regulatory/core/src/reg_db.h
案例如下:
可见此参数CHAN_5170_5250_4.具体代码是 [CHAN_5170_5250_4] = {5170, 5250, 80, 30, 0},
MTK 方案:
在rlm_domain.c 中 找到国家对应的group,然后根据需要进行修改group 对应信道。
以秘鲁(peru)例如,如果需要删除2.4G channel 12 和 channel 13
1.先在rlm_domain.h 中搜索 peru, 找到COUNTRY_CODE_PE
在rlm_domain.c找到COUNTRY_CODE_PE 对应group为: