Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

System and Network configuration • Setting up wireless connection using iwd (HT/VHT enabled)

$
0
0
Hello,
I just tried to setup a local PC, using iwd (first time, just to learning purpose) as wireless connection manager (fix IP, Debian 12,
adapter driver from https://github.com/cilynx/rtl88x2bu).
Connection established successfully:

Code:

root@testpc1:~# iwctl adapter list                                    Adapters                                   --------------------------------------------------------------------------------  Name      Powered   Vendor                Model               --------------------------------------------------------------------------------  phy0      on        TP-Link               Archer T4U ver.3root@testpc1:~# iwctl device list                                    Devices                                    --------------------------------------------------------------------------------  Name                  Address               Powered     Adapter     Mode      --------------------------------------------------------------------------------  wlx2887ba1fd809       28:87:ba:1f:d8:09     on          phy0        stationroot@testpc1:~# iw dev wlx2887ba1fd809 infoInterface wlx2887ba1fd809ifindex 3wdev 0x1addr 28:87:ba:1f:d8:09ssid TCRT-CLS5type managedwiphy 0channel 136 (5680 MHz), width: 20 MHz (no HT), center1: 5680 MHztxpower 26.00 dBmmulticast TXQ:qsz-bytqsz-pktflowsdropsmarksoverlmthashcoltx-bytestx-packets000000000
but with no HT/VHT capabilities utilized. It seems iwd knows VHT:

Code:

root@testpc1:~# systemctl status iwd...Feb 24 07:34:29 testpc1 iwd[1442]:                 VHT Capabilities:Feb 24 07:34:29 testpc1 iwd[1442]:                         Short GI for 80MhzFeb 24 07:34:29 testpc1 iwd[1442]:                         Max RX MCS: 0-9 for NSS: 2Feb 24 07:34:29 testpc1 iwd[1442]:                         Max TX MCS: 0-9 for NSS: 2Feb 24 07:34:29 testpc1 iwd[1442]:         Ciphers: BIP-CMAC-256 BIP-GMAC-256 BIP-GMAC-128 CCMP-256Feb 24 07:34:29 testpc1 iwd[1442]:                  GCMP-256 GCMP-128 BIP-CMAC-128 CCMP-128Feb 24 07:34:29 testpc1 iwd[1442]:                  TKIPFeb 24 07:34:29 testpc1 iwd[1442]:         Supported iftypes: ad-hoc station apFeb 24 07:34:29 testpc1 iwd[1442]: Wiphy phy0 will only use the default interfaceFeb 24 07:38:23 testpc1 iwd[1442]: hardware_rekey not supported
Adapter has capabilities (TL;DR) :

Code:

root@testpc1:~# iw phyWiphy phy0wiphy index: 0max # scan SSIDs: 4max scan IEs length: 2243 bytesmax # sched scan SSIDs: 0max # match sets: 0Retry short limit: 7Retry long limit: 4Coverage class: 0 (up to 0m)Device supports T-DLS.Supported Ciphers:* WEP40 (00-0f-ac:1)* WEP104 (00-0f-ac:5)* TKIP (00-0f-ac:2)* CCMP-128 (00-0f-ac:4)* CCMP-256 (00-0f-ac:10)* GCMP-128 (00-0f-ac:8)* GCMP-256 (00-0f-ac:9)* CMAC (00-0f-ac:6)* CMAC-256 (00-0f-ac:13)* GMAC-128 (00-0f-ac:11)* GMAC-256 (00-0f-ac:12)Available Antennas: TX 0x3 RX 0x3Configured Antennas: TX 0x3 RX 0x3Supported interface modes: * IBSS * managed * AP * AP/VLAN * monitor * mesh pointBand 1:Capabilities: 0x196fRX LDPCHT20/HT40SM Power Save disabledRX HT20 SGIRX HT40 SGIRX STBC 1-streamMax AMSDU length: 7935 bytesDSSS/CCK HT40Maximum RX AMPDU length 65535 bytes (exponent: 0x003)Minimum RX AMPDU time spacing: 2 usec (0x04)HT Max RX data rate: 300 MbpsHT TX/RX MCS rate indexes supported: 0-15, 32Bitrates (non-HT):* 1.0 Mbps* 2.0 Mbps* 5.5 Mbps* 11.0 Mbps* 6.0 Mbps* 9.0 Mbps* 12.0 Mbps* 18.0 Mbps* 24.0 Mbps* 36.0 Mbps* 48.0 Mbps* 54.0 MbpsFrequencies:* 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)* 2484 MHz [14] (disabled)Band 2:Capabilities: 0x196fRX LDPCHT20/HT40SM Power Save disabledRX HT20 SGIRX HT40 SGIRX STBC 1-streamMax AMSDU length: 7935 bytesDSSS/CCK HT40Maximum RX AMPDU length 65535 bytes (exponent: 0x003)Minimum RX AMPDU time spacing: 2 usec (0x04)HT Max RX data rate: 300 MbpsHT TX/RX MCS rate indexes supported: 0-15, 32VHT Capabilities (0x03d071b2):Max MPDU length: 11454Supported Channel Width: neither 160 nor 80+80RX LDPCshort GI (80 MHz)TX STBCSU BeamformeeMU Beamformee+HTC-VHTVHT RX MCS set:1 streams: MCS 0-92 streams: MCS 0-93 streams: not supported4 streams: not supported5 streams: not supported6 streams: not supported7 streams: not supported8 streams: not supportedVHT RX highest supported: 780 MbpsVHT TX MCS set:1 streams: MCS 0-92 streams: MCS 0-93 streams: not supported4 streams: not supported5 streams: not supported6 streams: not supported7 streams: not supported8 streams: not supportedVHT TX highest supported: 780 MbpsVHT extended NSS: not supportedBitrates (non-HT):* 6.0 Mbps* 9.0 Mbps* 12.0 Mbps* 18.0 Mbps* 24.0 Mbps* 36.0 Mbps* 48.0 Mbps* 54.0 MbpsFrequencies:* 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] (20.0 dBm) (radar detection)* 5280 MHz [56] (20.0 dBm) (radar detection)* 5300 MHz [60] (20.0 dBm) (radar detection)* 5320 MHz [64] (20.0 dBm) (radar detection)* 5500 MHz [100] (26.0 dBm) (radar detection)* 5520 MHz [104] (26.0 dBm) (radar detection)* 5540 MHz [108] (26.0 dBm) (radar detection)* 5560 MHz [112] (26.0 dBm) (radar detection)* 5580 MHz [116] (26.0 dBm) (radar detection)* 5600 MHz [120] (26.0 dBm) (radar detection)* 5620 MHz [124] (26.0 dBm) (radar detection)* 5640 MHz [128] (26.0 dBm) (radar detection)* 5660 MHz [132] (26.0 dBm) (radar detection)* 5680 MHz [136] (26.0 dBm) (radar detection)* 5700 MHz [140] (26.0 dBm) (radar detection)* 5720 MHz [144] (13.0 dBm) (radar detection)* 5745 MHz [149] (13.0 dBm)* 5765 MHz [153] (13.0 dBm)* 5785 MHz [157] (13.0 dBm)* 5805 MHz [161] (13.0 dBm)* 5825 MHz [165] (13.0 dBm)Supported commands: * new_interface * set_interface * new_key * start_ap * new_station * new_mpath * set_mesh_config * set_bss * authenticate * associate * deauthenticate * disassociate * join_ibss * join_mesh * remain_on_channel * set_tx_bitrate_mask * frame * frame_wait_cancel * set_wiphy_netns * set_channel * tdls_mgmt * tdls_oper * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * connect * disconnect * set_qos_map * set_multicast_to_unicast * set_sar_specssoftware interface modes (can always be added): * AP/VLAN * monitorinterface combinations are not supportedHT Capability overrides: * MCS: ff ff ff ff ff ff ff ff ff ff * maximum A-MSDU length * supported channel width * short GI for 40 MHz * max A-MPDU length exponent * min MPDU start spacingDevice supports TX status socket option.Device supports HT-IBSS.Device supports SAE with AUTHENTICATE commandDevice supports scan flush.Device supports per-vif TX power settingDriver supports full state transitions for AP/GO clientsDriver supports a userspace MPMDevice supports configuring vdev MAC-addr on create.Device supports randomizing MAC-addr in scans.max # scan plans: 1max scan plan interval: -1max scan plan iterations: 0Supported TX frame types: * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0Supported RX frame types: * IBSS: 0x40 0xb0 0xc0 0xd0 * managed: 0x40 0xb0 0xd0 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * mesh point: 0xb0 0xc0 0xd0 * P2P-client: 0x40 0xd0 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0 * P2P-device: 0x40 0xd0Supported extended features:* [ RRM ]: RRM* [ SET_SCAN_DWELL ]: scan dwell setting* [ FILS_STA ]: STA FILS (Fast Initial Link Setup)* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs* [ SCAN_RANDOM_SN ]: use random sequence numbers in scans* [ CAN_REPLACE_PTK0 ]: can safely replace PTK 0 when rekeying* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support* [ DEL_IBSS_STA ]: deletion of IBSS station support* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
It seems wpa_supplicant (with Connman) perform configuration (switch ch and freq), and uses HT capabilities
(installed on same PC box):

Code:

Feb 23 20:17:06 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-DSCP-POLICY clear_allFeb 23 20:17:06 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLDFeb 23 20:18:26 debian wpa_supplicant[1610]: wlx2887ba1fd809: Trying to associate with 58:90:43:5b:1a:47 (SSID='DLJK-CLS5' freq=5680 MHz)Feb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5680 ht_enabled=1 ch_offset=-1 ch_width=40 MHz cf1=5670 cf2=0Feb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: Associated with 58:90:43:5b:1a:47Feb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0Feb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=DEFeb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: WPA: Key negotiation completed with 58:90:43:5b:1a:47 [PTK=CCMP GTK=CCMP]Feb 23 20:18:27 debian wpa_supplicant[1610]: wlx2887ba1fd809: CTRL-EVENT-CONNECTED - Connection to 58:90:43:5b:1a:47 completed [id=0 id_str=]
So, my question is: Is it possible to configure (switch) connection using iwd (iwctl or iw), and Howto?
Sorry, I couldn't figure out it from iwd/iw docs. Or... forget iwd, and use old Connman+wpa_supplicant pair?
Thanks for any help,

Leslie

Statistics: Posted by dlacx — 2024-02-24 08:56 — Replies 1 — Views 64



Viewing all articles
Browse latest Browse all 3424

Trending Articles