We already have a lot of commands listed in the command_console_wifi.h ,  but actually we need more to check the info from firmware when doing test ,

I add two commands when I am doing debug or doing basic RF test needed.

 

One is to disable roam function on RF tests.

The other is to get the supported lists for different country code and revisions.

Below is modifications,I will attached the code revised also in this blog.

 

File : command_console_wifi.h // commands added in the lists.

pastedImage_1.png

File:  command_console_wifi.c  // add callback functions.

搜狗截图20180530155422.png

File: wwd_wlioctl.h  //  to enlarge the array to get more channel results.

pastedImage_3.png

 

Now below is the test results from test.console

I have a test on: test.console-BCM943340WCD1 download run

 

> set_country US/0

wwd_sdpcm_send_iovar country results are   0

> get_channels

wwd_wifi_get_channels : 35

1  2  3 4  5  6  7  8 9  10  11 36  40  44 48  52  56 60  64  100 104  108  112 116  120  124 128  132  136 140  149  153 157  161  165 165

> set_country CN/0

wwd_sdpcm_send_iovar country results are   0

> get_channels

wwd_wifi_get_channels : 18

1  2  3 4  5  6  7  8 9  10  11 12  13  149 153  157  161 165  >

> roam_disable 1

  roam_disable = 1