WIFI 第一章 Qualcomm WIFI CMD

//-- 检查可用 channels

root@OpenWrt:~# wlanconfig ath0 list chan

Channel  36 : 5180    Mhz 11na C CU V VU V80- 42 V160- 50 H HU H80- 42 H160- 50      Channel  64 : 5320 *~ Mhz 11na C CL V VL V80- 58 V160- 50 H HL H80- 58 H160- 50

Channel  40 : 5200    Mhz 11na C CL V VL V80- 42 V160- 50 H HL H80- 42 H160- 50      Channel 149 : 5745    Mhz 11na C CU V VU V80-155 H HU H80-155       

Channel  44 : 5220    Mhz 11na C CU V VU V80- 42 V160- 50 H HU H80- 42 H160- 50      Channel 153 : 5765    Mhz 11na C CL V VL V80-155 H HL H80-155       

Channel  48 : 5240    Mhz 11na C CL V VL V80- 42 V160- 50 H HL H80- 42 H160- 50      Channel 157 : 5785    Mhz 11na C CU V VU V80-155 H HU H80-155       

Channel  52 : 5260 *~ Mhz 11na C CU V VU V80- 58 V160- 50 H HU H80- 58 H160- 50      Channel 161 : 5805    Mhz 11na C CL V VL V80-155 H HL H80-155       

Channel  56 : 5280 *~ Mhz 11na C CL V VL V80- 58 V160- 50 H HL H80- 58 H160- 50      Channel 165 : 5825    Mhz 11na C V H                                

Channel  60 : 5300 *~ Mhz 11na C CU V VU V80- 58 V160- 50 H HU H80- 58 H160- 50

 

V80_80 capable. Pri20: Any V80 pri20 above. Sec80 centre: Centre of any V80 block discontiguous with primary 80.

H80_80 capable. Pri20: Any H80 pri20 above. Sec80 centre: Centre of any H80 block discontiguous with primary 80.
知识兔

//設定5g 4x4 tx/rx chain

root@OpenWrt:~#iwpriv wifi0 txchainmask 15

root@OpenWrt:~#iwpriv wifi0 get_txchainmask
知识兔

  

//設定2g 4x4 tx/rx chain

root@OpenWrt:~#iwpriv wifi1 txchainmask 15

root@OpenWrt:~#iwpriv wifi1 get_txchainmask
知识兔

  

 //檢查spf 9.0目前版本

root@OpenWrt:~#cat /lib/firmware/IPQ8074/fw_version.txt

WLAN.HK.1.1-02003-QCAHKSWPL_SILICONZ-1 v1
知识兔

  


//-- 动态设定 channel

5G:

root@OpenWrt:~#ifconfig ath0 down

root@OpenWrt:~#iwconfig ath0 channel 36

root@OpenWrt:~#ifconfig ath0 up

 

2.4G:

root@OpenWrt:~#ifconfig ath1 down

root@OpenWrt:~#iwconfig ath1 channel 11

root@OpenWrt:~#ifconfig ath1 up
知识兔

  

//--动态设定 mode

5G:

root@OpenWrt:~#iwpriv ath0 mode 11ACVHT80

root@OpenWrt:~#iwpriv ath0 get_mode

 

2.4G:

root@OpenWrt:~#iwpriv ath1 mode 11NGHT20

root@OpenWrt:~#iwpriv ath1 get_mode
知识兔

  

可以設定的:

AUTO Mode is set automatically

11A Legacy operation in 802.11a (5 GHz)

11B Legacy operation in 802.11b (2.4 GHz)

11G 802.11g

11NAHT20 802.11n A-band 20 MHz channels

11NGHT20 802.11n G-band 20 MHz channels

11NAHT40PLUS 802.11n A-band 40 MHz channels. Select frequency channels higher than the primary

control channel as the extension channel

11NAHT40MINUS 802.11n A-band 40 MHz channels. Select frequency channels lower than the primary

control channel as the extension channel

11NGHT40PLUS 802.11n G-band 40 MHz channels. Select frequency channels higher than the primary

control channel as the extension channel

11NGHT40MINUS 802.11n G-band 40 MHz channels. Select frequency channels lower than the primary

control channel as the extension channel

11ACVHT20 802.11ac A-band 20 MHz channels

11ACVHT40PLUS 802.11ac A-band 40 MHz channels. Select frequency channels higher that control channel as the extension channel.

11ACVHT40MINUS 802.11ac A-band 40 MHz channels. Select frequency channels lower that control channel as the extent ion channel.

11ACVHT80 802.11ac A-band 80 MHz channels

11ACVHT160 802.11ac A-band continuous 160 MHz channels.

11ACVHT80_80 802.11ac A-band discontinuous 80+80 MHz channels.
知识兔

  

//-- 动态调整 tx-power under regulatory limit

