How to change a list of available channels for bw16

Hello everyone.
i have Arduino IDE
and install bordManager realtek for use rtl8720dn.
I have a questions:
i need to change available channel list for scanning and work BW 16.
I find information in file …AmebaD\3.1.7\system\component\common\api\wifi\wifi_conf.c
about channellist
#define SCAN_CHANNEL_NUM 13+25 //2.4GHz + 5GHz
u8 scan_channel_list[SCAN_CHANNEL_NUM] = {1,2,3,4,5,6,7,8,9,10,11,12,13,
36,40,44,48,52,56,60,64,100,104,108,112,116,120,124,128,132,136,140,144,149,153,157,161,165};

i add 14 channel amd increase SCAN_CHANNEL_NUM to 14+25
and press compile in Arduino IDE
and nothink ^(((
also rename file to .cpp
and rename function wifi_scan_networks_mcc to wifi_scan_networks_mcc2
also in heder
i put the error message undefined function wifi_scan_networks_mcc2

because file cpp or c not working in procecc compile, instead working
/AmebaD/3.1.7/variants/common_libs/lib_arduino.a

how to recompile function to increase count of scanned channels?

also later i create own heder and cpp file contains needed variable and functions - its all from wifi_conf.c & <osdep_service.h>

success compile and
nothing
14 or 169 channells is not working ^(
i look sdr and another - not work.

also
wifi_set_channel_plan & wifi_get_channel_plan returned nothink ^(

uint8_t *channel_plan = 0;
int res = RTW_SUCCESS;
res = wifi_set_channel_plan(RTW_COUNTRY_JP);
/*res = wifi_get_channel_plan(channel_plan);
Serial.print("channel_plan = ");
Serial.println(*channel_plan); */
if( res == RTW_SUCCESS)
Serial.println(“RTW_SUCCESS”);
else if( res == RTW_ERROR)
Serial.println(“RTW_ERROR”);

how to use 14, 169, 171 and 177 channels for bw16?

Hi @Alexandr ,

#define SCAN_CHANNEL_NUM 13+25 // 2.4GHz + 5GHz refers to the number of channels to scan
If you would like to use other channel which is not found in u8 scan_channel_list, you modify the scan channel list (i.e. replacing those channel numbers which are not used in your channel plan with 14, 169, 171 and 177). Hope it helps.

Thank you.

HI
no, uncle - its not woking.
file with name wifi_conf.c or wifi_conf.cpp not used during compilation

donot think i so stupid ^)))
arduino ide using binary file coommon/arduino.a
during compile the project.
i can delete wifi_conf.c and nothing changed ^)))

questions
how to recompile coommon/arduino.a ?