Skip to content

Contents

Scan Channel Utilization

Channel utilization% is calculated as: Chan_util(in %)=(clear count 100)/cycle count To map this calculation to wifitool athX get_chan_survey counters: Chan_util(in %)=(busy100)/total

root@NHX6018-0-NPN-256M32-D4:/# wifitool ath13 get_chan_survey
Home channel survey stats
freq: 5500, rx_bss: 24355830571, total: 370853806870, tx: 29971595103, rx: 31385882219, busy: 40309815929, busy_ext: 0, timestamp: 26780436
Scan channel survey stats
freq: 5180, rx_bss: 0, total: 2701176, tx: 0, rx: 82145, busy: 108069, busy_ext: 0
freq: 5200, rx_bss: 0, total: 2701114, tx: 0, rx: 100463, busy: 108249, busy_ext: 0
freq: 5220, rx_bss: 0, total: 2701091, tx: 0, rx: 145721, busy: 169765, busy_ext: 0
freq: 5240, rx_bss: 0, total: 2701155, tx: 0, rx: 66064, busy: 71829, busy_ext: 0
freq: 5745, rx_bss: 0, total: 2700788, tx: 0, rx: 875810, busy: 1142401, busy_ext: 0
freq: 5765, rx_bss: 0, total: 2701104, tx: 0, rx: 128894, busy: 462645, busy_ext: 0
freq: 5785, rx_bss: 0, total: 2701101, tx: 0, rx: 141007, busy: 415464, busy_ext: 0
freq: 5805, rx_bss: 0, total: 2701125, tx: 0, rx: 162215, busy: 382620, busy_ext: 0
freq: 5825, rx_bss: 0, total: 2701089, tx: 0, rx: 68133, busy: 277186, busy_ext: 0
freq: 5260, rx_bss: 0, total: 2701065, tx: 0, rx: 3395, busy: 4413, busy_ext: 0
freq: 5280, rx_bss: 0, total: 2701089, tx: 0, rx: 509590, busy: 515200, busy_ext: 0
freq: 5300, rx_bss: 0, total: 2701074, tx: 0, rx: 1275, busy: 1444, busy_ext: 0
freq: 5320, rx_bss: 0, total: 2701066, tx: 0, rx: 1131, busy: 1349, busy_ext: 0
freq: 5500, rx_bss: 0, total: 2701109, tx: 0, rx: 37859, busy: 39305, busy_ext: 0
freq: 5520, rx_bss: 0, total: 2701104, tx: 0, rx: 97074, busy: 98811, busy_ext: 0
freq: 5540, rx_bss: 0, total: 2701093, tx: 0, rx: 61483, busy: 62957, busy_ext: 0
freq: 5560, rx_bss: 0, total: 2701123, tx: 0, rx: 1281763, busy: 1293271, busy_ext: 0
freq: 5580, rx_bss: 0, total: 2701110, tx: 0, rx: 87282, busy: 89350, busy_ext: 0
freq: 5600, rx_bss: 0, total: 2701087, tx: 0, rx: 29209, busy: 40408, busy_ext: 0
freq: 5620, rx_bss: 0, total: 2701141, tx: 0, rx: 746293, busy: 918886, busy_ext: 0
freq: 5640, rx_bss: 0, total: 2701131, tx: 0, rx: 26717, busy: 285360, busy_ext: 0
freq: 5660, rx_bss: 0, total: 2701109, tx: 0, rx: 56849, busy: 312639, busy_ext: 0
freq: 5680, rx_bss: 0, total: 2701114, tx: 0, rx: 329078, busy: 553195, busy_ext: 0
freq: 5700, rx_bss: 0, total: 2701119, tx: 0, rx: 45590, busy: 297428, busy_ext: 0
freq: 5720, rx_bss: 0, total: 2701107, tx: 0, rx: 85924, busy: 347375, busy_ext: 0
root@NHX6018-0-NPN-256M32-D4:/#

View the channel utilization percentage for each frequency

root@NHX6018-0-NPN-256M32-D4:/# wifitool ath1 get_scan_chan_util
Freq Chan_util Noise_floor
2412 71 -102
2417 44 -103
2422 55 -103
2427 47 -102
2432 38 -97
2437 26 -99
2442 38 -95
2447 31 -74
2452 36 -102
2457 23 -102
2462 43 -102
root@NHX6018-0-NPN-256M32-D4:/#
root@NHX6018-0-NPN-256M32-D4:/# wifitool ath13 get_scan_chan_util
Freq Chan_util Noise_floor
5180 4 -105
5200 4 -105
5220 6 -105
5240 2 -105
5745 42 -103
5765 17 -101
5785 15 -104
5805 14 -103
5825 10 -105
5260 0 -105
5280 19 -103
5300 0 -105
5320 0 -105
5500 1 -104
5520 3 -105
5540 2 -105
5560 47 -103
5580 3 -105
5600 1 -106
5620 34 -102
5640 10 -104
5660 11 -104
5680 20 -102
5700 11 -105
5720 12 -105
root@NHX6018-0-NPN-256M32-D4:/#

