rtl8192eu运行的AP模式
cd /pron/net/rtl8192eu/wlan0 进入文件夹
cat all_sta_info :查看所有设备信息
sta_dz_bitmap=0x0, tim_bitmap=0x0
==============================
sta's macaddr:10:a4:be:a3:38:f1
rtsen=0, cts2slef=0
state=0x4001, aid=1, macid=0, raid=3
qos_en=1, ht_en=1, init_rate=19
bwmode=0, ch_offset=0, sgi_20m=1,sgi_40m=0
ampdu_enable = 1
agg_enable_bitmap=41, candidate_tid_bitmap=0
sleepq_len=0
sta_xmitpriv.vo_q_qcnt=0
sta_xmitpriv.vi_q_qcnt=0
sta_xmitpriv.be_q_qcnt=0
sta_xmitpriv.bk_q_qcnt=0
capability=0x411
flags=0xa00
wpa_psk=0x2
wpa2_group_cipher=0x10
wpa2_pairwise_cipher=0x10
qos_info=0x0
dot118021XPrivacy=0x4
tid=0, enable=1, ampdu_size=64, indicate_seq=3162
==============================
==============================
sta's macaddr:ff:ff:ff:ff:ff:ff
rtsen=0, cts2slef=0
state=0x1, aid=0, macid=1, raid=8
qos_en=0, ht_en=0, init_rate=3
bwmode=0, ch_offset=0, sgi_20m=0,sgi_40m=0
ampdu_enable = 0
agg_enable_bitmap=0, candidate_tid_bitmap=0
sleepq_len=0
sta_xmitpriv.vo_q_qcnt=0
sta_xmitpriv.vi_q_qcnt=0
sta_xmitpriv.be_q_qcnt=0
sta_xmitpriv.bk_q_qcnt=0
capability=0x0
flags=0x0
wpa_psk=0x0
wpa2_group_cipher=0x0
wpa2_pairwise_cipher=0x0
qos_info=0x0
dot118021XPrivacy=0x4
==============================
==============================
sta's macaddr:14:6b:9c:a2:d8:d6
rtsen=0, cts2slef=0
state=0x4001, aid=2, macid=2, raid=3
qos_en=1, ht_en=1, init_rate=19
bwmode=0, ch_offset=0, sgi_20m=1,sgi_40m=0
ampdu_enable = 1
agg_enable_bitmap=41, candidate_tid_bitmap=0
sleepq_len=0
sta_xmitpriv.vo_q_qcnt=0
sta_xmitpriv.vi_q_qcnt=0
sta_xmitpriv.be_q_qcnt=0
sta_xmitpriv.bk_q_qcnt=0
capability=0x411
flags=0xa00
wpa_psk=0x2
wpa2_group_cipher=0x10
wpa2_pairwise_cipher=0x10
qos_info=0x0
dot118021XPrivacy=0x4
tid=0, enable=1, ampdu_size=64, indicate_seq=617
==============================
==============================
sta's macaddr:14:6b:9c:5b:bb:c9
rtsen=0, cts2slef=0
state=0x10, aid=0, macid=32, raid=0
qos_en=1, ht_en=1, init_rate=0
bwmode=0, ch_offset=0, sgi_20m=1,sgi_40m=1
ampdu_enable = 1
agg_enable_bitmap=0, candidate_tid_bitmap=0
sleepq_len=0
sta_xmitpriv.vo_q_qcnt=0
sta_xmitpriv.vi_q_qcnt=0
sta_xmitpriv.be_q_qcnt=0
sta_xmitpriv.bk_q_qcnt=0
capability=0x0
flags=0x0
wpa_psk=0x0
wpa2_group_cipher=0x0
wpa2_pairwise_cipher=0x0
qos_info=0x0
dot118021XPrivacy=0x0
==============================
cat ap_info :查看AP信息
SSID=00FKe
sta's macaddr:14:6b:9c:5b:bb:c9
cur_channel=9, cur_bwmode=0, cur_ch_offset=0
wireless_mode=0xb, rtsen=0, cts2slef=0
state=0x10, aid=0, macid=32, raid=0
qos_en=1, ht_en=1, init_rate=0
bwmode=0, ch_offset=0, sgi_20m=1,sgi_40m=1
ampdu_enable = 1
agg_enable_bitmap=0, candidate_tid_bitmap=0
ldpc_cap=0x0, stbc_cap=0x0, beamform_cap=0x0
cat best_channel :各个信道上接收的包计数
The rx cnt of channel 1 = 18
The rx cnt of channel 2 = 16
The rx cnt of channel 3 = 10
The rx cnt of channel 4 = 11
The rx cnt of channel 5 = 5
The rx cnt of channel 6 = 9
The rx cnt of channel 7 = 8
The rx cnt of channel 8 = 5
The rx cnt of channel 9 = 17
The rx cnt of channel 10 = 14
The rx cnt of channel 11 = 13
The rx cnt of channel 12 = 10
The rx cnt of channel 13 = 21
The rx cnt of channel 14 = 49
best_channel_5G = 36
best_channel_24G = 6
注意:查看必须先使用iwlist wlan0 scanning 命令扫描否则各个信道的包数为0;
打印包括两个部分。第一个部分是在站点调查过程中,在所有支持的信道上接收到的包计数。开发人员可以使用这些静态特性来决定您自己的最佳通道。第二部分是对5G和2.4G波段最佳信道的简单估计,供参考只有。HT40+规则用于估计最佳通道时的主要通道在1、6、36、44等处,为最小的主通道选择接收包计数。
cat chan_plan :查看信道属性
chplan:0x23
2G_PLS:1, 5G_PLS:1
ch: 1, freq:2412, scan_type:1, rx_count:18
ch: 2, freq:2417, scan_type:1, rx_count:16
ch: 3, freq:2422, scan_type:1, rx_count:10
ch: 4, freq:2427, scan_type:1, rx_count:11
ch: 5, freq:2432, scan_type:1, rx_count:5
ch: 6, freq:2437, scan_type:1, rx_count:9
ch: 7, freq:2442, scan_type:1, rx_count:8
ch: 8, freq:2447, scan_type:1, rx_count:5
ch: 9, freq:2452, scan_type:1, rx_count:17
ch: 10, freq:2457, scan_type:1, rx_count:14
ch: 11, freq:2462, scan_type:1, rx_count:13
ch: 12, freq:2467, scan_type:1, rx_count:10
ch: 13, freq:2472, scan_type:1, rx_count:21
ch: 14, freq:2484, scan_type:1, rx_count:49
total ch number:14
附上驱动源码中对channel plan 的枚举如下
typedef enum _RT_CHANNEL_DOMAIN
{
/* ===== 0x00 ~ 0x1F, legacy channel plan ===== */
RTW_CHPLAN_FCC = 0x00,
RTW_CHPLAN_IC = 0x01,
RTW_CHPLAN_ETSI = 0x02,
RTW_CHPLAN_SPAIN = 0x03,
RTW_CHPLAN_FRANCE = 0x04,
RTW_CHPLAN_MKK = 0x05,
RTW_CHPLAN_MKK1 = 0x06,
RTW_CHPLAN_ISRAEL = 0x07,
RTW_CHPLAN_TELEC = 0x08,
RTW_CHPLAN_GLOBAL_DOAMIN = 0x09,
RTW_CHPLAN_WORLD_WIDE_13 = 0x0A,
RTW_CHPLAN_TAIWAN = 0x0B,
RTW_CHPLAN_CHINA = 0x0C,
RTW_CHPLAN_SINGAPORE_INDIA_MEXICO = 0x0D,
RTW_CHPLAN_KOREA = 0x0E,
RTW_C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0x48,
RTW_CHPLAN_WORLD_ETSI8 = 0x49,
RTW_CHPLAN_WORLD_ETSI9 = 0x50,
RTW_CHPLAN_WORLD_ETSI10 = 0x51,
RTW_CHPLAN_WORLD_ETSI11 = 0x52,
RTW_CHPLAN_FCC1_NCC4 = 0x53,
RTW_CHPLAN_WORLD_ETSI12 = 0x54,
RTW_CHPLAN_FCC1_FCC9 = 0x55,
RTW_CHPLAN_WORLD_ETSI13 = 0x56,
RTW_CHPLAN_FCC1_FCC10 = 0x57,
RTW_CHPLAN_MKK2_MKK4 = 0x58,
RTW_CHPLAN_WORLD_ETSI14 = 0x59,
RTW_CHPLAN_FCC1_FCC5 = 0x60,
RTW_CHPLAN_MAX,
RTW_CHPLAN_REALTEK_DEFINE = 0x7F,
}RT_CHANNEL_DOMAIN, *PRT_CHANNEL_DOMAIN;
cat rx_info_msg :查看RX信息
==============================
macaddr =10:a4:be:a3:38:f1
BW=20M, sgi =0
Rx_Data_Rate = MCS7
RF_PATH_0 RSSI:-26(dBm),rx_ofdm_snr:28(dB)
RF_PATH_1 RSSI:-54(dBm),rx_ofdm_snr:19(dB)
==============================
macaddr =14:6b:9c:a2:d8:d6
BW=20M, sgi =0
Rx_Data_Rate = MCS4
RF_PATH_0 RSSI:-32(dBm),rx_ofdm_snr:37(dB)
RF_PATH_1 RSSI:-56(dBm),rx_ofdm_snr:33(dB)
cat rx_signal :查看RX信号
rssi:-41
signal_strength:59
signal_qual:81
noise:0
RxRate = MCS5, RSSI_A = 70(%), RSSI_B = 48(%)
RxRate = MCS5, PWDBALL = 69(%), rx_pwr_all = -31(dBm)
RF_PATH_0=>signal_strength:70(%),signal_quality:72(%)
rx_ofdm_pwr:-30(dBm),rx_ofdm_snr:30(dB)
RF_PATH_1=>signal_strength:48(%),signal_quality:255(%)
rx_ofdm_pwr:-52(dBm),rx_ofdm_snr:28(dB)
cat survey_info:查看扫描信息
cat tx_info_msg :查看TX信息
status=AP mode
==============================
macaddr=10:a4:be:a3:38:f1
Tx_Data_Rate=MCS7
BW=20M,sgi=1
==============================
macaddr=14:6b:9c:a2:d8:d6
Tx_Data_Rate=MCS7
BW=20M,sgi=1
cat tx_power_by_rate:查看不同调制速率下的发射功率
cat tx_power_limit:各地区发射功率限制