Lines Matching refs:PRINTF
100 (void)PRINTF("no networks found\r\n"); in __scan_cb()
104 (void)PRINTF("%d network%s found:\r\n", count, count == 1U ? "" : "s"); in __scan_cb()
111 (void)PRINTF("Error: can't get scan res %d\r\n", i); in __scan_cb()
119 (void)PRINTF(" \"%s\" %s\r\n", res.ssid, print_role(res.role)); in __scan_cb()
123 (void)PRINTF(" (hidden) %s\r\n", print_role(res.role)); in __scan_cb()
125 (void)PRINTF("\tmode: "); in __scan_cb()
130 (void)PRINTF("802.11AX "); in __scan_cb()
136 (void)PRINTF("802.11AC "); in __scan_cb()
142 (void)PRINTF("802.11N "); in __scan_cb()
148 (void)PRINTF("802.11BG "); in __scan_cb()
152 (void)PRINTF("802.11A "); in __scan_cb()
155 (void)PRINTF("\r\n"); in __scan_cb()
157 (void)PRINTF("\tchannel: %d\r\n", res.channel); in __scan_cb()
158 (void)PRINTF("\trssi: -%d dBm\r\n", res.rssi); in __scan_cb()
159 (void)PRINTF("\tsecurity: "); in __scan_cb()
162 (void)PRINTF("WEP "); in __scan_cb()
166 (void)PRINTF("WPA/WPA2 Mixed "); in __scan_cb()
170 (void)PRINTF("WPA2/WPA3 SAE Mixed "); in __scan_cb()
176 (void)PRINTF("WPA "); in __scan_cb()
180 (void)PRINTF("WPA2 "); in __scan_cb()
184 (void)PRINTF("WPA2-SHA256"); in __scan_cb()
188 (void)PRINTF("WPA3-SAE "); in __scan_cb()
193 (void)PRINTF("OWE Only"); in __scan_cb()
198 (void)PRINTF("WPA2 Enterprise "); in __scan_cb()
202 (void)PRINTF("WPA3 Enterprise "); in __scan_cb()
206 (void)PRINTF("WPA3 Enterprise SuiteB "); in __scan_cb()
210 (void)PRINTF("WPA3 Enterprise SuiteB-192 "); in __scan_cb()
216 (void)PRINTF("with FT_802.1x"); in __scan_cb()
220 (void)PRINTF("with FT_PSK"); in __scan_cb()
224 (void)PRINTF("with FT_SAE"); in __scan_cb()
228 (void)PRINTF("with FT_802.1x SHA384"); in __scan_cb()
238 (void)PRINTF("OPEN "); in __scan_cb()
240 (void)PRINTF("\r\n"); in __scan_cb()
242 (void)PRINTF("\tWMM: %s\r\n", (res.wmm != 0U) ? "YES" : "NO"); in __scan_cb()
247 (void)PRINTF("\t802.11K: YES\r\n"); in __scan_cb()
253 (void)PRINTF("\t802.11V: YES\r\n"); in __scan_cb()
258 (void)PRINTF("\t802.11W: Capable, Required\r\n"); in __scan_cb()
262 (void)PRINTF("\t802.11W: Capable\r\n"); in __scan_cb()
266 (void)PRINTF("\t802.11W: NA\r\n"); in __scan_cb()
272 (void)PRINTF("\tWPS: %s, Session: %s\r\n", "YES", "Push Button"); in __scan_cb()
274 (void)PRINTF("\tWPS: %s, Session: %s\r\n", "YES", "PIN"); in __scan_cb()
276 (void)PRINTF("\tWPS: %s, Session: %s\r\n", "YES", "Not active"); in __scan_cb()
279 (void)PRINTF("\tWPS: %s \r\n", "NO"); in __scan_cb()
284 (void)PRINTF("\tOWE BSSID: "); in __scan_cb()
286 (void)PRINTF("\r\n\tOWE SSID:"); in __scan_cb()
289 (void)PRINTF(" \"%s\"\r\n", res.trans_ssid); in __scan_cb()
295 PRINTF("SCAN COMPLETED !\r\n"); in __scan_cb()
326 (void)PRINTF("Error: scan request failed\r\n"); in test_wlan_scan()
330 (void)PRINTF("Scan scheduled...\r\n"); in test_wlan_scan()
336 (void)PRINTF("Usage:\r\n"); in dump_wlan_scan_opt_usage()
337 (void)PRINTF( in dump_wlan_scan_opt_usage()
371 (void)PRINTF("Error: invalid number of arguments\r\n");
381 (void)PRINTF("Error: the number of SSID is more than 2\r\n");
390 (void)PRINTF("Error: SSID is too long\r\n");
406 (void)PRINTF(
420 (void)PRINTF(
436 (void)PRINTF(
443 (void)PRINTF(
456 (void)PRINTF(
464 (void)PRINTF(
476 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
484 (void)PRINTF("Error: specify at least the SSID or BSSID\r\n");
492 (void)PRINTF("Error: scan request failed\r\n");
496 (void)PRINTF("Scan for ");
500 (void)PRINTF("ssid \"%s\" ", wlan_scan_param.ssid[0]);
502 (void)PRINTF("ssid \"%s\" ", wlan_scan_param.ssid);
507 (void)PRINTF("bssid ");
512 (void)PRINTF("with %d probes ", wlan_scan_param.num_probes);
516 (void)PRINTF("with %d rssi_threshold ", wlan_scan_param.rssi_threshold);
519 (void)PRINTF("scheduled...\r\n");
531 (void)PRINTF("Usage: %s <0/1>\r\n", argv[0]);
532 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
540 (void)PRINTF("Error during strtol:mfpc errno:%d\r\n", errno);
549 (void)PRINTF("Turned off IEEE Power Save mode\r\n");
557 (void)PRINTF("Turned on IEEE Power Save mode\r\n");
561 … (void)PRINTF("Failed to turn on IEEE Power Save mode or WNM Power Save mode is enabled\r\n");
566 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
577 (void)PRINTF("Usage: %s <null_pkt_interval>\r\n", argv[0]);
578 (void)PRINTF("null_pkt_interval (0: Unchanged, -1: Disable, n: Interval in seconds)\r\n");
587 (void)PRINTF("Set power save cfg successfully");
589 (void)PRINTF("Failed to set power save cfg, error: %d", ret);
602 (void)PRINTF("Usage: %s <0/1>\r\n", argv[0]);
603 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
604 (void)PRINTF("If enable, please specify sleep_interval\r\n");
605 (void)PRINTF("Example:\r\n");
606 (void)PRINTF(" wlan-wnm-ps 1 5\r\n");
616 (void)PRINTF("Turned off WNM Power Save mode\r\n");
618 (void)PRINTF("Failed to turn off WNM Power Save mode\r\n");
628 (void)PRINTF("Error: please specify sleep_interval\r\n");
633 (void)PRINTF("Turned on WNM Power Save mode\r\n");
635 … (void)PRINTF("Failed to turn on WNM Power Save mode or IEEE Power Save mode is enabled\r\n");
639 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
651 (void)PRINTF("Usage: %s <0/1>\r\n", argv[0]);
652 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
660 (void)PRINTF("Error during strtol:deep_sleep_ps errno:%d\r\n", errno);
669 (void)PRINTF("Turned off Deep Sleep Power Save mode\r\n");
673 (void)PRINTF("Failed to turn off Deep Sleep Power Save mode\r\n");
681 (void)PRINTF("Turned on Deep Sleep Power Save mode\r\n");
685 (void)PRINTF("Failed to turn on Deep Sleep Power Save mode\r\n");
690 (void)PRINTF("Error: Specify 0 to Disable or 1 to Enable\r\n");
696 (void)PRINTF("Usage:\r\n");
697 (void)PRINTF(
701 (void)PRINTF("Options:\r\n");
702 (void)PRINTF(" <0/1>: Disable/enable Tx Pert tracking.\r\n");
703 (void)PRINTF(" <STA/UAP>: User needs to indicate which interface this tracking for.\r\n");
704 (void)PRINTF(" <p>: Tx Pert check period. Unit is second.\r\n");
705 (void)PRINTF(
708 (void)PRINTF(
711 (void)PRINTF("Example:\r\n");
712 (void)PRINTF(" wlan-tx-pert 1 UAP 5 3 5\r\n");
713 (void)PRINTF("Note:\r\n");
714 (void)PRINTF(" Please verify by iperf or ping\r\n");
715 (void)PRINTF(" When the traffic quality is good enough, it will not be triggered\r\n");
726 (void)PRINTF("Error: invalid number of arguments\r\n");
733 (void)PRINTF("Error: invalid number of arguments.\r\n");
734 (void)PRINTF(
756 (void)PRINTF("Usage:\r\n");
757 (void)PRINTF(" wlan_txrx_histogram <action> <enable>\r\n");
758 (void)PRINTF(" <enable> : 0 - disable TX/RX statistics\r\n");
759 (void)PRINTF(" 1 - enable TX/RX statistics\r\n");
760 (void)PRINTF(" 2 - get TX/RX statistics\r\n");
761 (void)PRINTF(" <action> : 1 - enable/disable/get TX statistics\r\n");
762 (void)PRINTF(" 2 - enable/disable/get RX statistics\r\n");
763 (void)PRINTF(" 3 - enable/disable/get TX and RX statistics\r\n");
764 (void)PRINTF("Note:\r\n");
765 (void)PRINTF(" When enable is 0 or 1, the action parameter should not be entered\r\n");
766 (void)PRINTF("Example:\r\n");
767 (void)PRINTF(" wlan_txrx_histogram 2 3\r\n");
791 (void)PRINTF("Error: invalid number of arguments\r\n");
809 (void)PRINTF("Error: invalid arguments.\r\n");
815 (void)PRINTF("Error: invalid arguments.\r\n");
844 PRINTF("test_wlan_txrx_histogram buf allocate memory failed\r\n");
868 PRINTF("The TX histogram statistic:\n");
869 PRINTF("============================================\n");
873 PRINTF("htmcs_txcnt[%d] = %u\n", i, tx_ht_info->htmcs_txcnt[i]);
874 PRINTF("htsgi_txcnt[%d] = %u\n", i, tx_ht_info->htsgi_txcnt[i]);
875 PRINTF("htstbcrate_txcnt[%d] = %u\n", i, tx_ht_info->htstbcrate_txcnt[i]);
881 PRINTF("vhtmcs_txcnt[%d] = %u\n", i, tx_vht_info->vhtmcs_txcnt[i]);
882 PRINTF("vhtsgi_txcnt[%d] = %u\n", i, tx_vht_info->vhtsgi_txcnt[i]);
883 PRINTF("vhtstbcrate_txcnt[%d] = %u\n", i, tx_vht_info->vhtstbcrate_txcnt[i]);
896 PRINTF("hemcs_txcnt[%d] = %u\n", i, tx_he_info->hemcs_txcnt[i]);
897 PRINTF("hestbcrate_txcnt[%d] = %u\n", i, tx_he_info->hestbcrate_txcnt[i]);
903 PRINTF("nss_txcnt[%d] = %u\n", i, tx_info->nss_txcnt[i]);
905 PRINTF("bandwidth_txcnt[%d] = %u\n", i, tx_info->bandwidth_txcnt[i]);
907 PRINTF("preamble_txcnt[%d] = %u\n", i, tx_info->preamble_txcnt[i]);
908 PRINTF("ldpc_txcnt = %u\n", tx_info->ldpc_txcnt);
909 PRINTF("rts_txcnt = %u\n", tx_info->rts_txcnt);
910 PRINTF("ack_RSSI = %d\n\n", tx_info->ack_RSSI);
915 PRINTF("The RX histogram statistic:\n");
916 PRINTF("============================================\n");
920 PRINTF("htmcs_rxcnt[%d] = %u\n", i, rx_ht_info->htmcs_rxcnt[i]);
921 PRINTF("htsgi_rxcnt[%d] = %u\n", i, rx_ht_info->htsgi_rxcnt[i]);
922 PRINTF("htstbcrate_rxcnt[%d] = %u\n", i, rx_ht_info->htstbcrate_rxcnt[i]);
928 PRINTF("vhtmcs_rxcnt[%d] = %u\n", i, rx_vht_info->vhtmcs_rxcnt[i]);
929 PRINTF("vhtsgi_rxcnt[%d] = %u\n", i, rx_vht_info->vhtsgi_rxcnt[i]);
930 PRINTF("vhtstbcrate_rxcnt[%d] = %u\n", i, rx_vht_info->vhtstbcrate_rxcnt[i]);
943 PRINTF("hemcs_rxcnt[%d] = %u\n", i, rx_he_info->hemcs_rxcnt[i]);
944 PRINTF("hestbcrate_rxcnt[%d] = %u\n", i, rx_he_info->hestbcrate_rxcnt[i]);
950 PRINTF("nss_rxcnt[%d] = %u\n", i, rx_info->nss_rxcnt[i]);
951 PRINTF("nsts_rxcnt = %u\n", rx_info->nsts_rxcnt);
953 PRINTF("bandwidth_rxcnt[%d] = %u\n", i, rx_info->bandwidth_rxcnt[i]);
955 PRINTF("preamble_rxcnt[%d] = %u\n", i, rx_info->preamble_rxcnt[i]);
957 PRINTF("ldpc_txbfcnt[%d] = %u\n", i, rx_info->ldpc_txbfcnt[i]);
959 PRINTF("rssi_value[%d] = %d\n", i, rx_info->rssi_value[i]);
961 PRINTF("rssi_chain0[%d] = %d\n", i, rx_info->rssi_chain0[i]);
963 PRINTF("rssi_chain1[%d] = %d\n", i, rx_info->rssi_chain1[i]);
964 PRINTF("\n");
968 PRINTF("Enable the TX and RX histogram statistic\n");
971 PRINTF("Disable the TX and RX histogram statistic\n");
983 (void)PRINTF("Usage:\r\n");
984 (void)PRINTF(
987 (void)PRINTF("Example:\r\n");
988 (void)PRINTF(" wlan-roaming 1 40\r\n");
999 (void)PRINTF("Error: invalid number of arguments\r\n");
1007 (void)PRINTF("Error during strtol:wlan roaming errno:%d\r\n", errno);
1017 (void)PRINTF("Error during strtol:rssi_threshold errno:%d\r\n", errno);
1036 (void)PRINTF("Usage: %s <sta/uap> <rts threshold>\r\n", argv[0]);
1045 (void)PRINTF("Usage: %s <sta/uap> <rts threshold>\r\n", argv[0]);
1058 (void)PRINTF("Failed to set rts threshold\r\n");
1072 (void)PRINTF("Usage: %s <sta/uap> <fragment threshold>\r\n", argv[0]);
1082 (void)PRINTF("Usage: %s <sta/uap> <fragment threshold>\r\n", argv[0]);
1095 (void)PRINTF("Failed to set fragment threshold\r\n");
1103 (void)PRINTF("Usage:\r\n");
1104 (void)PRINTF("wlan-ftm-ctrl <action> loop_cnt <count> channel <channel> mac <peer_mac>\r\n");
1105 (void)PRINTF("action: 1 start 2: stop \r\n");
1106 …(void)PRINTF("loop_cnt: number of ftm sessions to run repeatedly (default:1, 0:non-stop, n:times>)…
1107 (void)PRINTF("channel: Channel on which FTM must be started\r\n");
1108 (void)PRINTF("mac: Mac address of the peer with whom FTM session is required\r\n");
1109 (void)PRINTF("Example:\r\n");
1110 (void)PRINTF("Start ftm:\r\n");
1111 (void)PRINTF("wlan-ftm-ctrl 1 loop_cnt 2 channel 36 mac 00:50:43:20:bc:44\r\n");
1112 (void)PRINTF("Stop ftm:\r\n");
1113 (void)PRINTF("wlan-ftm-ctrl 2\r\n");
1131 (void)PRINTF("Error: invalid number of arguments\r\n");
1152 (void)PRINTF("Error: invalid loop_cnt argument\r\n");
1163 (void)PRINTF("Error: invalid channel argument\r\n");
1174 (void)PRINTF("Error: invalid MAC argument\r\n");
1183 (void)PRINTF("Error: invalid argument\r\n");
1194 (void)PRINTF("Usage:\r\n");
1195 (void)PRINTF(
1199 (void)PRINTF("burst_dur: 2 or 11\r\n");
1200 (void)PRINTF("min_delta: 1 to 63\r\n");
1201 (void)PRINTF("asap: 0 or 1\r\n");
1202 (void)PRINTF("ftm_per_burst: 2 to 10\r\n");
1203 (void)PRINTF("BW: 9 to 13\r\n");
1204 (void)PRINTF("burst_period: 1 to 10\r\n");
1205 (void)PRINTF(
1212 (void)PRINTF("Usage:\r\n");
1213 (void)PRINTF(
1217 (void)PRINTF("civ_req: 0 or 1\r\n");
1218 (void)PRINTF("loc_type: 1\r\n");
1219 (void)PRINTF("country_code: 0 for USA\r\n");
1220 (void)PRINTF("addr_type: 22\r\n");
1221 (void)PRINTF(
1228 (void)PRINTF("Usage:\r\n");
1229 (void)PRINTF(
1234 (void)PRINTF("lci_req: 0 or 1\r\n");
1235 (void)PRINTF("latitude: -180.0 to 180.0\r\n");
1236 (void)PRINTF("longitude: -180.0 to 180.0\r\n");
1237 (void)PRINTF("altitude: -180.0 to 180.0\r\n");
1238 (void)PRINTF("latitude uncertainity: 0 to 255\r\n");
1239 (void)PRINTF("longitude uncertainity: 0 to 255\r\n");
1240 (void)PRINTF("altitude uncertainity: 0 to 255\r\n");
1241 (void)PRINTF(
1248 (void)PRINTF("Usage:\r\n");
1249 (void)PRINTF(
1253 (void)PRINTF("protocol: 0 or 1\r\n");
1254 (void)PRINTF("format_bw: 0 to 2\r\n");
1255 (void)PRINTF("num_measurements: 1 to 10\r\n");
1256 (void)PRINTF("measurement_freq: 1 to 10\r\n");
1257 (void)PRINTF("i2r_sts: 0/1 - Num of antennas: 0=>1 antenna and 1=>2 antennas\r\n");
1258 (void)PRINTF("r2i_sts: 0/1 - Num of antennas: 0=>1 antenna and 1=>2 antennas\r\n");
1259 (void)PRINTF("i2r_lmr: 0 never, 1 always, 2 up to RSTA\r\n");
1260 (void)PRINTF(
1273 (void)PRINTF("Error: invalid number of arguments\r\n");
1295 (void)PRINTF("Error: invalid number of LCI require argument\r\n");
1305 (void)PRINTF("Error: invalid latitude argument\r\n");
1315 (void)PRINTF("Error: invalid longitude argument\r\n");
1325 (void)PRINTF("Error: invalid latitude argument\r\n");
1334 (void)PRINTF("Error: invalid latitude uncertanity argument\r\n");
1343 (void)PRINTF("Error: invalid longitude uncertanity argument\r\n");
1352 (void)PRINTF("Error: invalid altitude uncertanity argument\r\n");
1359 (void)PRINTF("Error: invalid [%s] argument\r\n", argv[arg]);
1386 (void)PRINTF("Error: invalid number of arguments\r\n");
1402 (void)PRINTF("Error: invalid number of civic require argument\r\n");
1411 (void)PRINTF("Error: invalid location type argument\r\n");
1420 (void)PRINTF("Error: invalid address type argument\r\n");
1429 (void)PRINTF("Error: invalid address length argument\r\n");
1436 (void)PRINTF("Error: invalid [%s] argument\r\n", argv[arg]);
1460 (void)PRINTF("Error: invalid number of arguments\r\n");
1479 (void)PRINTF("Error: invalid value of burst duration argument\r\n");
1488 (void)PRINTF("Error: invalid minimum delta argument\r\n");
1497 (void)PRINTF("Error: invalid ASAP argument\r\n");
1506 (void)PRINTF("Error: invalid frames per burst argument\r\n");
1515 (void)PRINTF("Error: invalid bandwidth argument\r\n");
1524 (void)PRINTF("Error: invalid burst period argument\r\n");
1531 (void)PRINTF("Error: invalid [%s] argument\r\n", argv[arg]);
1558 (void)PRINTF("Error: invalid number of arguments\r\n");
1565 (void)PRINTF("Error: invalid protocol argument\r\n");
1572 (void)PRINTF("Error: invalid protocol argument\r\n");
1592 (void)PRINTF("Error: invalid number of measurements argument\r\n");
1601 (void)PRINTF("Error: invalid measurement frequency argument\r\n");
1610 (void)PRINTF("Error: invalid I2R STS argument\r\n");
1619 (void)PRINTF("Error: invalid R2I STS argument\r\n");
1628 (void)PRINTF("Error: invalid R2I STS argument\r\n");
1637 (void)PRINTF("Error: invalid format bandwidth argument\r\n");
1644 (void)PRINTF("Error: invalid [%s] argument\r\n", argv[arg]);
1673 (void)PRINTF("\r\nUsage : sta_filter_table <FILTERMODE> <MACADDRESS_LIST>\r\n");
1674 (void)PRINTF("\r\nOptions: FILTERMODE : 0 - Disable filter table");
1675 (void)PRINTF("\r\n 1 - allow MAC addresses specified in the allowed list");
1676 (void)PRINTF("\r\n 2 - block MAC addresses specified in the banned list");
1677 … (void)PRINTF("\r\n MACADDRESS_LIST is the list of MAC addresses to be acted upon. Each");
1678 … (void)PRINTF("\r\n MAC address must be separated with a space. Maximum of");
1679 (void)PRINTF("\r\n 16 MAC addresses are supported.\r\n");
1693 (void)PRINTF("ERR:Too many or too few farguments.\r\n");
1703 …(void)PRINTF("ERR:Illegal FILTERMODE parameter %s. Must be either '0', '1', or '2'.\r\n", argv[1]);
1719 (void)PRINTF("Error: invalid MAC argument\r\n");
1743 (void)PRINTF("Usage: %s <sta/uap> <ext>\r\n", argv[0]);
1753 (void)PRINTF("Usage: %s <sta/uap> <ext>\r\n", argv[0]);
1759 (void)PRINTF("Failed to get log\r\n");
1763 (void)PRINTF(
1789 (void)PRINTF(
1824 (void)PRINTF("dot11TransmittedFragmentCount %u\r\n", stats.tx_frag_cnt);
1825 (void)PRINTF("dot11QosTransmittedFragmentCount ");
1828 (void)PRINTF("%u ", stats.qos_tx_frag_cnt[i]);
1830 (void)PRINTF("\r\ndot11QosFailedCount ");
1833 (void)PRINTF("%u ", stats.qos_failed_cnt[i]);
1835 (void)PRINTF("\r\ndot11QosRetryCount ");
1838 (void)PRINTF("%u ", stats.qos_retry_cnt[i]);
1840 (void)PRINTF("\r\ndot11QosMultipleRetryCount ");
1843 (void)PRINTF("%u ", stats.qos_multi_retry_cnt[i]);
1845 (void)PRINTF("\r\ndot11QosFrameDuplicateCount ");
1848 (void)PRINTF("%u ", stats.qos_frm_dup_cnt[i]);
1850 (void)PRINTF("\r\ndot11QosRTSSuccessCount ");
1853 (void)PRINTF("%u ", stats.qos_rts_suc_cnt[i]);
1855 (void)PRINTF("\r\ndot11QosRTSFailureCount ");
1858 (void)PRINTF("%u ", stats.qos_rts_failure_cnt[i]);
1860 (void)PRINTF("\r\ndot11QosACKFailureCount ");
1863 (void)PRINTF("%u ", stats.qos_ack_failure_cnt[i]);
1865 (void)PRINTF("\r\ndot11QosReceivedFragmentCount ");
1868 (void)PRINTF("%u ", stats.qos_rx_frag_cnt[i]);
1870 (void)PRINTF("\r\ndot11QosTransmittedFrameCount ");
1873 (void)PRINTF("%u ", stats.qos_tx_frm_cnt[i]);
1875 (void)PRINTF("\r\ndot11QosDiscardedFrameCount ");
1878 (void)PRINTF("%u ", stats.qos_discarded_frm_cnt[i]);
1880 (void)PRINTF("\r\ndot11QosMPDUsReceivedCount ");
1883 (void)PRINTF("%u ", stats.qos_mpdus_rx_cnt[i]);
1885 (void)PRINTF("\r\ndot11QosRetriesReceivedCount ");
1888 (void)PRINTF("%u ", stats.qos_retries_rx_cnt[i]);
1890 (void)PRINTF(
1926 (void)PRINTF("Usage:\r\n");
1927 (void)PRINTF(" wlan-multi-mef <ping/arp/multicast/ns/del> [<action>]\r\n");
1928 (void)PRINTF(" ping/arp/multicast/ns\r\n");
1929 (void)PRINTF(" -- MEF entry type, will add one mef entry at a time\r\n");
1930 (void)PRINTF(" del -- Delete all previous MEF entries\r\n");
1931 (void)PRINTF(" action -- 0--discard and not wake host\r\n");
1932 (void)PRINTF(" 1--discard and wake host\r\n");
1933 (void)PRINTF(" 3--allow and wake host\r\n");
1934 (void)PRINTF("Example:\r\n");
1935 (void)PRINTF(" wlan-multi-mef ping 3\r\n");
1936 (void)PRINTF(" wlan-multi-mef del\r\n");
1946 (void)PRINTF("Error: invalid number of arguments\r\n");
1957 (void)PRINTF("Error: invalid mef type\r\n");
1986 (void)PRINTF("Error: invalid mef type\r\n");
2009 (void)PRINTF("Error: invalid number of arguments\r\n");
2010 (void)PRINTF("Usage:\r\n");
2012 (void)PRINTF(" wlan-wakeup-condition <mef/wowlan wake_up_conds>\r\n");
2014 (void)PRINTF(" wlan-wakeup-condition <wowlan wake_up_conds>\r\n");
2016 (void)PRINTF(" wowlan -- default host wakeup\r\n");
2017 (void)PRINTF(" [wake_up_conds] -- value for wowlan host wakeup conditions only\r\n");
2018 (void)PRINTF(" bit 0: WAKE_ON_ALL_BROADCAST\r\n");
2019 (void)PRINTF(" bit 1: WAKE_ON_UNICAST\r\n");
2020 (void)PRINTF(" bit 2: WAKE_ON_MAC_EVENT\r\n");
2021 (void)PRINTF(" bit 3: WAKE_ON_MULTICAST\r\n");
2022 (void)PRINTF(" bit 4: WAKE_ON_ARP_BROADCAST\r\n");
2023 (void)PRINTF(" bit 6: WAKE_ON_MGMT_FRAME\r\n");
2024 (void)PRINTF(" All bit 0 discard and not wakeup host\r\n");
2026 (void)PRINTF(" mef -- MEF host wakeup\r\n");
2028 (void)PRINTF("Example:\r\n");
2030 (void)PRINTF(" wlan-wakeup-condition mef\r\n");
2032 (void)PRINTF(" wlan-wakeup-condition wowlan 0x1e\r\n");
2046 (void)PRINTF("wake_up_conds need be specified\r\n");
2054 (void)PRINTF("Error during strtol:wake_up_conds errno:%d\r\n", errno);
2061 (void)PRINTF("wowlan/mef need be specified\r\n");
2063 (void)PRINTF("wowlan need be specified\r\n");
2095 (void)PRINTF("Error during strtol:host_sleep errno:%d\r\n", errno);
2108 (void)PRINTF("Cancel Previous configured Host sleep configuration");
2112 … (void)PRINTF("Failed to Cancel Previous configured Host sleep configuration, error: %d", ret);
2132 (void)PRINTF("Error during strtol:wowlan errno:%d\r\n", errno);
2139 (void)PRINTF("Host sleep configuration req sent");
2143 (void)PRINTF("Failed to host sleep configuration, error: %d", ret);
2152 (void)PRINTF("Host sleep configuration successs with MEF");
2156 (void)PRINTF("Failed to host sleep configuration, error: %d", ret);
2168 (void)PRINTF("Error: invalid number of arguments\r\n");
2169 (void)PRINTF("Usage:\r\n");
2170 (void)PRINTF(" wlan-host-sleep <1/0> <wowlan [wake_up_conds]/mef>\r\n");
2171 (void)PRINTF(" [wake_up_conds] -- value for host wakeup conditions\r\n");
2172 (void)PRINTF(" bit 0: WAKE_ON_ALL_BROADCAST\r\n");
2173 (void)PRINTF(" bit 1: WAKE_ON_UNICAST\r\n");
2174 (void)PRINTF(" bit 2: WAKE_ON_MAC_EVENT\r\n");
2175 (void)PRINTF(" bit 3: WAKE_ON_MULTICAST\r\n");
2176 (void)PRINTF(" bit 4: WAKE_ON_ARP_BROADCAST\r\n");
2177 (void)PRINTF(" bit 6: WAKE_ON_MGMT_FRAME\r\n");
2178 (void)PRINTF(" All bit 0 discard and not wakeup host\r\n");
2179 (void)PRINTF(" All bit 1 cancel host sleep configuration\r\n");
2181 (void)PRINTF(" mef -- MEF host wakeup\r\n");
2182 (void)PRINTF("Example:\r\n");
2183 (void)PRINTF(" wlan-host-sleep <1/0> mef\r\n");
2184 (void)PRINTF(" wlan-host-sleep <1/0> wowlan 0x1e\r\n");
2186 (void)PRINTF(" wlan-host-sleep <1/0> wowlan 0x1e\r\n");
2202 (void)PRINTF("Error: invalid number of arguments\r\n");
2203 (void)PRINTF("Usage:\r\n");
2204 (void)PRINTF(" wlan-auto-host-sleep <enable> <periodic>\r\n");
2205 (void)PRINTF(" enable -- enable/disable host sleep\r\n");
2206 (void)PRINTF(" 0 - disable host sleep\r\n");
2207 (void)PRINTF(" 1 - enable host sleep\r\n");
2208 (void)PRINTF(" periodic -- Host enter low power periodically or oneshot\r\n");
2209 (void)PRINTF(
2213 … (void)PRINTF(" 1 - Periodic. Host will enter low power periodically.\r\n");
2214 (void)PRINTF("Examples:\r\n");
2215 (void)PRINTF(" wlan-auto-host-sleep 1 1\r\n");
2216 (void)PRINTF(" wlan-auto-host-sleep 0\r\n");
2222 (void)PRINTF("Error! Invalid input of parameter <enable>\r\n");
2230 (void)PRINTF("Auto Host Sleep disabled\r\n");
2243 (void)PRINTF("Enabled wlan IPv6 NS offload feature");
2247 (void)PRINTF("Failed to enabled wlan auto arp offload, error: %d", ret);
2256 (void)PRINTF("Enabled wlan auto arp offload feature\r\n");
2258 (void)PRINTF("Failed to enabled wlan auto arp offload, error: %d\r\n", ret);
2264 (void)PRINTF("Usage:\r\n");
2265 (void)PRINTF("For wowlan Add packet filter\r\n");
2266 (void)PRINTF("wowlan magic filter:\r\n");
2267 (void)PRINTF("wlan_add_packet_filter 1:\r\n");
2268 (void)PRINTF("wowlan User defined pattren packet filter:\r\n");
2269 …(void)PRINTF("wlan_add_packet_filter 0 <number of patterns> <ptn_len> <pkt_offset> <ptn> ........:…
2270 (void)PRINTF(
2273 (void)PRINTF("wowlan User defined pattren and magic packet filter:\r\n");
2274 …(void)PRINTF("wlan_add_packet_filter 1 <number of patterns> <ptn_len> <pkt_offset> <ptn> ........:…
2275 (void)PRINTF(
2287 (void)PRINTF("Usage: %s <0/1>\r\n", argv[0]);
2288 (void)PRINTF("Error: Specify 1 to magic filter\r\n");
2294 …(void)PRINTF("Usage: %s 0/1 <patterns number> <ptn_len> <pkt_offset> <ptn> ...........\r\n", argv[…
2317 (void)PRINTF("Enabled pkt filter offload feature");
2319 (void)PRINTF("Failed to enabled magic pkt filter offload, error: %d", ret);
2330 (void)PRINTF("Enabled wlan IPv6 NS offload feature");
2334 (void)PRINTF("Failed to enabled wlan auto arp offload, error: %d", ret);
2343 (void)PRINTF("Enabled wlan auto arp offload feature\r\n");
2345 (void)PRINTF("Failed to enabled wlan auto arp offload, error: %d\r\n", ret);
2351 (void)PRINTF("Usage:\r\n");
2352 (void)PRINTF("For wowlan Add packet filter\r\n");
2353 (void)PRINTF("wowlan magic filter:\r\n");
2354 (void)PRINTF("wlan_add_packet_filter 1:\r\n");
2355 (void)PRINTF("wowlan User defined pattren packet filter:\r\n");
2356 …(void)PRINTF("wlan_add_packet_filter 0 <number of patterns> <ptn_len> <pkt_offset> <ptn> ........:…
2357 (void)PRINTF(
2360 (void)PRINTF("wowlan User defined pattren and magic packet filter:\r\n");
2361 …(void)PRINTF("wlan_add_packet_filter 1 <number of patterns> <ptn_len> <pkt_offset> <ptn> ........:…
2362 (void)PRINTF(
2374 (void)PRINTF("Usage: %s <0/1>\r\n", argv[0]);
2375 (void)PRINTF("Error: Specify 1 to magic filter\r\n");
2381 …(void)PRINTF("Usage: %s 0/1 <patterns number> <ptn_len> <pkt_offset> <ptn> ...........\r\n", argv[…
2404 (void)PRINTF("Enabled pkt filter offload feature");
2406 (void)PRINTF("Failed to enabled magic pkt filter offload, error: %d", ret);
2428 (void)PRINTF("Hostcmd success, response is");
2431 (void)PRINTF("%x\t", host_cmd_resp_buf[len]);
2436 (void)PRINTF("Hostcmd failed error: %d", ret);
2443 (void)PRINTF("Usage:\r\n");
2444 (void)PRINTF(" wlan-ext-coex-uwb \r\n");
2445 (void)PRINTF(" - Enable UWB Coex\r\n");
2446 (void)PRINTF("Example:\r\n");
2447 (void)PRINTF(" wlan-ext-coex-uwb \r\n");
2448 (void)PRINTF(" - Enable UWB Coex \r\n");
2475 (void)PRINTF("Error: invalid number of arguments\r\n");
2484 (void)PRINTF("Hostcmd success, response is\r\n");
2486 (void)PRINTF("%x\t", resp_buf[ret]);
2490 (void)PRINTF("Hostcmd failed error: %d", ret);
2517 (void)PRINTF("8801 External Coex Config set successfully");
2521 (void)PRINTF("8801 External Coex Config error: %d", ret);
2534 (void)PRINTF("Unable to get external Coex statistics\r\n");
2538 … (void)PRINTF("BLE_EIP: %d, BLE_PRI: %d, WLAN_EIP: %d\r\n", ext_coex_stats.ext_radio_req_count,
2546 (void)PRINTF("Usage:\r\n");
2547 (void)PRINTF("Get value of memory:\r\n");
2548 (void)PRINTF(" wlan-mem-access <memeory_address>\r\n");
2549 (void)PRINTF("Set value of memory:\r\n");
2550 (void)PRINTF(" wlan-mem-access <memeory_address> <value>\r\n");
2551 (void)PRINTF("The format of memory address and value:\r\n");
2552 (void)PRINTF(
2569 (void)PRINTF("Error: invalid number of arguments\r\n");
2582 (void)PRINTF("Error: invalid value argument\r\n");
2591 (void)PRINTF("Error: invalid address argument\r\n");
2600 (void)PRINTF("At Memory 0x%x: 0x%x\r\n", address, value);
2602 (void)PRINTF("Set the Memory successfully\r\n");
2612 (void)PRINTF("Usage:\r\n");
2613 (void)PRINTF("Get boot sleep status:\r\n");
2614 (void)PRINTF(" wlan-boot-sleep \r\n");
2615 (void)PRINTF("Set boot sleep:\r\n");
2616 (void)PRINTF(" wlan-boot-sleep <0/1>\r\n");
2627 (void)PRINTF("Error: invalid number of arguments\r\n");
2643 (void)PRINTF("Boot sleep status: %d\r\n", enable);
2645 (void)PRINTF("Boot sleep status is: %s\r\n", enable == 1 ? "Enabled" : "Disabled");
2664 (void)PRINTF("Usage:\r\n");
2665 (void)PRINTF("Algorithm RC4 encryption and decryption verification\r\n");
2666 (void)PRINTF("wlan-eu-crypto-rc4 <EncDec>\r\n");
2667 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
2682 (void)PRINTF("Error: invalid number of arguments\r\n");
2689 (void)PRINTF("Error: invalid EncDec\r\n");
2716 (void)PRINTF("Raw Data:\r\n");
2720 (void)PRINTF("Decrypted Data:\r\n");
2726 (void)PRINTF("Encrypted Data:\r\n");
2732 (void)PRINTF("Hostcmd failed error: %d", ret);
2738 (void)PRINTF("Usage:\r\n");
2739 (void)PRINTF("Algorithm AES-ECB encryption and decryption verification\r\n");
2740 (void)PRINTF("wlan-eu-crypto-aes-ecb <EncDec>\r\n");
2741 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
2756 (void)PRINTF("Error: invalid number of arguments\r\n");
2763 (void)PRINTF("Error: invalid EncDec\r\n");
2790 (void)PRINTF("Raw Data:\r\n");
2794 (void)PRINTF("Decrypted Data:\r\n");
2800 (void)PRINTF("Encrypted Data:\r\n");
2806 (void)PRINTF("Hostcmd failed error: %d", ret);
2812 (void)PRINTF("Usage:\r\n");
2813 (void)PRINTF("Algorithm AES-WRAP encryption and decryption verification\r\n");
2814 (void)PRINTF("wlan-eu-crypto-aes-wrap <EncDec>\r\n");
2815 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
2830 (void)PRINTF("Error: invalid number of arguments\r\n");
2837 (void)PRINTF("Error: invalid EncDec\r\n");
2865 (void)PRINTF("Raw Data:\r\n");
2869 (void)PRINTF("Decrypted Data:\r\n");
2875 (void)PRINTF("Encrypted Data:\r\n");
2881 (void)PRINTF("Hostcmd failed error: %d", ret);
2887 (void)PRINTF("Usage:\r\n");
2888 (void)PRINTF("Algorithm AES-CCMP-128 encryption and decryption verification\r\n");
2889 (void)PRINTF("wlan-eu-crypto-ccmp-128 <EncDec>\r\n");
2890 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
2906 (void)PRINTF("Error: invalid number of arguments\r\n");
2913 (void)PRINTF("Error: invalid EncDec\r\n");
2945 (void)PRINTF("Raw Data:\r\n");
2949 (void)PRINTF("Decrypted Data:\r\n");
2955 (void)PRINTF("Encrypted Data:\r\n");
2961 (void)PRINTF("Hostcmd failed error: %d", ret);
2967 (void)PRINTF("Usage:\r\n");
2968 (void)PRINTF("Algorithm AES-CCMP-256 encryption and decryption verification\r\n");
2969 (void)PRINTF("wlan-eu-crypto-ccmp-256 <EncDec>\r\n");
2970 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
2986 (void)PRINTF("Error: invalid number of arguments\r\n");
2993 (void)PRINTF("Error: invalid EncDec\r\n");
3027 (void)PRINTF("Raw Data:\r\n");
3031 (void)PRINTF("Decrypted Data:\r\n");
3037 (void)PRINTF("Encrypted Data:\r\n");
3043 (void)PRINTF("Hostcmd failed error: %d", ret);
3049 (void)PRINTF("Usage:\r\n");
3050 (void)PRINTF("Algorithm AES-GCMP-128 encryption and decryption verification\r\n");
3051 (void)PRINTF("wlan-eu-crypto-gcmp-128 <EncDec>\r\n");
3052 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
3070 (void)PRINTF("Error: invalid number of arguments\r\n");
3077 (void)PRINTF("Error: invalid EncDec\r\n");
3123 (void)PRINTF("Raw Data:\r\n");
3127 (void)PRINTF("Decrypted Data:\r\n");
3133 (void)PRINTF("Encrypted Data:\r\n");
3139 (void)PRINTF("Hostcmd failed error: %d", ret);
3145 (void)PRINTF("Usage:\r\n");
3146 (void)PRINTF("Algorithm AES-GCMP-256 encryption and decryption verification\r\n");
3147 (void)PRINTF("wlan-eu-crypto-gcmp-256 <EncDec>\r\n");
3148 (void)PRINTF("EncDec: 0-Decrypt, 1-Encrypt\r\n");
3166 (void)PRINTF("Error: invalid number of arguments\r\n");
3173 (void)PRINTF("Error: invalid EncDec\r\n");
3222 (void)PRINTF("Raw Data:\r\n");
3226 (void)PRINTF("Decrypted Data:\r\n");
3232 (void)PRINTF("Encrypted Data:\r\n");
3238 (void)PRINTF("Hostcmd failed error: %d", ret);
3249 (void)PRINTF("os_mem_alloc_cnt: %d \r\n", os_mem_alloc_cnt);
3250 (void)PRINTF("os_mem_free_cnt : %d \r\n", os_mem_free_cnt);
3251 (void)PRINTF("FreeHeapSize : %d \r\n\r\n", xPortGetFreeHeapSize());
3259 (void)PRINTF("Usage:\r\n");
3260 (void)PRINTF("Get rx abort config:\r\n");
3261 (void)PRINTF(" wlan-rx-abort-cfg\r\n");
3262 (void)PRINTF("Set rx abort config:\r\n");
3263 (void)PRINTF(" wlan-rx-abort-cfg <enable> <rssi_threshold>\r\n");
3264 (void)PRINTF("Options: \r\n");
3265 (void)PRINTF(" <enable> : 1--Enable 0--Disable\r\n");
3266 (void)PRINTF(" <rssi_threshold>: weak RSSI pkt threshold in dBm (absolute value)\r\n");
3267 (void)PRINTF(" (default = 70)\r\n");
3268 (void)PRINTF("For example:\r\n");
3269 (void)PRINTF(" wlan-rx-abort-cfg : Get current rx abort config\r\n");
3270 …(void)PRINTF(" wlan-rx-abort-cfg 1 40 : Enable rx abort and set weak RSSI Threshold to -40 dBm\…
3271 (void)PRINTF(" wlan-rx-abort-cfg 0 : Disable rx abort\r\n");
3280 (void)PRINTF("Error: invalid number of arguments\r\n");
3290 (void)PRINTF("Static Rx Abort %s\r\n", cfg.enable == 1 ? "enabled" : "disabled");
3293 (void)PRINTF("RSSI threshold : %ddBm\r\n", cfg.rssi_threshold);
3305 (void)PRINTF("No RSSI threshold set by user.\r\n");
3306 (void)PRINTF("Use default value 70 instead.\r\n");
3313 (void)PRINTF("Invalid threshold value\r\n");
3314 (void)PRINTF("RSSI threshold should less than 0x7f\r\n");
3328 (void)PRINTF("Usage:\r\n");
3329 (void)PRINTF("Get dynamic rx abort cfg:\r\n");
3330 (void)PRINTF(" wlan-get-rx-abort-cfg-ext\r\n");
3331 (void)PRINTF("Set dynamic rx abort cfg:\r\n");
3332 (void)PRINTF(
3335 (void)PRINTF("Options: \r\n");
3336 (void)PRINTF(" enable <enable>\r\n");
3337 (void)PRINTF(" 0 -- Disable Rx abort\r\n");
3338 (void)PRINTF(" 1 -- Enable Rx abort of pkt having weak RSSI\r\n");
3339 (void)PRINTF(" margin <margin>\r\n");
3340 (void)PRINTF(" rssi margin in dBm (absolute val)\r\n");
3341 (void)PRINTF(" (default = 10)\r\n");
3342 (void)PRINTF(" ceil <ceil_rssi_thresh>\r\n");
3343 (void)PRINTF(" rceiling weak RSSI pkt threshold in dBm (absolute val)\r\n");
3344 (void)PRINTF(" (default = 62)\r\n");
3345 (void)PRINTF(" floor <floor_rssi_thresh>\r\n");
3346 (void)PRINTF(" floor weak RSSI pkt threshold in dBm (absolute val)\r\n");
3347 (void)PRINTF(" (default = 82)\r\n");
3348 (void)PRINTF("For example:\r\n");
3349 (void)PRINTF(" wlan-get-rx-abort-cfg-ext: Display current rx abort configuration\r\n");
3350 (void)PRINTF(" wlan-set-rx-abort-cfg-ext enable 1 margin 5 ceil 40 floor 70 :\r\n");
3351 (void)PRINTF(
3354 (void)PRINTF(" wlan-set-rx-abort-cfg-ext enable 1\r\n");
3355 … (void)PRINTF(" Don't set RSSI margin, drive will set defult RSSI margin threshold value.\r\n");
3356 …(void)PRINTF(" Don't set ceil RSSI threshold, driver will set default ceil RSSI threshold value…
3357 …(void)PRINTF(" Don't set floor RSSI threshold, driver will set default floor RSSI threshold val…
3358 (void)PRINTF("\r\n");
3359 (void)PRINTF(" wlan-set-rx-abort-cfg-ext enable 1 ceil 255 \r\n");
3360 … (void)PRINTF(" Don't set RSSI margin, drive will set defult RSSI margin threshold value.\r\n");
3361 (void)PRINTF(
3364 (void)PRINTF(" In this case, don't set floor RSSI threshold.\r\n");
3365 (void)PRINTF(" wlan-set-rx-abort-cfg-ext enable 0 : Disable dynamic rx abort\r\n");
3376 (void)PRINTF("Dynamic Rx Abort %s\r\n", cfg->enable == 1 ? "enabled" : "disabled");
3383 (void)PRINTF("Margin RSSI: %s%d dbm\r\n", ((rssi > 0) ? "-" : ""), rssi);
3388 (void)PRINTF("Ceil RSSI threshold: %s%d dbm\r\n", ((rssi > 0) ? "-" : ""), rssi);
3393 (void)PRINTF("Floor rssi threshold: %s%d dbm\r\n", ((rssi > 0) ? "-" : ""), rssi);
3398 (void)PRINTF("Dynamic RSSI Threshold : %d dbm (%s)\r\n", rssi,
3401 (void)PRINTF("\r\n");
3426 (void)PRINTF("Error: invalid number of arguments\r\n");
3437 (void)PRINTF("Error: invalid enable argument\r\n");
3443 (void)PRINTF("Error: invalid action argument\r\n");
3463 (void)PRINTF("Error: invalid margin argument\r\n");
3469 (void)PRINTF("Error: Invalid Margin value\r\n");
3481 (void)PRINTF("Error: invalid ceil argument\r\n");
3487 (void)PRINTF("Error: Invalid ceil value\r\n");
3499 (void)PRINTF("Error: invalid floor argument\r\n");
3505 (void)PRINTF("Error: Invalid floor value\r\n");
3515 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
3523 (void)PRINTF("Disable dynamic rx abort config\r\n");
3529 (void)PRINTF("No Margin RSSI is set by user.\r\n");
3530 (void)PRINTF(" Use default value instead.\r\n");
3536 (void)PRINTF("No Ceil RSSI threshold is set by user.\r\n");
3537 (void)PRINTF(" Use default value instead.\r\n");
3545 (void)PRINTF("No Floor rssi threshold is set by user.\r\n");
3546 (void)PRINTF(" Driver set floor rssi threshold to 0xff.\r\n");
3551 (void)PRINTF("No Floor rssi threshold is set by user.\r\n");
3552 (void)PRINTF(" Use default value instead.\r\n");
3566 (void)PRINTF("Usage:\r\n");
3567 (void)PRINTF("Get current cck desense config:\r\n");
3568 (void)PRINTF(" wlan-cck-desense-cfg\r\n");
3569 (void)PRINTF("Set cck desense config:\r\n");
3570 …(void)PRINTF(" wlan-cck-desense-cfg <mode> <margin ceil_thresh> <num_on_intervals num_off_inter…
3571 (void)PRINTF("Options: \r\n");
3572 (void)PRINTF(" <enable> :0 - Disable cck desense\r\n");
3573 (void)PRINTF(" 1 - Enable dynamic cck desense mode\r\n");
3574 (void)PRINTF(" 2 - Enable dynamic enhanced cck desense mode\r\n");
3575 (void)PRINTF(" <margin> :rssi margin in dBm (absolute val)\r\n");
3576 (void)PRINTF(" (default = 10)\r\n");
3577 …(void)PRINTF(" <ceil_thresh> :ceiling weak RSSI pkt threshold in dBm (absolute val)\r\n");
3578 (void)PRINTF(" (default = 70)\r\n");
3579 …(void)PRINTF(" <num_on_intervals> :number of rateadapt intervals to keep cck desense \"on\"\r\…
3580 (void)PRINTF(" [for mode 2 only] (default = 20)\r\n");
3581 …(void)PRINTF(" <num_off_intervals> :number of rateadapt intervals to keep cck desense \"off\"\r…
3582 (void)PRINTF(" [for mode 2 only] (default = 3)\r\n");
3583 (void)PRINTF("For example:\r\n");
3584 (void)PRINTF(" wlan-cck-desense-cfg : Get current cck desense config\r\n");
3585 (void)PRINTF(" wlan-cck-desense-cfg 0 : Disable cck desense\r\n");
3586 (void)PRINTF(
3589 (void)PRINTF(
3592 …(void)PRINTF(" num on intervals to 30 and num off intervals…
3593 (void)PRINTF(
3596 …(void)PRINTF(" and retain previous num on/off intervals set…
3607 (void)PRINTF("Error: invalid number of arguments\r\n");
3617 (void)PRINTF("CCK Desense %s\r\n", (cfg.mode) ? "enabled" : "disabled");
3620 …(void)PRINTF("Mode: %s\r\n", (cfg.mode == CCK_DESENSE_MODE_DYNAMIC) ? "Dynamic" : "Dynamic Enhance…
3621 (void)PRINTF("Margin : %ddBm\r\n", cfg.margin);
3622 (void)PRINTF("Ceil RSSI Threshold : %ddBm\r\n", cfg.ceil_thresh);
3626 (void)PRINTF("Num ON intervals : %d\r\n", cfg.num_on_intervals);
3627 (void)PRINTF("Num OFF intervals : %d\r\n", cfg.num_off_intervals);
3636 (void)PRINTF("Invalid cck desense mode\r\n");
3644 (void)PRINTF("Invalid number of args for requested mode\r\n");
3654 (void)PRINTF("Invalid margin value\r\n");
3655 (void)PRINTF("The margin should less than 0x7f\r\n");
3660 (void)PRINTF("Invalid ceil threshold value\r\n");
3661 (void)PRINTF("The ceil threshold should less than 0x7f\r\n");
3671 (void)PRINTF("Invalid ON/OFF intervals value\r\n");
3672 (void)PRINTF("The ON/OFF interval should less than 0xff\r\n");
3692 (void)PRINTF("Invalid arguments\r\n");
3700 (void)PRINTF("Error during strtol:enable multi chan status errno:%d\r\n", errno);
3707 (void)PRINTF("Set multi_chan_status fail, please set before uap start/sta connect\r\n");
3719 (void)PRINTF("Get multi_chan_policy fail\r\n");
3723 (void)PRINTF("Get multi_chan_policy %d\r\n", enable);
3728 (void)PRINTF("wlan-set-drcs usage:\r\n");
3729 (void)PRINTF("arguments group <channel_time> <switch_time> <undoze_time> <mode>\r\n");
3730 (void)PRINTF("input one group, same settings for both channel 0 and channel 1\r\n");
3731 (void)PRINTF("input two groups, different settings for channel 0 first and then channel 1\r\n");
3732 (void)PRINTF("channel_time: Channel time stayed (in TU 1024us) for chan_idx\r\n");
3733 (void)PRINTF(
3736 (void)PRINTF("undoze_time: Undoze time during switch time (in TU 1024us) for chan_idx\r\n");
3737 (void)PRINTF("mode: Channel switch scheme 0-PM1, 1-Null2Self\r\n");
3738 (void)PRINTF("Example for same settings for channel 0 and 1:\r\n");
3739 (void)PRINTF("wlan-set-drcs 15 10 5 0:\r\n");
3740 (void)PRINTF("Example for different settings for channel 0 and 1:\r\n");
3741 (void)PRINTF("wlan-set-drcs 15 10 5 0 16 8 4 1:\r\n");
3750 (void)PRINTF("Error during strtol:drcs_cfg chantime errno:%d\r\n", errno);
3758 (void)PRINTF("Error during strtol:drcs_cfg switchtime errno:%d\r\n", errno);
3766 (void)PRINTF("Error during strtol:drcs_cfg undozetime errno:%d\r\n", errno);
3774 (void)PRINTF("Error during strtol:drcs_cfg mode errno:%d\r\n", errno);
3813 (void)PRINTF("get drcs cfg fail\r\n");
3817 (void)PRINTF("chan_idx: 0x%02x\r\n", drcs_cfg[0].chan_idx);
3818 (void)PRINTF("chan_time: %d\r\n", drcs_cfg[0].chantime);
3819 (void)PRINTF("switch_time: %d\r\n", drcs_cfg[0].switchtime);
3820 (void)PRINTF("undoze_time: %d\r\n", drcs_cfg[0].undozetime);
3821 (void)PRINTF("mode: %d\r\n", drcs_cfg[0].mode);
3824 (void)PRINTF("chan_idx: 0x%02x\r\n", drcs_cfg[1].chan_idx);
3825 (void)PRINTF("chan_time: %d\r\n", drcs_cfg[1].chantime);
3826 (void)PRINTF("switch_time: %d\r\n", drcs_cfg[1].switchtime);
3827 (void)PRINTF("undoze_time: %d\r\n", drcs_cfg[1].undozetime);
3828 (void)PRINTF("mode: %d\r\n", drcs_cfg[1].mode);
3836 (void)PRINTF("Usage:\r\n");
3838 (void)PRINTF("wlan-set-antcfg <ant mode> [evaluate_time] \r\n");
3840 (void)PRINTF("wlan-set-antcfg <ant_mode> <evaluate_time> <evaluate_mode>\r\n");
3842 (void)PRINTF("\r\n");
3843 (void)PRINTF("\t<ant_mode>: \r\n");
3844 (void)PRINTF("\t 1 -- Tx/Rx antenna 1\r\n");
3845 (void)PRINTF("\t 2 -- Tx/Rx antenna 2\r\n");
3846 (void)PRINTF("\t 0xFFFF -- Tx/Rx antenna diversity\r\n");
3847 (void)PRINTF("\t[evaluate_time]: \r\n");
3848 (void)PRINTF("\t If ant mode = 0xFFFF, use this to configure\r\n");
3849 (void)PRINTF("\t SAD evaluate time interval in milli seconds unit.\r\n");
3850 (void)PRINTF("\t MAX evaluate time is 65535ms.\r\n");
3851 (void)PRINTF("\t If not specified, default value is 6000 milli seconds.\r\n");
3853 (void)PRINTF("\t<evaluate_mode>: \r\n");
3854 (void)PRINTF("\t 0: Ant1 + Ant2\r\n");
3855 (void)PRINTF("\t 1: Ant2 + Ant3\r\n");
3856 (void)PRINTF("\t 2: Ant1 + Ant3\r\n");
3857 (void)PRINTF("\t 255: invalid evaluate mode\r\n");
3858 (void)PRINTF("\t If not used, just keep this field empty.\r\n");
3860 (void)PRINTF("Examples:\r\n");
3861 (void)PRINTF("wlan-set-antcfg 1\r\n");
3862 (void)PRINTF("wlan-set-antcfg 0xffff\r\n");
3863 (void)PRINTF("wlan-set-antcfg 0xffff 5000\r\n");
3865 (void)PRINTF("wlan-set-antcfg 0xffff 6000 0\r\n");
3886 (void)PRINTF("Error during strtol errno:%d", errno);
3903 (void)PRINTF("Error during strtol errno:%d", errno);
3910 (void)PRINTF("Antenna configuration successful\r\n");
3914 (void)PRINTF("Antenna configuration failed\r\n");
3929 (void)PRINTF("Error: invalid number of arguments\r\n");
3937 (void)PRINTF("Error during strtol errno:%d", errno);
3944 (void)PRINTF("Error: invalid ant_mode\r\n");
3955 (void)PRINTF("Error during strtol errno:%d", errno);
3967 (void)PRINTF("Error during strtol errno:%d", errno);
3974 (void)PRINTF("Error: invalid evaluate_mode\r\n");
3982 (void)PRINTF("Antenna configuration successful\r\n");
3986 (void)PRINTF("Antenna configuration failed\r\n");
3994 (void)PRINTF("Usage:\r\n");
3995 (void)PRINTF("wlan-get-antcfg \r\n");
4021 (void)PRINTF("Mode of Tx/Rx path is : %x\r\n", ant_mode);
4024 (void)PRINTF("Evaluate time : %d\r\n", evaluate_time);
4027 (void)PRINTF("Evaluate mode : Ant1 + Ant2\r\n");
4029 (void)PRINTF("Evaluate mode : Ant2 + Ant3\r\n");
4031 (void)PRINTF("Evaluate mode : Ant1 + Ant3\r\n");
4033 (void)PRINTF("Default diversity mode.\r\n");
4038 (void)PRINTF("Current antenna is Ant%d\n", current_antenna);
4043 (void)PRINTF("antcfg configuration read failed\r\n");
4055 (void)PRINTF("Invalid arguments\r\n");
4056 (void)PRINTF("Usage:\r\n");
4057 (void)PRINTF("wlan-scan-channel-gap <scan_gap_value>\r\n");
4058 (void)PRINTF("scan_gap_value: [2,500]\r\n");
4064 (void)PRINTF("Invaild scan_gap value!\r\n");
4065 (void)PRINTF("Usage:\r\n");
4066 (void)PRINTF("wlan-scan-channel-gap <scan_gap_value>\r\n");
4067 (void)PRINTF("scan_gap_value: [2,500]\r\n");
4090 (void)PRINTF("Usage: %s MAC_Address\r\n", argv[0]);
4097 (void)PRINTF("Error: invalid MAC argument\r\n");
4112 (void)PRINTF("Usage: %s <options>\r\n", argv[0]);
4113 (void)PRINTF("0 to Disable WiFi\r\n");
4114 (void)PRINTF("1 to Enable WiFi\r\n");
4115 (void)PRINTF("2 to Reset WiFi\r\n");
4159 (void)PRINTF("Error : invalid number of arguments \r\n");
4160 …(void)PRINTF("Usage : %s <block_tx> <oper_class> <new_channel> <switch_count> <bandwidth>\r…
4161 (void)PRINTF("block_tx : 0 -- no need to block traffic, 1 -- need block traffic \r\n");
4162 (void)PRINTF(
4165 (void)PRINTF("new_channel : The channel will switch to \r\n");
4166 (void)PRINTF("switch count : Channel switch time to send ECSA ie \r\n");
4167 …(void)PRINTF("bandwidth : Channel width switch to(optional),RW610 only support 20M channels \r\…
4169 (void)PRINTF("\r\nUsage example : wlan-set-ecsa-cfg 1 0 36 10 1 \r\n");
4177 (void)PRINTF("Error : invalid arguments \r\n");
4178 (void)PRINTF("argv[4] switch_count cannot be 0\r\n");
4186 (void)PRINTF("Failed to set ecsa cfg \r\n");
4195 (void)PRINTF("Usage:\r\n");
4196 (void)PRINTF("set mmsf:\r\n");
4197 (void)PRINTF("wlan-set-mmsf <enable> <Density> <MMSF>\r\n");
4198 (void)PRINTF("enable:\r\n");
4199 (void)PRINTF(" 0: disable\r\n");
4200 (void)PRINTF(" 1: enable\r\n");
4201 (void)PRINTF("Density:\r\n");
4202 (void)PRINTF(" Range: [0x0,0xFF]. Default value is 0x30.\r\n");
4203 (void)PRINTF(" Pls enter value like this: 0x20 or 0X20\r\n");
4204 (void)PRINTF("MMSF:\r\n");
4205 (void)PRINTF(" Range: [0x0,0xFF]. Default value is 0x6.\r\n");
4206 (void)PRINTF(" Pls enter value like this: 0x20 or 0X20\r\n");
4261 (void)PRINTF("Failed to set MMSF config.\r\n");
4265 (void)PRINTF("Success to set MMSF config.\r\n");
4283 (void)PRINTF("Failed to get MMSF configure.\r\n");
4287 (void)PRINTF("MMSF configure:\r\n");
4288 (void)PRINTF("Enable MMSF: %s\r\n", enable == 0 ? "Disable" : "Enable");
4289 (void)PRINTF("Density: 0x%02x\r\n", Density);
4290 (void)PRINTF("MMSF: 0x%02x\r\n", MMSF);
4306 (void)PRINTF("timeout happends.\r\n");
4319 PRINTF("evt_bitmap = %u\r\n", evt_bitmap);
4322 PRINTF("rssi low is enabled! ");
4323 PRINTF("value = %u, freq = %u\r\n", sub_evt->low_rssi, sub_evt->low_rssi_freq);
4327 PRINTF("rssi high is enabled! ");
4328 PRINTF("value = %u, freq = %u\r\n", sub_evt->high_rssi, sub_evt->high_rssi_freq);
4332 PRINTF("snr low is enabled! ");
4333 PRINTF("value = %u, freq = %u\r\n", sub_evt->low_snr, sub_evt->low_snr_freq);
4337 PRINTF("snr high is enabled! ");
4338 PRINTF("value = %u, freq = %u\r\n", sub_evt->high_snr, sub_evt->high_snr_freq);
4342 PRINTF("max fail is enabled! ");
4343 PRINTF("value = %u, freq = %u\r\n", sub_evt->failure_count, sub_evt->failure_count_freq);
4347 PRINTF("beacon miss is enabled! ");
4348 PRINTF("value = %u, freq = %u\r\n", sub_evt->beacon_miss, sub_evt->beacon_miss_freq);
4352 PRINTF("data rssi low is enabled! ");
4353 PRINTF("value = %u, freq = %u\r\n", sub_evt->data_low_rssi, sub_evt->data_low_rssi_freq);
4357 PRINTF("data rssi high is enabled! ");
4358 PRINTF("value = %u, freq = %u\r\n", sub_evt->data_high_rssi, sub_evt->data_high_rssi_freq);
4362 PRINTF("data snr low is enabled! ");
4363 PRINTF("value = %u, freq = %u\r\n", sub_evt->data_low_snr, sub_evt->data_low_snr_freq);
4367 PRINTF("data snr high is enabled! ");
4368 PRINTF("value = %u, freq = %u\r\n", sub_evt->data_high_snr, sub_evt->data_high_snr_freq);
4372 PRINTF("link quality is enabled! ");
4373 PRINTF(
4382 PRINTF("pre beacon lost is enabled! ");
4383 PRINTF("value = %u\r\n", sub_evt->pre_beacon_miss);
4392 (void)PRINTF("Usage:\r\n");
4393 (void)PRINTF("Subscribe event to firmware:\r\n");
4394 (void)PRINTF(" wlan-subscribe-event <action> <type> <value> <freq>\r\n");
4395 (void)PRINTF("Options: \r\n");
4396 (void)PRINTF(" <action> : 1:set, 2:get, 3:clear\r\n");
4397 (void)PRINTF(
4400 (void)PRINTF(" <value> : when action is set, specific int type value\r\n");
4401 (void)PRINTF(
4404 (void)PRINTF("For example:\r\n");
4405 (void)PRINTF(
4413 (void)PRINTF(
4418 (void)PRINTF(" wlan-subscribe-event get : Get the all subscribe event parameter\r\n");
4419 (void)PRINTF(
4562 (void)PRINTF("wlan-subscribe-event unkown fail\r\n");
4570 (void)PRINTF("Usage:\r\n");
4571 (void)PRINTF("Read the register:\r\n");
4572 (void)PRINTF(" wlan-reg-access <type> <offset>\r\n");
4573 (void)PRINTF("Write the register:\r\n");
4574 (void)PRINTF(" wlan-reg-access <type> <offset> <value>\r\n");
4575 (void)PRINTF("Options: \r\n");
4576 (void)PRINTF(" <type> : 1:MAC, 2:BBP, 3:RF, 4:CAU\r\n");
4577 (void)PRINTF(" <offset>: offset of register\r\n");
4578 (void)PRINTF("For example:\r\n");
4579 (void)PRINTF(" wlan-reg-access 1 0x9b8 : Read the MAC register\r\n");
4580 (void)PRINTF(" wlan-reg-access 1 0x9b8 0x80000000 : Write 0x80000000 to MAC register\r\n");
4593 (void)PRINTF("Error: invalid number of arguments\r\n");
4601 … (void)PRINTF("Error: Illegal register type %s. Must be either '1','2','3' or '4'.\r\n", argv[1]);
4617 (void)PRINTF("Value = 0x%x\r\n", value);
4619 (void)PRINTF("Set the register successfully\r\n");
4622 (void)PRINTF("Read/write register failed");
4633 (void)PRINTF("qos_info = %d\r\n", qos_info);
4638 (void)PRINTF("qos_info can't be zero, input %s\r\n", argv[1]);
4644 (void)PRINTF("Usage: %s <null|qos_info>\r\n", argv[0]);
4645 (void)PRINTF("set qos_info value to UAPSD QOS_INFO\r\n");
4646 (void)PRINTF("bit0:VO; bit1:VI; bit2:BK; bit3:BE\r\n");
4657 (void)PRINTF("Usage: %s <enable>\r\n", argv[0]);
4658 (void)PRINTF("0 to Disable UAPSD\r\n");
4659 (void)PRINTF("1 to Enable UAPSD\r\n");
4672 (void)PRINTF("period = %d\r\n", period);
4678 (void)PRINTF("Usage: %s <period(ms)>\r\n", argv[0]);
4686 (void)PRINTF("Usage:\r\n");
4687 …(void)PRINTF("wlan-ampdu-enable <sta/uap> <xx: rx:tx bit map. Tx (bit 0), Rx (bit 1> <xx: TID bit …
4688 (void)PRINTF("xx: TID bit map\r\n");
4689 (void)PRINTF(" 1 - TID 0 enable \r\n");
4690 (void)PRINTF(" 2 - TID 1 enable\r\n");
4691 (void)PRINTF(" 4 - TID 2 enable\r\n");
4692 (void)PRINTF(" 7 - TID0, 1, 2 enable\r\n");
4693 (void)PRINTF(" ---------\r\n");
4694 (void)PRINTF(" 255 - TID 0-7 enable \r\n");
4695 (void)PRINTF(" 0 - Disable ampdu \r\n");
4696 (void)PRINTF("Example: disable sta rx/tx ampdu\r\n");
4697 (void)PRINTF(" wlan-ampdu-enable sta 3 0\r\n");
4729 (void)PRINTF("Error: configure ampdu control before sta connection!\r\n", argv[0]);
4766 (void)PRINTF("Error: configure ampdu control before uap start!\r\n", argv[0]);
4804 (void)PRINTF("Usage:\r\n");
4805 (void)PRINTF(" wlan-tx-ampdu-prot-mode <mode>\r\n");
4806 (void)PRINTF(" <mode>: 0 - Set RTS/CTS mode \r\n");
4807 (void)PRINTF(" 1 - Set CTS2SELF mode \r\n");
4808 (void)PRINTF(" 2 - Disable Protection mode \r\n");
4809 (void)PRINTF(" 3 - Set Dynamic RTS/CTS mode \r\n");
4810 (void)PRINTF("Example:\r\n");
4811 (void)PRINTF(" wlan-tx-ampdu-prot-mode\r\n");
4812 (void)PRINTF(" - Get currently set protection mode for TX AMPDU.\r\n");
4813 (void)PRINTF(" wlan-tx-ampdu-prot-mode 1\r\n");
4814 (void)PRINTF(" - Set protection mode for TX AMPDU to CTS2SELF.\r\n");
4823 (void)PRINTF("Error: invalid number of arguments\r\n");
4833 (void)PRINTF("\r\nTx AMPDU protection mode: ");
4837 (void)PRINTF("RTS/CTS\r\n");
4840 (void)PRINTF("CTS-2-SELF\r\n");
4843 (void)PRINTF("Disabled\r\n");
4846 (void)PRINTF("DYNAMIC RTS/CTS\r\n");
4849 (void)PRINTF("Invalid protection mode\r\n");
4858 (void)PRINTF("Error: invalid protection mode\r\n");
4870 (void)PRINTF("Error: invalid number of arguments\r\n");
4871 (void)PRINTF("Usage : wlan-set-csi-filter <opt> <macaddr> <pkt_type> <type> <flag>\r\n");
4872 (void)PRINTF("opt : add/delete/clear/dump \r\n");
4873 (void)PRINTF("add : All options need to be filled in \r\n");
4874 (void)PRINTF("delete: Delete recent filter information \r\n");
4875 (void)PRINTF("clear : Clear all filter information \r\n");
4876 (void)PRINTF("dump : Dump csi cfg information \r\n");
4878 (void)PRINTF("\r\nUsage example : \r\n");
4879 (void)PRINTF("wlan-set-csi-filter add 00:18:E7:ED:2D:C1 255 255 0 \r\n");
4880 (void)PRINTF("wlan-set-csi-filter delete \r\n");
4881 (void)PRINTF("wlan-set-csi-filter clear \r\n");
4882 (void)PRINTF("wlan-set-csi-filter dump \r\n");
4887 (void)PRINTF("\r\nThe current csi_param is: \r\n");
4889 (void)PRINTF("bss_type : sta\r\n");
4891 (void)PRINTF("bss_type : uap\r\n");
4892 (void)PRINTF("csi_enable : %d \r\n", g_csi_params.csi_enable);
4893 (void)PRINTF("head_id : %d \r\n", g_csi_params.head_id);
4894 (void)PRINTF("tail_id : %d \r\n", g_csi_params.tail_id);
4895 (void)PRINTF("csi_filter_cnt: %d \r\n", g_csi_params.csi_filter_cnt);
4896 (void)PRINTF("chip_id : %d \r\n", g_csi_params.chip_id);
4897 (void)PRINTF("band_config : %d \r\n", g_csi_params.band_config);
4898 (void)PRINTF("channel : %d \r\n", g_csi_params.channel);
4899 (void)PRINTF("csi_monitor_enable : %d \r\n", g_csi_params.csi_monitor_enable);
4900 (void)PRINTF("ra4us : %d \r\n", g_csi_params.ra4us);
4902 (void)PRINTF("\r\n");
4946 (void)PRINTF("max csi filter cnt is 16 \r\n");
4959 (void)PRINTF("csi filter cnt is 0 \r\n");
4977 (void)PRINTF("mac_addr : %02X:%02X:%02X:%02X:%02X:%02X \r\n",
4982 (void)PRINTF("pkt_type : %d \r\n", g_csi_params.csi_filter[i].pkt_type);
4983 (void)PRINTF("subtype : %d \r\n", g_csi_params.csi_filter[i].subtype);
4984 (void)PRINTF("flags : %d \r\n", g_csi_params.csi_filter[i].flags);
4985 (void)PRINTF("\r\n");
4990 (void)PRINTF("unknown argument!\r\n");
4997 PRINTF("CSI user callback: Event CSI data\r\n");
5017 (void)PRINTF("Error: invalid number of arguments\r\n");
5018 (void)PRINTF(
5024 (void)PRINTF("[csi_enable] :1/2 to Enable/Disable CSI\r\n");
5025 …(void)PRINTF("[head_id, head_id, chip_id] are used to seperate CSI event records received from FW\…
5026 (void)PRINTF(
5036 (void)PRINTF("[channel] : monitor channel number\r\n");
5037 (void)PRINTF("[csi_monitor_enable] : 1-csi_monitor enable, 0-MAC filter enable\r\n");
5038 (void)PRINTF(
5042 (void)PRINTF("\r\nUsage example : \r\n");
5043 (void)PRINTF("wlan-set-csi-param-header sta 1 66051 66051 170 0 11 1 1\r\n");
5062 PRINTF("Please put sta or uap\r\n");
5079 PRINTF("Error during register csi user callback\r\n");
5109 (void)PRINTF("Error: invalid MAC argument\r\n");
5114 (void)PRINTF("Error: only support unicast mac\r\n");
5145 (void)PRINTF("Unknown argument!\r\n");
5160 (void)PRINTF("Failed to send csi cfg\r\n");
5172 (void)PRINTF("Usage: %s <rssi threshold value>\r\n", argv[0]);
5173 … (void)PRINTF("Error: Default value is 70. Specify the value you want to set as threshold.\r\n");
5181 (void)PRINTF("Error during strtol:rssi_threshold errno:%d\r\n", errno);
5187 (void)PRINTF("rssi threshold set successfully.\r\n");
5194 (void)PRINTF("Error : invalid arguments\r\n");
5195 (void)PRINTF("Usage : wlan-set-monitor-filter <opt> <macaddr>\r\n");
5196 (void)PRINTF("opt : add/delete/clear/dump \r\n");
5197 (void)PRINTF("add : All options need to be filled in \r\n");
5198 (void)PRINTF("delete: Delete recent mac addr \r\n");
5199 (void)PRINTF("clear : Clear all mac addr \r\n");
5200 (void)PRINTF("dump : Dump monitor cfg information \r\n");
5202 (void)PRINTF("\r\nUsage example :\r\n");
5203 (void)PRINTF("wlan-set-monitor-filter add 64:64:4A:D6:FA:7B \r\n");
5204 (void)PRINTF("wlan-set-monitor-filter delete \r\n");
5205 (void)PRINTF("wlan-set-monitor-filter clear \r\n");
5206 (void)PRINTF("wlan-set-monitor-filter dump \r\n");
5213 (void)PRINTF("\r\n");
5214 (void)PRINTF("current parameters: \r\n");
5215 (void)PRINTF("action : %d \r\n", g_net_monitor_param.action);
5216 (void)PRINTF("monitor_activity : %d \r\n", g_net_monitor_param.monitor_activity);
5217 (void)PRINTF("filter_flags : %d \r\n", g_net_monitor_param.filter_flags);
5218 (void)PRINTF("radio_type : %d \r\n", g_net_monitor_param.radio_type);
5219 (void)PRINTF("chan_number : %d \r\n", g_net_monitor_param.chan_number);
5220 (void)PRINTF("filter_num : %d \r\n", g_net_monitor_param.filter_num);
5221 (void)PRINTF("\r\n");
5225 …(void)PRINTF("mac_addr : %02X:%02X:%02X:%02X:%02X:%02X \r\n", g_net_monitor_param.mac_addr[i]…
5236 (void)PRINTF("Error : invalid number of arguments\r\n");
5237 …(void)PRINTF("Usage : %s <action> <monitor_activity> <filter_flags> <radio_type> <chan…
5239 (void)PRINTF("action : 0/1 to Action Get/Set \r\n");
5240 …(void)PRINTF("monitor_activity : 1 to enable and other parameters to disable monitor activity \r\…
5241 (void)PRINTF("filter_flags : network monitor fitler flag \r\n");
5242 (void)PRINTF("chan_number : channel to monitor \r\n");
5244 (void)PRINTF("\r\nUsage example :\r\n");
5245 (void)PRINTF("wlan-set-monitor-param 1 1 7 0 1 \r\n");
5293 (void)PRINTF("Max filter num is 3 \r\n");
5306 (void)PRINTF("Monitor filter num is 0 \r\n");
5321 (void)PRINTF("unknown argument!\r\n");
5339 (void)PRINTF("Error: invalid MAC argument\r\n");
5344 (void)PRINTF("Error: only support unicast mac\r\n");
5365 (void)PRINTF("Unknown argument!\r\n\r\n");
5390 (void)PRINTF("Failed to send monitor cfg\r\n");
5406 (void)PRINTF("os mem alloc failed for CPU run info \r\n");
5423 (void)PRINTF("---------------------------------------------\r\n");
5424 (void)PRINTF("taskName Status priority freeStack pid\r\n");
5425 (void)PRINTF("%s", CPU_RunInfo);
5426 (void)PRINTF("---------------------------------------------\r\n");
5431 (void)PRINTF("taskName runTime Percentage\r\n");
5432 (void)PRINTF("%s", CPU_RunInfo);
5433 (void)PRINTF("---------------------------------------------\r\n\n");
5447 (void)PRINTF("Usage:\r\n");
5448 …(void)PRINTF(" wlan-cpu-loading start <start> sample_loops <number> sample_period <period>\r\n"…
5449 (void)PRINTF(" <start>: \r\n");
5450 (void)PRINTF(" 0: stop ongoing collecting cpu loading info.\r\n");
5451 (void)PRINTF(" 1: start collecting cpu loading info.\r\n");
5452 (void)PRINTF(" <number>: \r\n");
5453 (void)PRINTF(" The cycle numbers to collect cpu loading info.\r\n");
5454 (void)PRINTF(
5456 (void)PRINTF(" <period>: \r\n");
5457 (void)PRINTF(" The period to collect cpu loading info.\r\n");
5458 (void)PRINTF(" If no value is set, period is asigned as 2s.\r\n");
5459 … (void)PRINTF(" Note: The smaller the period, the greater the impact on performance.\r\n");
5460 (void)PRINTF(" For example:\r\n");
5461 (void)PRINTF(" wlan-cpu-loading start 0\r\n");
5462 (void)PRINTF(" stop ongoing collecting cpu loading info.\r\n");
5463 (void)PRINTF(" wlan-cpu-loading start 1 sample_loops 10\r\n");
5464 (void)PRINTF(
5466 (void)PRINTF(" wlan-cpu-loading start 1 sample_loops 10 sample_period 5\r\n");
5467 …(void)PRINTF(" The cycle numbers of collecting cpu loading is 10 and collect period is…
5468 (void)PRINTF(" wlan-cpu-loading start 1\r\n");
5469 …(void)PRINTF(" Ongoing colloecting cpu loading info until execute 'wlan-cpu-loading 0'…
5470 (void)PRINTF(" wlan-cpu-loading start 1 sample_period 4\r\n");
5471 (void)PRINTF(
5494 (void)PRINTF("Error: invalid number of arguments\r\n");
5506 (void)PRINTF("Error: invalid <start> argument\r\n");
5512 (void)PRINTF("Error: invalid <start> argument\r\n");
5525 (void)PRINTF("Error: invalid <number> argument\r\n");
5538 (void)PRINTF("Error: invalid <period> argument\r\n");
5549 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
5557 (void)PRINTF("Start cpu loading test:\r\n");
5559 (void)PRINTF("%s\r\n", "Keeping CPU loading test");
5561 (void)PRINTF("Cycle numbers of CPU loading test: %d\r\n", number);
5564 (void)PRINTF("Period of CPU loading test: 2s\r\n");
5566 (void)PRINTF("Period of CPU loading test: %d s\r\n", period);
5576 (void)PRINTF("Usage:\r\n");
5577 (void)PRINTF(
5580 (void)PRINTF(" <en>: 0 -- disable 1 -- enable\r\n");
5581 (void)PRINTF(" <bo>: power backoff [0...20]\r\n");
5582 (void)PRINTF(" <high>: High power Threshold [0...300]\r\n");
5583 (void)PRINTF(" <low>: Low power Threshold [0...300]\r\n");
5584 (void)PRINTF(" <dcstep>: Duty Cycle setp [1...100]\r\n");
5585 (void)PRINTF(" <dcmin>: Duty Cycle min [0...100]\r\n");
5586 (void)PRINTF(" <hightemp>: High Throttle Threshold temperature [-100...150]\r\n");
5587 (void)PRINTF(" <lowtemp>: Low Throttle Threshold temperature [-100...150]\r\n");
5588 (void)PRINTF(" High Threshold must be greater than Low Threshold\r\n");
5589 …(void)PRINTF(" High Throttle Threshold temperature must be greater than Low Throttle Threshold t…
5590 (void)PRINTF(" If you want to get tsp cfg, you can just use wlan-get-tsp-cfg.\r\n");
5591 (void)PRINTF("\r\nUsage example : \r\n");
5592 (void)PRINTF(
5594 (void)PRINTF("wlan-set-tsp-cfg en 0 \r\n");
5627 (void)PRINTF("Error: invalid number of arguments\r\n");
5639 (void)PRINTF("Error: invalid enable argument\r\n");
5651 (void)PRINTF("Error: invalid backoff argument\r\n");
5663 (void)PRINTF("Error: invalid high threshold argument\r\n");
5675 (void)PRINTF("Error: invalid low threshold argument\r\n");
5687 (void)PRINTF("Error: invalid dutycycstep argument\r\n");
5699 (void)PRINTF("Error: invalid dutycycmin argument\r\n");
5712 (void)PRINTF("Error: invalid high throttle temperature threshold argument\r\n");
5725 (void)PRINTF("Error: invalid low throttle temperature threshold argument\r\n");
5735 (void)PRINTF("Error: invalid [%d] argument\r\n", arg + 1);
5743 (void)PRINTF("Error: High Threshold must be greater than Low Threshold\r\n");
5753 (void)PRINTF("Unable to set TSP config\r\n");
5784 (void)PRINTF("Unable to get TSP config\r\n");
5788 (void)PRINTF("TSP Configuration:\r\n");
5789 (void)PRINTF(" Enable TSP Algorithm: %d\r\n", enable);
5790 (void)PRINTF(" 0: disable 1: enable\r\n");
5791 (void)PRINTF(" Power Management Backoff: %d dB\r\n", back_off);
5792 (void)PRINTF(" Low Power BOT Threshold(celcius): %d\r\n", lowThreshold);
5793 (void)PRINTF(" High Power BOT Threshold(celcius): %d\r\n", highThreshold);
5794 (void)PRINTF(" Duty Cycle setp(percentage): %d\r\n", dutycycstep);
5795 (void)PRINTF(" Duty Cycle min (percentage): %d\r\n", dutycycmin);
5796 (void)PRINTF(" High Throttle Threshold temperature(celcius): %d\r\n", highthrtemp);
5797 (void)PRINTF(" Low Throttle Threshold temperature(celcius): %d\r\n", lowthrtemp);
5798 (void)PRINTF(" CAU TSEN Temperature(celcius): %d\r\n", currCAUTemp);
5799 (void)PRINTF(" RFU Temperature(celcius): %d\r\n", currRFUTemp);
5814 (void)PRINTF("Usage:\r\n");
5815 (void)PRINTF(" wlan-tcp-client dst_ip <dst_ip> src_port <src_port> dst_port <dst_port>\r\n");
5816 (void)PRINTF(" <dst_ip> Destination IP\r\n");
5817 (void)PRINTF(" <src_port> Source port\r\n");
5818 (void)PRINTF(" <dst_port> Destination port\r\n");
5819 (void)PRINTF(" Please specify dst_ip src_port and dst_port\r\n");
5820 (void)PRINTF(" wlan-tcp-client dst_ip 192.168.1.50 src_port 54236 dst_port 9526\r\n");
5857 (void)PRINTF("Error: invalid number of arguments\r\n");
5864 (void)PRINTF("Can not start wlan_tcp_client in disconnected state\r\n");
5881 (void)PRINTF("Error: invalid src_port argument\r\n");
5892 (void)PRINTF("Error: invalid dst_port argument\r\n");
5901 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
5910 (void)PRINTF("Error: please specify dst_ip src_port and dst_port\r\n");
5916 (void)PRINTF("Cloud keep alive not started for given destination ip and port\r\n");
5936 (void)PRINTF("Usage:\r\n");
5937 …(void)PRINTF(" wlan-cloud-keep-alive start id <id> dst_mac <dst_mac> dst_ip <dst_ip> dst_port <…
5938 (void)PRINTF(" <id> Keep alive id from 0 to 3\r\n");
5939 (void)PRINTF(" <dst_mac> Destination MAC address\r\n");
5940 (void)PRINTF(" <dst_ip> Destination IP\r\n");
5941 (void)PRINTF(" <dst_port> Destination port\r\n");
5942 (void)PRINTF(" Please specify dst_mac, dst_ip and dst_port\r\n");
5943 (void)PRINTF(" wlan-cloud-keep-alive stop\r\n");
5944 (void)PRINTF(" wlan-cloud-keep-alive reset\r\n");
5969 (void)PRINTF("Error: invalid number of arguments\r\n");
5994 (void)PRINTF("Error during strtol:id errno:%d\r\n", errno);
6006 (void)PRINTF("Error: invalid dst_mac argument\r\n");
6024 (void)PRINTF("Error: invalid dst_port argument\r\n");
6033 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
6041 (void)PRINTF("Error: please specify dst_mac, dst_ip and dst_port\r\n");
6059 (void)PRINTF("Error: invalid [%d] argument, give start/stop/reset\r\n", arg + 1);
6082 (void)PRINTF("Can not get RSSI information in disconnected state\r\n");
6091 (void)PRINTF("Unable to get RSSI information\r\n");
6094 (void)PRINTF("\tBeaconLast\tBeacon Average\tData Last\tData Average\r\n");
6095 …(void)PRINTF("RSSI\t%-10d \t%-10d \t%-10d \t%-10d\r\n", (int)signal.bcn_rssi_last, (int)signal.bcn…
6097 …(void)PRINTF("SNR \t%-10d \t%-10d \t%-10d \t%-10d\r\n", (int)signal.bcn_snr_last, (int)signal.bcn_…
6099 …(void)PRINTF("NF \t%-10d \t%-10d \t%-10d \t%-10d\r\n", (int)signal.bcn_nf_last, (int)signal.bcn_n…
6106 (void)PRINTF(" Bits in Band:\r\n");
6107 (void)PRINTF(" bit 0: B (Not support set)\r\n");
6108 (void)PRINTF(" bit 1: G (Not support set)\r\n");
6109 (void)PRINTF(" bit 2: A (Not support set)\r\n");
6110 (void)PRINTF(" bit 3: GN (Not support set)\r\n");
6111 (void)PRINTF(" bit 4: AN (Not support set)\r\n");
6113 (void)PRINTF(" bit 5: AC 2.4G (Not support set)\r\n");
6114 (void)PRINTF(" bit 6: AC 5G (Not support set)\r\n");
6117 (void)PRINTF(" bit 8: AX 2.4G\r\n");
6118 (void)PRINTF(" bit 9: AX 5G\r\n");
6132 (void)PRINTF("Unable to get bandcfg\r\n");
6135 (void)PRINTF("\tconfig band: 0x%x\r\n", bandcfg.config_bands);
6136 (void)PRINTF("\tfw band: 0x%x\r\n", bandcfg.fw_bands);
6143 (void)PRINTF("Usage:\r\n");
6144 (void)PRINTF(" wlan-set-bandcfg <value>\r\n");
6160 (void)PRINTF("Block set bandcfg when 11AX is not supported.\r\n");
6166 (void)PRINTF("Error: invalid number of arguments\r\n");
6179 (void)PRINTF("Please set 11ax 2G/5G bit both 0 or both 1.\r\n");
6188 (void)PRINTF("Unable to get bandcfg\r\n");
6213 (void)PRINTF("Unable to set bandcfg\r\n");
6221 (void)PRINTF("Usage:\r\n");
6222 (void)PRINTF(" This command is to set Next Wakeup RX Beacon Time\r\n");
6223 (void)PRINTF(" Will take effect after enter power save mode by command wlan-ieee-ps 1\r\n");
6224 (void)PRINTF(" Next Wakeup RX Beacon Time = DTIM * BeaconPeriod * multiple_dtim\r\n");
6226 (void)PRINTF(" wlan-set-multiple-dtim <value>\r\n");
6227 (void)PRINTF(" <value> Value of multiple dtim, range[1,20]\r\n");
6236 (void)PRINTF("Error: invalid number of arguments\r\n");
6245 (void)PRINTF("Error: value of multiple dtim is out of range\r\n");
6251 (void)PRINTF("Set multiple dtim to %d\r\n", multiple_dtim);
6257 (void)PRINTF("Usage:\r\n");
6258 (void)PRINTF(" wlan-set-su <0/1>\r\n");
6259 (void)PRINTF(" <start/stop>: 1 -- stop su\r\n");
6260 (void)PRINTF(" 0 -- start su\r\n");
6261 (void)PRINTF("Example:\r\n");
6262 (void)PRINTF(" wlan-set-su\r\n");
6263 (void)PRINTF(" - Get current su state.\r\n");
6264 (void)PRINTF(" wlan-set-su 1\r\n");
6265 (void)PRINTF(" - stop su\r\n");
6289 (void)PRINTF("Error: invalid number of arguments\r\n");
6310 (void)PRINTF("Hostcmd success, response is\r\n");
6312 (void)PRINTF("%x\t", debug_resp_buf[ret]);
6316 (void)PRINTF("Hostcmd failed error: %d", ret);
6327 (void)PRINTF("Usage:\r\n");
6328 (void)PRINTF(" wlan-set-forceRTS <0/1>\r\n");
6329 (void)PRINTF(" <start/stop>: 1 -- start forceRTS\r\n");
6330 (void)PRINTF(" 0 -- stop forceRTS\r\n");
6331 (void)PRINTF("Example:\r\n");
6332 (void)PRINTF(" wlan-set-forceRTS\r\n");
6333 (void)PRINTF(" - Get current forceRTS state.\r\n");
6334 (void)PRINTF(" wlan-set-forceRTS 1\r\n");
6335 (void)PRINTF(" - Set start forceRTS\r\n");
6357 (void)PRINTF("Error: invalid number of arguments\r\n");
6379 (void)PRINTF("Hostcmd success, response is\r\n");
6381 (void)PRINTF("%x\t", debug_resp_buf[ret]);
6385 (void)PRINTF("Hostcmd failed error: %d", ret);
6393 (void)PRINTF("Usage:\r\n");
6394 (void)PRINTF("wlan-set-ips option\r\n");
6395 (void)PRINTF("option:\r\n");
6396 (void)PRINTF("0: disable ips enhance\r\n");
6397 (void)PRINTF("1: enable ips enhance\r\n");
6405 (void)PRINTF("Error: invalid number of arguments\r\n");
6412 (void)PRINTF("Error: invalid option argument\r\n");
6419 (void)PRINTF("Error: invalid option argument\r\n");
6435 (void)PRINTF("Error: invalid number of arguments\r\n");
6443 PRINTF("Start WPS PBC failed\r\n");
6447 PRINTF("FAIL-PBC-OVERLAP\r\n");
6451 PRINTF("Started WPS PBC session\r\n");
6461 (void)PRINTF("Error: invalid number of arguments\r\n");
6473 PRINTF("Invalid PIN entered\r\n");
6477 PRINTF("Started WPS PIN session with pin as: %s\r\n", argv[1]);
6487 (void)PRINTF("Error: invalid number of arguments\r\n");
6492 PRINTF("WPS PIN is: %08d\r\n", pin);
6502 (void)PRINTF("Error: invalid number of arguments\r\n");
6510 PRINTF("Cancel WPS failed\r\n");
6520 (void)PRINTF("Error: invalid number of arguments\r\n");
6528 PRINTF("Start AP WPS PBC failed\r\n");
6538 (void)PRINTF("Error: invalid number of arguments\r\n");
6546 PRINTF("Start AP WPS PIN failed\r\n");
6550 PRINTF("Started AP WPS PIN session with pin as: %s\r\n", argv[1]);
6560 (void)PRINTF("Error: invalid number of arguments\r\n");
6568 PRINTF("Cancel WPS failed\r\n");
6582 (void)PRINTF("Error: invalid number of arguments\r\n");
6583 (void)PRINTF("Usage: wlan-get-turbo-mode STA/UAP\r\n");
6599 (void)PRINTF("Error: invalid BSS type\r\n");
6600 (void)PRINTF("Usage: wlan-get-turbo-mode STA/UAP\r\n");
6606 (void)PRINTF("%s Turbo mode: %d\r\n", bss_type == MLAN_BSS_TYPE_STA ? "STA" : "UAP", mode);
6610 … (void)PRINTF("Failed to get %s turbo mode\r\n", bss_type == MLAN_BSS_TYPE_STA ? "STA" : "UAP");
6618 (void)PRINTF("Usage: wlan-set-turbo-mode <STA/UAP> <mode>\r\n");
6619 (void)PRINTF(" <STA/UAP> 'STA' or 'UAP' \r\n");
6620 (void)PRINTF(" <mode> can be 0,1,2,3\r\n");
6631 (void)PRINTF("Error: invalid number of arguments\r\n");
6642 (void)PRINTF("Error: invalid BSS type\r\n");
6649 (void)PRINTF("Invalid mode argument\r\n");
6666 … (void)PRINTF("Set %s turbo mode to %d\r\n", bss_type == MLAN_BSS_TYPE_STA ? "STA" : "UAP", mode);
6670 … (void)PRINTF("Failed to set %s turbo mode\r\n", bss_type == MLAN_BSS_TYPE_STA ? "STA" : "UAP");
6681 (void)PRINTF("Usage:\r\n");
6682 (void)PRINTF(" wlan-set-debug-htc \r\n");
6683 (void)PRINTF(" <count>:1\r\n");
6684 (void)PRINTF(" <vht:1>\r\n");
6685 (void)PRINTF(" <he:1>\r\n");
6686 (void)PRINTF(" <rxNss:1>\r\n");
6687 (void)PRINTF(" <channelWidth:1>\r\n");
6688 (void)PRINTF(" <ulMuDisable:1>\r\n");
6689 (void)PRINTF(" <txNSTS:1>\r\n");
6690 (void)PRINTF(" <erSuDisable:1>\r\n");
6691 (void)PRINTF(" <dlResoundRecomm:1>\r\n");
6692 (void)PRINTF(" <ulMuDataDisable:1>\r\n");
6721 (void)PRINTF("Error: invalid number of arguments\r\n");
6741 (void)PRINTF("HTC parameter set successfully\r\n");
6743 (void)PRINTF("Failed to set HTC parameter\r\n");
6749 (void)PRINTF("Usage: wlan-enable-disable-htc <option>\r\n");
6750 (void)PRINTF(" <option> 0 => disable \r\n");
6751 (void)PRINTF(" 1 => enable \r\n");
6761 (void)PRINTF("Error: invalid number of arguments\r\n");
6767 (void)PRINTF("Invalid option argument\r\n");
6777 (void)PRINTF("HTC enabled\r\n");
6779 (void)PRINTF("HTC disabled\r\n");
6783 (void)PRINTF("Failed to enable/disable HTC\r\n");
6790 (void)PRINTF("Usage:\r\n");
6791 (void)PRINTF(" wlan-set-country-ignore-ie <0/1>\r\n");
6792 (void)PRINTF(" <enable/disable>: 1 -- Ignore country ie\r\n");
6793 (void)PRINTF(" 0 -- Use country ie(default)\r\n");
6803 (void)PRINTF("Error: invalid number of arguments\r\n");
6818 (void)PRINTF("Set country ie ignore is failed\r\n");
6822 (void)PRINTF("Country ie \"%s\" is set\r\n", ignore == 0 ? "follow" : "ignore");
6829 …(void)PRINTF("Usage: wlan-single-ant-duty-cycle <enable/disable> [<Ieee154Duration> <TotalDuration…
6830 (void)PRINTF(" <enable/disable> Enable - 1, Disable - 0\r\n");
6831 …(void)PRINTF(" <Ieee154Duration> Enter value in Units (1Unit = 1ms), no more than TotalDuration…
6832 … (void)PRINTF(" <TotalDuration> Enter value in Units (1Unit = 1ms), total duty cycle time\r\n");
6833 (void)PRINTF(" Ieee154Duration should not equal to TotalDuration-Ieee154Duration\r\n");
6842 (void)PRINTF("Error: invalid number of arguments\r\n");
6849 (void)PRINTF("Invalid arguments\r\n");
6858 (void)PRINTF("Invalid arguments\r\n");
6865 (void)PRINTF("Invalid arguments\r\n");
6880 (void)PRINTF("Set single ant duty cycle successfully\r\n");
6884 (void)PRINTF("Failed to set single ant duty cycle\r\n");
6892 (void)PRINTF(
6895 (void)PRINTF(" <enable/disable> Enable - 1, Disable - 0\r\n");
6896 …(void)PRINTF(" <Ieee154Duration> Enter value in Units (1Unit = 1ms), no more than TotalDuration…
6897 (void)PRINTF(" <TotalDuration> Enter value in Units (1Unit = 1ms)\r\n");
6898 (void)PRINTF(" <Ieee154FarRangeDuration> Enter value in Units (1Unit = 1ms)\r\n");
6899 …(void)PRINTF(" Ieee154Duration, TotalDuration and Ieee154FarRangeDuration should not equal to e…
6908 (void)PRINTF("Error: invalid number of arguments\r\n");
6915 (void)PRINTF("Invalid arguments\r\n");
6925 (void)PRINTF("Invalid arguments\r\n");
6933 (void)PRINTF("Invalid arguments\r\n");
6949 (void)PRINTF("Set dual ant duty cycle successfully\r\n");
6953 (void)PRINTF("Failed to set dual ant duty cycle\r\n");
6964 (void)PRINTF(
6970 (void)PRINTF(" enable <enable/disable>\r\n");
6971 …(void)PRINTF(" Select PTA interface: 5, Select WCI-2 interface: 6, Select WCI-2 GPIO inte…
6972 (void)PRINTF(" ExtWifiBtArb <enable/disable>\r\n");
6973 (void)PRINTF(" Enable Ext-WifiBtArb: 1, Disbale Ext-WifiBtArb: 0.\r\n");
6974 (void)PRINTF(" PolGrantPin <high/low> \r\n");
6975 (void)PRINTF(" Active High: 0, Active Low: 1.\r\n");
6976 (void)PRINTF(" PriPtaInt <enable/disable> \r\n");
6977 (void)PRINTF(" Enable PriPta-Init: 1, Disable PriPta-Init: 0.\r\n");
6978 (void)PRINTF(" StateFromPta <state pin/ priority pin/ state input disable> \r\n");
6979 (void)PRINTF(" State input disbale : 0.\r\n");
6980 (void)PRINTF(" State info is from state pin : 1.\r\n");
6981 (void)PRINTF(" State info is sampled on priority pin: 2.\r\n");
6982 (void)PRINTF(" SampTiming <Sample timing> \r\n");
6983 (void)PRINTF(" Timing to sample Priority bit.\r\n");
6984 (void)PRINTF(" Sample timing range [20, 200].\r\n");
6985 (void)PRINTF(" Defalut value: 100.\r\n");
6986 (void)PRINTF(" InfoSampTiming <Sample timing> \r\n");
6987 (void)PRINTF(" Timing to sample Tx/Rx info.\r\n");
6988 (void)PRINTF(" Sample timing range [20, 200].\r\n");
6989 (void)PRINTF(" Defalut value: 100.\r\n");
6990 (void)PRINTF(" TrafficPrio <enable/disable> \r\n");
6991 (void)PRINTF(" Enable external traffic Tx/Rx Priority: 1.\r\n");
6992 (void)PRINTF(" Disable external traffic Tx/Rx Priority: 0.\r\n");
6993 (void)PRINTF(" CoexHwIntWic <enable/disable> \r\n");
6994 (void)PRINTF(" Enable WCI-2 interface: 1.\r\n");
6995 (void)PRINTF(" Disable WCI-2 interface: 0.\r\n");
7006 (void)PRINTF("Error: invalid number of arguments.\r\n");
7034 (void)PRINTF("Invalid enable argument.\r\n");
7042 (void)PRINTF("Invalid enable argument.\r\n");
7054 (void)PRINTF("Invalid ExtWifiBtArb argument.\r\n");
7061 (void)PRINTF("Invalid ExtWifiBtArb argument.\r\n");
7073 (void)PRINTF("Invalid PolGrantPin argument.\r\n");
7080 (void)PRINTF("Invalid PolGrantPin argument.\r\n");
7092 (void)PRINTF("Invalid PolGrantPin argument.\r\n");
7099 (void)PRINTF("Invalid PolGrantPin argument.\r\n");
7111 (void)PRINTF("Invalid StateFromPta argument.\r\n");
7118 (void)PRINTF("Invalid StateFromPta argument.\r\n");
7130 (void)PRINTF("Invalid SampTiming argument.\r\n");
7137 (void)PRINTF("Invalid SampTiming argument.\r\n");
7149 (void)PRINTF("Invalid InfoSampTiming argument.\r\n");
7156 (void)PRINTF("Invalid InfoSampTiming argument.\r\n");
7168 (void)PRINTF("Invalid TrafficPrio argument.\r\n");
7175 (void)PRINTF("Invalid TrafficPrio argument.\r\n");
7187 (void)PRINTF("Invalid CoexHwIntWic argument.\r\n");
7194 (void)PRINTF("Invalid CoexHwIntWic argument.\r\n");
7204 (void)PRINTF("Invalid %d argument %s\r\n", arg, argv[arg]);
7212 (void)PRINTF("Error: Missing <enable> argument.\r\n");
7217 (void)PRINTF("Error: Missing <ExtWifiBtArb> argument.\r\n");
7222 (void)PRINTF("Error: Missing <PolGrantPin> argument.\r\n");
7227 (void)PRINTF("Error: Missing <PriPtaInt> argument.\r\n");
7232 (void)PRINTF("Error: Missing <StateFromPta> argument.\r\n");
7238 (void)PRINTF("Info: Missing <SampTiming> argument. Use default value 100.\r\n");
7243 (void)PRINTF("Info: Missing <InfoSampTiming> argument. Use default value 100.\r\n");
7247 (void)PRINTF("Error: Missing <TrafficPrio> argument.\r\n");
7252 (void)PRINTF("Error: Missing <CoexHwIntWic> argument.\r\n");
7266 (void)PRINTF("Success to set external coex pta config:\r\n");
7267 (void)PRINTF("Enable ");
7269 (void)PRINTF("PTA interface.\r\n");
7271 (void)PRINTF("WCI-2 interface.\r\n");
7273 (void)PRINTF("WCI-2 GPIO interface.\r\n");
7275 (void)PRINTF("Unknow interface.\r\n");
7277 (void)PRINTF("%s WifiBtArb.\r\n",
7279 …(void)PRINTF("PolGrantPin active %s.\r\n", coex_pta_config.polGrantPin == POL_GRANT_PIN_HIGH ? "Hi…
7280 (void)PRINTF("%s PriPtaInt.\r\n",
7283 (void)PRINTF("State input disable.\r\n");
7285 (void)PRINTF("State info is from state pin.\r\n");
7287 (void)PRINTF("State info is sampled on priority pin.\r\n");
7289 (void)PRINTF("Unknow state pin info\r\n");
7291 (void)PRINTF("Timing to sample Priority bit: %d.\r\n", coex_pta_config.setPriSampTiming);
7292 … (void)PRINTF("Timing to sample Tx/Rx info: %d.\r\n", coex_pta_config.setStateInfoSampTiming);
7293 (void)PRINTF("%s external traffic Tx/Rx Priority.\r\n",
7295 (void)PRINTF("%s WCI-2 interface.\r\n",
7299 (void)PRINTF("Failed to set external coex pta parameters.\r\n");
7309 (void)PRINTF("Usage:\r\n");
7310 (void)PRINTF(" wlan-imd3-cfg <enable / disable> <isolation index>\r\n");
7311 (void)PRINTF(" <enable> 1: enable / 0: disable\r\n");
7312 (void)PRINTF(" <isolation index> range: 1 ~ 5 or 15\r\n");
7313 (void)PRINTF(" If set index to 15, use default value.");
7314 (void)PRINTF("Fox example:\r\n");
7315 (void)PRINTF(" wlan-imd3-cfg 0 \r\n");
7316 (void)PRINTF(" wlan-imd3-cfg 1 3\r\n");
7327 (void)PRINTF("Error: invalid number of arguments.\r\n");
7334 (void)PRINTF("Invalid <enable> argument \r\n");
7343 (void)PRINTF("Missing <isolation index> argument \r\n");
7352 (void)PRINTF("Invalid <index> argument \r\n");
7368 (void)PRINTF("Success to set IMD cfg.\r\n");
7372 (void)PRINTF("Failed to set IMD cfg.\r\n");
7384 (void)PRINTF("Usage:\r\n");
7385 …(void)PRINTF(" wlan-auto-reconnect <0/1/2> [<reconnect counter> <reconnect interval> <flags>]\r…
7386 (void)PRINTF(" <0/1/2> : 0 - Disable auto reconnect\r\n");
7387 (void)PRINTF(" 1 - Enable auto reconnect\r\n");
7388 (void)PRINTF(" 2 - Get auto reconnect configuration\r\n");
7389 …(void)PRINTF(" <reconnect counter> : 1-255 Auto reconnect attempts (Defult:255 - retry for…
7390 …(void)PRINTF(" <reconnect interval> : 0-255 Auto reconnect time period in seconds(Default:1…
7391 (void)PRINTF(
7393 (void)PRINTF("Examples:\r\n");
7394 (void)PRINTF(" wlan-auto-reconnect 0\r\n");
7395 (void)PRINTF(" wlan-auto-reconnect 1 10 10 0\r\n");
7396 (void)PRINTF(" wlan-auto-reconnect 2\r\n");
7413 (void)PRINTF("Error: invalid number of arguments\r\n");
7421 (void)PRINTF("Error during strtol:enable\r\n");
7430 (void)PRINTF("Disabled auto reconnect\r\n");
7434 (void)PRINTF("Failed to disable auto reconnect, error: %d\r\n", ret);
7445 (void)PRINTF("Error during strtol:reconnect counter\r\n");
7452 (void)PRINTF("Auto reconnect counter can not be 0\r\n");
7462 (void)PRINTF("Error during strtol:reconnect interval\r\n");
7473 (void)PRINTF("Error during strtol:flags\r\n");
7485 (void)PRINTF("Enabled auto reconnect\r\n");
7489 (void)PRINTF("Failed to enable auto reconnect, error: %d\r\n", ret);
7497 (void)PRINTF("Auto Reconnect Counter = %d\r\n", recon_config.reconnect_counter);
7498 (void)PRINTF("Auto Reconnect Interval = %d\r\n", recon_config.reconnect_interval);
7499 (void)PRINTF("Auto Reconnect Flags = %d\r\n", recon_config.flags);
7503 (void)PRINTF("Failed to get auto reconnect configuration, error: %d\r\n", ret);
7508 (void)PRINTF("Error: Specify 0/1/2 to Disable/Enable/Get auto reconnect configuration\r\n");
7523 (void)PRINTF("Usage : \r\n");
7524 (void)PRINTF(" wlan-set-indrstcfg <ir_mode> [gpio_pin] \r\n");
7525 (void)PRINTF(" ir_mode : 0 -- Disable \r\n");
7526 (void)PRINTF(" 1 -- Enable out band reset, disable in band \r\n");
7527 (void)PRINTF(" 2 -- Enable in band, disable out band \r\n");
7528 (void)PRINTF(" gpio_pin : 255 -- Default pin for reset \r\n");
7529 (void)PRINTF(" any other number for changing the gpio for reset. \r\n");
7530 (void)PRINTF("Example : \r\n");
7531 (void)PRINTF(" wlan-set-indrstcfg 1 255 : Set default pin as reset pin \r\n");
7532 (void)PRINTF(" wlan-set-indrstcfg 0 : Disable the independent reset \r\n");
7533 (void)PRINTF(" wlan-set-indrstcfg 2 : Enable in band reset mode \r\n");
7555 (void)PRINTF("Error during strtoul errno:%d", errno);
7561 (void)PRINTF("Invalid ir mode parameter (0/1/2)!\n\r");
7573 (void)PRINTF("Error during strtoul errno:%d", errno);
7578 (void)PRINTF("Invalid gpio pin no !\n\r");
7588 (void)PRINTF("Unable to set independent reset config\r\n");
7592 (void)PRINTF("Independent Reset Mode set as: %s\n\r",
7606 (void)PRINTF("Unable to get independent reset config\r\n");
7612 (void)PRINTF("FW error Mode must be 0, 1 or 2\n");
7615 PRINTF("Independent Reset Mode = %s\r\n",
7618 (void)PRINTF("GPIO Pin = %d\n\n", indrst_cfg.gpio_pin);
7624 (void)PRINTF("Usage : \r\n");
7625 (void)PRINTF(" wlan-independent-reset \r\n");
7642 (void)PRINTF("Independent reset success\r\n");
7646 (void)PRINTF("Independent reset failed\r\n");
7654 (void)PRINTF("Usage:\r\n");
7655 (void)PRINTF(" wlan-sta-inactivityto <n> <m> <l> [k] [j]\r\n");
7656 (void)PRINTF("where the parameter are:\r\n");
7657 (void)PRINTF(" <n>: timeout unit in microseconds.\r\n");
7658 (void)PRINTF(" <m>: Inactivity timeout for unicast data.\r\n");
7659 (void)PRINTF(" <l>: Inactivity timeout for multicast data.\r\n");
7660 … (void)PRINTF(" [k]: Inactivity timeout for new Rx traffic after PS notification to AP.\r\n");
7661 (void)PRINTF(" [j]: Inactivity timeout for cmd.\r\n");
7662 (void)PRINTF("Fox example:\r\n");
7663 (void)PRINTF(" wlan-sta-inactivityto : Get the timeout value\r\n");
7664 (void)PRINTF(" wlan-sta-inactivityto 1000 2 3 : Set timeout unit to 1000 us (1 ms),\r\n");
7665 …(void)PRINTF(" inactivity timeout for unicast data is 2 ms,\r\…
7666 …(void)PRINTF(" inactivity timeout for multicast data is 3 ms\r…
7680 (void)PRINTF("Error: invalid number of arguments.\r\n");
7707 (void)PRINTF("Timeout unit is %d us\r\n", inac_to.timeout_unit);
7708 … (void)PRINTF("Inactivity timeout for unicast data is %d ms\r\n", inac_to.unicast_timeout);
7709 … (void)PRINTF("Inactivity timeout for multicast data is %d ms\r\n", inac_to.mcast_timeout);
7710 … (void)PRINTF("Inactivity timeout for new Rx traffic is %d ms\r\n", inac_to.ps_entry_timeout);
7711 (void)PRINTF("Inactivity timeout for cmd is %d ms\r\n", inac_to.ps_cmd_timeout);
7715 (void)PRINTF("Success to set STA inactivity timeout.\r\n");
7720 (void)PRINTF("Failed to set STA inactivity timeout.\r\n");
7732 (void)PRINTF("Board temperature :%d \r\n", board_temperature);
7739 (void)PRINTF("Usage:\r\n");
7740 (void)PRINTF(" wlan-auto-null-tx <sta/uap> start interval <interval> dst_mac <dst_mac>\r\n");
7741 …(void)PRINTF(" <interval> bit15:14 unit: 00-s 01-us 10-ms 11-one_shot bit13-0: interval\r\…
7742 … (void)PRINTF(" Please set interval Hexadecimal value. For example: 0x8064\r\n");
7743 (void)PRINTF(" <dst_mac> Destination MAC address\r\n");
7744 …(void)PRINTF(" Please specify dst_mac if bss_type is uAP, and dst_mac should be o…
7745 (void)PRINTF(" If bss_type is not uAP, no need to input dst_mac\r\n");
7746 (void)PRINTF(" wlan-auto-null-tx sta stop\r\n");
7759 (void)PRINTF("Error: invalid number of arguments\r\n");
7772 (void)PRINTF("Invalid bss type selection\r\n");
7788 (void)PRINTF("Error: invalid interval argument\r\n");
7796 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
7808 (void)PRINTF("Error: could not get current network bssid\r\n");
7814 (void)PRINTF("Error: not conneted AP\r\n");
7825 (void)PRINTF("Failed to get sta list\n\r");
7838 (void)PRINTF("Error: invalid dst_mac argument\r\n");
7851 … (void)PRINTF("Error: wrong dst_mac, please put one connected STA mac address\r\n");
7858 (void)PRINTF("Error: argument %d is invalid\r\n", arg);
7866 (void)PRINTF("uap isn't up\r\n");
7868 (void)PRINTF("There is no STA connected to uAP\r\n");
7879 (void)PRINTF("Error: invalid [%d] argument, give start/stop\r\n", arg + 1);
7968 (void)PRINTF("%d valid scan entry found\r\n", valid_entry);
8010 PRINTF("Error: can't get scan res %d\r\n", i);
8043 PRINTF("Error: can't get scan res %d\r\n", i);
8048 PRINTF("List top %d best scanned AP's info:\r\n", entry_count);
8052 PRINTF(" \"%s\"\r\n", pInfo->scan_entry[i].ssid);
8053 PRINTF("\tchannel: %d\r\n", pInfo->scan_entry[i].channel);
8054 PRINTF("\trssi: -%d dBm\r\n", pInfo->scan_entry[i].rssi);
8060 PRINTF("avg_rssi: -%d dBm\r\n", pInfo->avg_rssi);
8080 PRINTF("Error: can't get scan res %d\r\n", i);
8085 PRINTF(" \"%s\"\r\n", pInfo->scan_entry[pInfo->entry_idx].ssid);
8086 PRINTF("\tchannel: %d\r\n", pInfo->scan_entry[pInfo->entry_idx].channel);
8087 PRINTF("\trssi: -%d dBm\r\n", pInfo->scan_entry[pInfo->entry_idx].rssi);
8132 (void)PRINTF("\nEvaluate result:\r\n");
8133 (void)PRINTF("\t avg_rssi\r\n");
8136 (void)PRINTF("Antenna %d", i + 1);
8137 (void)PRINTF("\t-%d dBm\r\n", pScan_info[i].avg_rssi);
8144 …(void)PRINTF("There are %d antenna with valid result%s.\r\n", valid_res, valid_res <= 1U ? "" : "s…
8262 (void)PRINTF("\nFind one common device\r\n");
8263 (void)PRINTF("List the info on every antenna for this common device\r\n");
8266 PRINTF("Antenna %d:\r\n", i + 1);
8268 PRINTF(" \"%s\"\r\n", pScan_info[i].scan_entry[com_idx_per_ant[i]].ssid);
8269 PRINTF("\trssi[%d]: -%d dBm\r\n", i, pScan_info[i].scan_entry[com_idx_per_ant[i]].rssi);
8290 (void)PRINTF("\nEvaluate result:\r\n");
8291 (void)PRINTF("\t avg_rssi\r\n");
8295 (void)PRINTF("Antenna %d", i + 1);
8301 PRINTF("\t-%d dBm\r\n", pScan_info[i].avg_rssi);
8316 (void)PRINTF("no networks found\r\n");
8320 (void)PRINTF("%d network%s found\r\n", count, (count == 1U ? "" : "s"));
8351 (void)PRINTF("evaluate ant by specific device\r\n");
8378 (void)PRINTF("Error: scan request failed\r\n");
8382 (void)PRINTF("Scan on ");
8385 (void)PRINTF("%d channels ", wlan_scan_param.num_channels);
8389 (void)PRINTF("channel %d ", wlan_scan_param.chan_list[0].chan_number);
8393 (void)PRINTF("full channel ");
8398 (void)PRINTF("and for bssid ");
8401 (void)PRINTF("scheduled...\r\n");
8427 … (void)PRINTF("Enable Antenna diversity with evaluate mode %d successful\r\n", evaluate_mode);
8431 (void)PRINTF("Enable Antenna diversity with evaluate mode %d failed\r\n", evaluate_mode);
8478 (void)PRINTF("\nStart to evaluate antenna %d\r\n", current_antenna);
8525 (void)PRINTF("\nError: Failed to set Antenna %d\r\n", current_antenna);
8564 …(void)PRINTF("\nCurrently, best antenna is %d, next best antenna is %d\r\n", pDetect_data->best_an…
8572 (void)PRINTF("\nFailed to detect antenna\r\n");
8578 (void)PRINTF("Usage:\r\n");
8579 (void)PRINTF("wlan-detect-ant <detect_mode> <ant_port_count> channel <channel> ... \r\n");
8580 (void)PRINTF("\r\n");
8581 (void)PRINTF("\t<detect_mode>: \r\n");
8582 …(void)PRINTF("\t 0 -- normal detect mode: scan on all cfg channel list antenna by ante…
8583 …(void)PRINTF("\t 1 -- quick detect mode: scan channel by channel on all antennas,\r\n"…
8584 …(void)PRINTF("\t and stop detect once detect done on one of channel in channel li…
8585 …(void)PRINTF("\t 2 -- PCB detect mode: scan on full channel list with PCB antenna firs…
8586 (void)PRINTF(
8588 (void)PRINTF(
8590 (void)PRINTF("\t<ant_port_count>: \r\n");
8591 (void)PRINTF("\t total count of antenna port, max 4\r\n");
8592 (void)PRINTF("\tchannel <channel> ...: \r\n");
8593 (void)PRINTF("\t You can specify one or more channels to scan.\r\n");
8594 …(void)PRINTF("\t If configure more than one channel, please seperate with ','.…
8595 (void)PRINTF("\t If not specified, will scan on full channel list.\r\n");
8596 (void)PRINTF("Examples:\r\n");
8597 (void)PRINTF("wlan-detect-ant 1 3 channel 1\r\n");
8598 (void)PRINTF("wlan-detect-ant 1 3 channel 1,6,11,36,40,44\r\n");
8599 (void)PRINTF("wlan-detect-ant 1 3\r\n");
8600 (void)PRINTF("wlan-detect-ant 0 3\r\n");
8601 (void)PRINTF("wlan-detect-ant 2 3\r\n");
8619 (void)PRINTF("Error: invalid number of arguments\r\n");
8627 (void)PRINTF("Error: invalid detect_mode\r\n");
8636 (void)PRINTF("Error: invalid antenna_port_count\r\n");
8662 (void)PRINTF("Failed to alloc buffer for channel list\r\n");
8672 (void)PRINTF(
8687 (void)PRINTF("Unable to get channel list configuration\r\n");
8706 (void)PRINTF("%d: Start to detect ant\r\n", start_msec);
8713 (void)PRINTF("%d: End of detect ant\r\n", end_msec);
8714 (void)PRINTF("It cost %dms to detect ant\r\n", end_msec - start_msec);
8726 (void)PRINTF("Failed to get maximum number of stations\r\n");
8730 (void)PRINTF("Maximum number of stations: %d\r\n", max_sta_num);
8747 (void)PRINTF("Failed to get power save mode setting\r\n");
8751 (void)PRINTF("Power save mode setting: \r\n");
8752 (void)PRINTF(" IEEE ps : %d\r\n", ps_mode_cfg.cm_ieeeps_configured);
8753 (void)PRINTF(" Deep sleep: %d\r\n", ps_mode_cfg.cm_deepsleepps_configured);
8755 (void)PRINTF(" WNM ps : %d\r\n", ps_mode_cfg.cm_wnmps_configured);