Enable Frequency Channel Utilization Scanning

cfg80211tool athX spl_vap_scan 0

Disable Frequency Channel Utilization Scanning

cfg80211tool athX spl_vap_scan 1

wifitool -h

root@NHX6018-0-NPN-256M32-D4:/# wifitool
usage: wifitool athX cmd args
cmd: fips args: interface_name input_file
Input file format: Each set of inputs seperated by newline
<FIPS Command> <MODE> <Key length> <Input Data Length> <Key> <Input Data> <Expected Output> <IV with 16 bytes><newline> Example: wifitool ath0 fips input_file
Refer README_FIPS in drivers/wlan_modules/os/linux/tools
cmd: [sendaddba senddelba setaddbaresp getaddbastats sendaddts senddelts refusealladdbas
cmd: [sendstastats sendchload sendnhist sendlcireq rrmstats bcnrpt setchanlist getchanlist]
cmd: [sendtsmrpt sendneigrpt sendlmreq sendbstmreq sendbcnrpt sendcca sendrpihist]
cmd: [block_acs_channel]
cmd: [unblock_acs_channel]
cmd: [getblockchanlist]
cmd: [block_acs_retain]
cmd: [rrm_sta_list]
cmd: [btm_sta_list]
cmd: [mu_scan lteu_cfg ap_scan]
cmd: [atf_debug_size atf_dump_debug]
cmd: [atf_debug_nodestate]
cmd: [tr069_get_vap_stats]
cmd: [tr069_chanhist]
cmd: [tr069_chan_inuse]
cmd: [tr069_set_oper_rate]
cmd: [tr069_get_oper_rate]
cmd: [tr069_get_posiblrate]
cmd: [chmask_persta]
cmd: [peer_nss]
cmd: [frame_injector_en]
cmd: [beeliner_fw_test]
cmd: [init_rtt3]
cmd: [bsteer_getparams bsteer_setparams]
cmd: [bsteer_getdbgparams bsteer_setdbgparams]
cmd: [bsteer_enable] [bsteer_enable_events]
cmd: [bsteer_getoverload bsteer_setoverload]
cmd: [bsteer_getrssi]
cmd: [bsteer_setproberespwh bsteer_getproberespwh]
cmd: [bsteer_setauthallow]
cmd: [set_antenna_switch]
cmd: [set_usr_ctrl_tbl]
cmd: [offchan_tx_test]
cmd: [offchan_rx_test]
cmd: [sendbstmreq sendbstmreq_target]
cmd: [sendmscsresp]
cmd: [bsteer_getdatarateinfo]
cmd: [tr069_get_fail_retrans]
cmd: [tr069_get_success_retrans]
cmd: [tr069_get_success_mul_retrans]
cmd: [tr069_get_ack_failures]
cmd: [tr069_get_retrans]
cmd: [tr069_get_aggr_pkts]
cmd: [tr069_get_sta_stats] [STA MAC]
cmd: [tr069_get_sta_bytes_sent] [STA MAC]
cmd: [tr069_get_sta_bytes_rcvd] [STA MAC]
cmd: [bsteer_setsteering]
cmd: [custom_chan_list]
cmd: [vow_debug_set_param]
cmd: [vow_debug]
cmd: [setUnitTestCmd]
cmd: [setUnitTestCmdEvent]
cmd: [softblocking] [STA MAC] [0/1]
cmd: [softblocking_get] [STA MAC]
cmd: [ap_twt_add_dialog]
cmd: [ap_twt_del_dialog]
cmd: [ap_twt_pause_dialog]
cmd: [ap_twt_resume_dialog]
cmd: [ap_twt_btwt_invite_sta]
cmd: [ap_twt_btwt_remove_sta]
cmd: [bsscolor_collision_ap_period]
cmd: [bsscolor_color_change_announcemt_count]
cmd: [get_chan_survey]
cmd: [get_scan_chan_util]
cmd: [reset_chan_survey]
cmd: [add_tpe]
cmd: [peer_latency_param_config]
cmd: [get_scan_spcl_vap_stats]
main:8860root@NHX6018-0-NPN-256M32-D4:/#