/*

Sets the Tx power for all packets on the device. This power is limited by the regulatory limits encoded into the driver, and

selected by setting the country code (see the iwpriv command setCountry). The value of pwrsetting is provided in units of

dBm. Setting the power_setting value to off will enable the internal power control logic for setting power level. Default Tx

power levels are dependent on information in the selectedregulatory table.

*/
知识兔

  

//-- 确认目前 country code

root@OpenWrt:~#iwpriv wifi1 getCountry

wifi1     getCountry:CN

 

root@OpenWrt:~#iwpriv wifi0 getCountry

wifi1     getCountry:CN
知识兔

  

//-- 调整 tx-power

5G:

root@OpenWrt:~#iwconfig ath0 txpower 19

root@OpenWrt:~#iwconfig ath0

ath0      IEEE 802.11ac  ESSID:"5GCPE_5G_889279"

          Mode:Master  Frequency:5.18 GHz  Access Point: 64:CC:22:88:92:7C

          Bit Rate:2.16666 Gb/s   Tx-Power=19 dBm

          RTS thr:off   Fragment thr:off

          Encryption key:A7CC-B8E9-E05A-EE35-7838-B49D-1E7A-3653   Security mode:restricted

          Power Management:off

          Link Quality=15/94  Signal level=-102 dBm  Noise level=-110 dBm

          Rx invalid nwid:55972  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 

2.4G:

root@OpenWrt:~#iwconfig ath1 txpower 19

root@OpenWrt:~#iwconfig ath1

ath1      IEEE 802.11ng  ESSID:"5GCPE_2.4G_889279"

          Mode:Master  Frequency:2.437 GHz  Access Point: 64:CC:22:88:92:7D

          Bit Rate:481.108 Mb/s   Tx-Power=19 dBm

          RTS thr:off   Fragment thr:off

          Encryption key:843F-3627-8096-3BA2-41D2-5C12-BEAD-E4B8   Security mode:restricted

          Power Management:off

          Link Quality=87/94  Signal level=-68 dBm  Noise level=-100 dBm

          Rx invalid nwid:15842  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
知识兔

  

//-- power limit check

root@OpenWrt:~#iw phy

Wiphy phy3

        max # scan SSIDs: 10

        max scan IEs length: 255 bytes

        max # sched scan SSIDs: 0

        max # match sets: 0

        max # scan plans: 1

        max scan plan interval: -1

        max scan plan iterations: 0

        Retry short limit: 7

        Retry long limit: 4

        Coverage class: 0 (up to 0m)

        Device supports AP-side u-APSD.

        Available Antennas: TX 0 RX 0

        Supported interface modes:

                 * managed

                 * AP

                 * AP/VLAN

                 * WDS

                 * monitor

        Band 1:

                Capabilities: 0x19e7

                        RX LDPC

                        HT20/HT40

                        Dynamic SM Power Save

                        RX HT20 SGI

                        RX HT40 SGI

                        TX STBC

                        RX STBC 1-stream

                        Max AMSDU length: 7935 bytes

                        DSSS/CCK HT40

                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)

                Minimum RX AMPDU time spacing: No restriction (0x00)

                HT TX/RX MCS rate indexes supported: 0-31

                VHT Capabilities (0x739b7992):

                        Max MPDU length: 11454

                        Supported Channel Width: neither 160 nor 80+80

                        RX LDPC

                        TX STBC

                        SU Beamformer

                        SU Beamformee

                        MU Beamformer

                        MU Beamformee

                        RX antenna pattern consistency

                        TX antenna pattern consistency

                VHT RX MCS set:

                        1 streams: MCS 0-9

                        2 streams: MCS 0-9

                        3 streams: MCS 0-9

                        4 streams: MCS 0-9

                        5 streams: not supported

                        6 streams: not supported

                        7 streams: not supported

                        8 streams: not supported

                VHT RX highest supported: 0 Mbps

                VHT TX MCS set:

                        1 streams: MCS 0-9

                        2 streams: MCS 0-9

                        3 streams: MCS 0-9

                        4 streams: MCS 0-9

                        5 streams: not supported

                        6 streams: not supported

                        7 streams: not supported

                        8 streams: not supported

                VHT TX highest supported: 0 Mbps

                Frequencies:

                        * 2412 MHz [1] (20.0 dBm)

                        * 2417 MHz [2] (20.0 dBm)

                        * 2422 MHz [3] (20.0 dBm)

                        * 2427 MHz [4] (20.0 dBm)

                        * 2432 MHz [5] (20.0 dBm)

                        * 2437 MHz [6] (20.0 dBm)

                        * 2442 MHz [7] (20.0 dBm)

                        * 2447 MHz [8] (20.0 dBm)

                        * 2452 MHz [9] (20.0 dBm)

                        * 2457 MHz [10] (20.0 dBm)

                        * 2462 MHz [11] (20.0 dBm)

                        * 2467 MHz [12] (20.0 dBm)

                        * 2472 MHz [13] (20.0 dBm)

        valid interface combinations:

                 * #{ AP } <= 17, #{ managed } <= 30, #{ monitor } <= 1,

                   total <= 17, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }

 

Wiphy phy2

        max # scan SSIDs: 10

        max scan IEs length: 255 bytes

        max # sched scan SSIDs: 0

        max # match sets: 0

        max # scan plans: 1

        max scan plan interval: -1

        max scan plan iterations: 0

        Retry short limit: 7

        Retry long limit: 4

        Coverage class: 0 (up to 0m)

        Device supports AP-side u-APSD.

        Available Antennas: TX 0 RX 0

        Supported interface modes:

                 * managed

                 * AP

                 * AP/VLAN

                 * WDS

                 * monitor

        Band 2:

                Capabilities: 0x19e7

                        RX LDPC

                        HT20/HT40

                        Dynamic SM Power Save

                        RX HT20 SGI

                        RX HT40 SGI

                        TX STBC

                        RX STBC 1-stream

                        Max AMSDU length: 7935 bytes

                        DSSS/CCK HT40

                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)

                Minimum RX AMPDU time spacing: No restriction (0x00)

                HT TX/RX MCS rate indexes supported: 0-31

                VHT Capabilities (0x739b79fa):

                        Max MPDU length: 11454

                        Supported Channel Width: 160 MHz, 80+80 MHz

                        RX LDPC

                        short GI (80 MHz)

                        short GI (160/80+80 MHz)

                        TX STBC

                        SU Beamformer

                        SU Beamformee

                        MU Beamformer

                        MU Beamformee

                        RX antenna pattern consistency

                        TX antenna pattern consistency

                VHT RX MCS set:

                        1 streams: MCS 0-9

                        2 streams: MCS 0-9

                        3 streams: MCS 0-9

                        4 streams: MCS 0-9

                        5 streams: not supported

                        6 streams: not supported

                        7 streams: not supported

                        8 streams: not supported

                VHT RX highest supported: 0 Mbps

                VHT TX MCS set:

                        1 streams: MCS 0-9

                        2 streams: MCS 0-9

                        3 streams: MCS 0-9

                        4 streams: MCS 0-9

                        5 streams: not supported

                        6 streams: not supported

                        7 streams: not supported

                        8 streams: not supported

                VHT TX highest supported: 0 Mbps

                Frequencies:

                        * 5180 MHz [36] (23.0 dBm)

                        * 5200 MHz [40] (23.0 dBm)

                        * 5220 MHz [44] (23.0 dBm)

                        * 5240 MHz [48] (23.0 dBm)

                        * 5260 MHz [52] (23.0 dBm)

                        * 5280 MHz [56] (23.0 dBm)

                        * 5300 MHz [60] (23.0 dBm)

                        * 5320 MHz [64] (23.0 dBm)

                        * 5745 MHz [149] (33.0 dBm)

                        * 5765 MHz [153] (33.0 dBm)

                        * 5785 MHz [157] (33.0 dBm)

                        * 5805 MHz [161] (33.0 dBm)

                        * 5825 MHz [165] (33.0 dBm)

        valid interface combinations:

                 * #{ AP } <= 17, #{ managed } <= 30, #{ monitor } <= 1,

                   total <= 17, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz }
知识兔

  

//-- 确认 bit rate, tx-power, link quality, signal level, noise level

5G:

root@OpenWrt:~#iwconfig ath0

ath0      IEEE 802.11ac  ESSID:"5GCPE_5G_889279"

          Mode:Master  Frequency:5.18 GHz  Access Point: 64:CC:22:88:92:7C

          Bit Rate:2.16666 Gb/s   Tx-Power:23 dBm

          RTS thr:off   Fragment thr:off

          Encryption key:A7CC-B8E9-E05A-EE35-7838-B49D-1E7A-3653   Security mode:restricted

          Power Management:off

          Link Quality=94/94  Signal level=-58 dBm  Noise level=-103 dBm

          Rx invalid nwid:55632  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 

2.4G:

root@OpenWrt:~#iwconfig ath1

ath1      IEEE 802.11ng  ESSID:"5GCPE_2.4G_889279"

          Mode:Master  Frequency:2.437 GHz  Access Point: 64:CC:22:88:92:7D

          Bit Rate:481.108 Mb/s   Tx-Power:20 dBm

          RTS thr:off   Fragment thr:off

          Encryption key:843F-3627-8096-3BA2-41D2-5C12-BEAD-E4B8   Security mode:restricted

          Power Management:off

          Link Quality=94/94  Signal level=-47 dBm  Noise level=-103 dBm

          Rx invalid nwid:15619  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
知识兔

  

计算机