morrownr / USB-WiFi

USB WiFi Adapter Information for Linux
2.4k stars 161 forks source link

ALFA AWUS036AXML mt7921au WiFi6e access point #384

Open andrew-kovalenk0 opened 4 months ago

andrew-kovalenk0 commented 4 months ago

Bassicly I need to run wireless access point on Raspberry Pi Zero 2 W, but without internet connecton, only local netwrok. Raspi system: Operating System: Raspbian GNU/Linux 11 (bullseye) Kernel: Linux 6.1.21-v7+ Architecture: arm

Following the guides written in this repo I built newer hostapd 2.11 version. Then completelly repeat this instructions AP Mode - How to build a bridged wireless access point. I used this config file: hostapd-WiFi6e.conf.

And this is the result:

systemctl status hostapd ``` Andrei@raspberrypi:~ $ systemctl status hostapd ● hostapd.service - Access point and authentication server for Wi-Fi and Ethern> Loaded: loaded (/etc/systemd/system/hostapd.service; enabled; vendor prese> Active: activating (auto-restart) (Result: exit-code) since Wed 2024-02-21> Docs: man:hostapd(8) Process: 1043 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON> CPU: 24ms Feb 21 23:54:48 raspberrypi systemd[1]: Stopped Access point and authentication> Feb 21 23:54:48 raspberrypi systemd[1]: Starting Access point and authenticatio> Feb 21 23:54:48 raspberrypi hostapd[1046]: Line 125: unknown configuration item> Feb 21 23:54:48 raspberrypi hostapd[1046]: SAE: Enabling SAE H2E on 6 GHz Feb 21 23:54:48 raspberrypi hostapd[1046]: 1 errors found in configuration file> Feb 21 23:54:48 raspberrypi hostapd[1046]: Failed to set up interface with /etc> Feb 21 23:54:48 raspberrypi hostapd[1046]: Failed to initialize interface Feb 21 23:54:48 raspberrypi systemd[1]: hostapd.service: Control process exited> Feb 21 23:54:48 raspberrypi systemd[1]: hostapd.service: Failed with result 'ex> Feb 21 23:54:48 raspberrypi systemd[1]: Failed to start Access point and authen> lines 1-17/17 (END)...skipping... ● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet Loaded: loaded (/etc/systemd/system/hostapd.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Wed 2024-02-21 23:54:46 CET; 1s ago Docs: man:hostapd(8) Process: 1043 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS $DAEMON_CONF (code=exited, status=1/FAILURE) CPU: 24ms Feb 21 23:54:48 raspberrypi systemd[1]: Stopped Access point and authentication server for Wi-Fi and Ethernet. Feb 21 23:54:48 raspberrypi systemd[1]: Starting Access point and authentication server for Wi-Fi and Ethernet... Feb 21 23:54:48 raspberrypi hostapd[1046]: Line 125: unknown configuration item 'ht_coex' Feb 21 23:54:48 raspberrypi hostapd[1046]: SAE: Enabling SAE H2E on 6 GHz Feb 21 23:54:48 raspberrypi hostapd[1046]: 1 errors found in configuration file '/etc/hostapd/hostapd-WiFi6.conf' Feb 21 23:54:48 raspberrypi hostapd[1046]: Failed to set up interface with /etc/hostapd/hostapd-WiFi6.conf Feb 21 23:54:48 raspberrypi hostapd[1046]: Failed to initialize interface Feb 21 23:54:48 raspberrypi systemd[1]: hostapd.service: Control process exited, code=exited, status=1/FAILURE Feb 21 23:54:48 raspberrypi systemd[1]: hostapd.service: Failed with result 'exit-code'. Feb 21 23:54:48 raspberrypi systemd[1]: Failed to start Access point and authentication server for Wi-Fi and Ethernet. ```

Some additional info about the system:

lsusb -t ``` Andrei@raspberrypi:~ $ lsusb -t /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 3: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 4: Dev 5, If 1, Class=Wireless, Driver=btusb, 480M |__ Port 4: Dev 5, If 2, Class=Wireless, Driver=, 480M |__ Port 4: Dev 5, If 0, Class=Wireless, Driver=btusb, 480M |__ Port 4: Dev 5, If 3, Class=Vendor Specific Class, Driver=mt7921u, 480M ```
iw list ``` Andrei@raspberrypi:~ $ iw list Wiphy phy0 wiphy index: 0 max # scan SSIDs: 4 max scan IEs length: 482 bytes max # sched scan SSIDs: 10 max # match sets: 16 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports AP-side u-APSD. 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 0x3 Configured Antennas: TX 0x3 RX 0x3 Supported interface modes: * managed * AP * AP/VLAN * monitor Band 1: Capabilities: 0x9ff RX LDPC HT20/HT40 SM Power Save disabled RX Greenfield RX HT20 SGI RX HT40 SGI TX STBC RX STBC 1-stream Max AMSDU length: 7935 bytes No 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-15 HE Iftypes: Station HE MAC Capabilities (0x08011a000040): +HTC HE Supported Trigger Frame MAC Padding Duration: 2 OM Control Maximum A-MPDU Length Exponent: 3 A-MSDU in A-MPDU HE PHY Capabilities: (0x2270ce120dc0b306423f00): HE40/2.4GHz 242 tone RUs/2.4GHz Device Class: 1 LDPC Coding in Payload HE SU PPDU with 1x HE-LTF and 0.8us GI NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 SU Beamformee Beamformee STS <= 80Mhz: 3 Ng = 16 SU Feedback Ng = 16 MU Feedback Codebook Size SU Feedback Codebook Size MU Feedback Triggered CQI Feedback Partial Bandwidth Extended Range PPE Threshold Present Power Boost Factor ar HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI 20MHz in 40MHz HE PPDU 2.4GHz DCM Max BW: 1 Longer Than 16HE SIG-B OFDM Symbols Non-Triggered CQI Feedback TX 1024-QAM RX 1024-QAM RX Full BW SU Using HE MU PPDU with Compression SIGB RX Full BW SU Using HE MU PPDU with Non-Compression SIGB HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 HE Iftypes: AP HE MAC Capabilities (0x00011a081044): +HTC HE Supported BSR OM Control Maximum A-MPDU Length Exponent: 3 BQR A-MSDU in A-MPDU OM Control UL MU Data Disable RX HE PHY Capabilities: (0x0220ce120000a000000c00): HE40/2.4GHz LDPC Coding in Payload NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 Partial Bandwidth Extended Range PPE Threshold Present TX 1024-QAM RX 1024-QAM HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 Bitrates (non-HT): * 1.0 Mbps (short preamble supported) * 2.0 Mbps (short preamble supported) * 5.5 Mbps (short preamble supported) * 11.0 Mbps (short preamble supported) * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.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) * 2484 MHz [14] (disabled) Band 2: Capabilities: 0x9ff RX LDPC HT20/HT40 SM Power Save disabled RX Greenfield RX HT20 SGI RX HT40 SGI TX STBC RX STBC 1-stream Max AMSDU length: 7935 bytes No 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-15 VHT Capabilities (0x339071b2): Max MPDU length: 11454 Supported Channel Width: neither 160 nor 80+80 RX LDPC short GI (80 MHz) TX STBC SU Beamformee 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: not supported 4 streams: not supported 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: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported VHT TX highest supported: 0 Mbps HE Iftypes: Station HE MAC Capabilities (0x08011a000040): +HTC HE Supported Trigger Frame MAC Padding Duration: 2 OM Control Maximum A-MPDU Length Exponent: 3 A-MSDU in A-MPDU HE PHY Capabilities: (0x4470ce120dc0b306423f00): HE40/HE80/5GHz 242 tone RUs/5GHz Device Class: 1 LDPC Coding in Payload HE SU PPDU with 1x HE-LTF and 0.8us GI NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 SU Beamformee Beamformee STS <= 80Mhz: 3 Ng = 16 SU Feedback Ng = 16 MU Feedback Codebook Size SU Feedback Codebook Size MU Feedback Triggered CQI Feedback Partial Bandwidth Extended Range PPE Threshold Present Power Boost Factor ar HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI 20MHz in 40MHz HE PPDU 2.4GHz DCM Max BW: 1 Longer Than 16HE SIG-B OFDM Symbols Non-Triggered CQI Feedback TX 1024-QAM RX 1024-QAM RX Full BW SU Using HE MU PPDU with Compression SIGB RX Full BW SU Using HE MU PPDU with Non-Compression SIGB HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 HE Iftypes: AP HE MAC Capabilities (0x00011a081044): +HTC HE Supported BSR OM Control Maximum A-MPDU Length Exponent: 3 BQR A-MSDU in A-MPDU OM Control UL MU Data Disable RX HE PHY Capabilities: (0x0420ce120000a000000c00): HE40/HE80/5GHz LDPC Coding in Payload NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 Partial Bandwidth Extended Range PPE Threshold Present TX 1024-QAM RX 1024-QAM HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 Bitrates (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 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] (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) * 5845 MHz [169] (13.0 dBm) * 5865 MHz [173] (13.0 dBm) Band 4: HE Iftypes: Station HE MAC Capabilities (0x08011a000040): +HTC HE Supported Trigger Frame MAC Padding Duration: 2 OM Control Maximum A-MPDU Length Exponent: 3 A-MSDU in A-MPDU HE PHY Capabilities: (0x4470ce120dc0b306423f00): HE40/HE80/5GHz 242 tone RUs/5GHz Device Class: 1 LDPC Coding in Payload HE SU PPDU with 1x HE-LTF and 0.8us GI NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 SU Beamformee Beamformee STS <= 80Mhz: 3 Ng = 16 SU Feedback Ng = 16 MU Feedback Codebook Size SU Feedback Codebook Size MU Feedback Triggered CQI Feedback Partial Bandwidth Extended Range PPE Threshold Present Power Boost Factor ar HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI 20MHz in 40MHz HE PPDU 2.4GHz DCM Max BW: 1 Longer Than 16HE SIG-B OFDM Symbols Non-Triggered CQI Feedback TX 1024-QAM RX 1024-QAM RX Full BW SU Using HE MU PPDU with Compression SIGB RX Full BW SU Using HE MU PPDU with Non-Compression SIGB HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 HE Iftypes: AP HE MAC Capabilities (0x00011a081044): +HTC HE Supported BSR OM Control Maximum A-MPDU Length Exponent: 3 BQR A-MSDU in A-MPDU OM Control UL MU Data Disable RX HE PHY Capabilities: (0x0420ce120000a000000c00): HE40/HE80/5GHz LDPC Coding in Payload NDP with 4x HE-LTF and 3.2us GI STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO Partial Bandwidth UL MU-MIMO DCM Max Constellation: 2 DCM Max Constellation Rx: 2 Partial Bandwidth Extended Range PPE Threshold Present TX 1024-QAM RX 1024-QAM HE RX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported HE TX MCS and NSS set <= 80 MHz 1 streams: MCS 0-11 2 streams: MCS 0-11 3 streams: not supported 4 streams: not supported 5 streams: not supported 6 streams: not supported 7 streams: not supported 8 streams: not supported PPE Threshold 0x39 0x1c 0xc7 0x71 0x1c 0x07 Bitrates (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 Mbps Frequencies: * 5955 MHz [1] (disabled) * 5975 MHz [5] (disabled) * 5995 MHz [9] (disabled) * 6015 MHz [13] (disabled) * 6035 MHz [17] (disabled) * 6055 MHz [21] (disabled) * 6075 MHz [25] (disabled) * 6095 MHz [29] (disabled) * 6115 MHz [33] (disabled) * 6135 MHz [37] (disabled) * 6155 MHz [41] (disabled) * 6175 MHz [45] (disabled) * 6195 MHz [49] (disabled) * 6215 MHz [53] (disabled) * 6235 MHz [57] (disabled) * 6255 MHz [61] (disabled) * 6275 MHz [65] (disabled) * 6295 MHz [69] (disabled) * 6315 MHz [73] (disabled) * 6335 MHz [77] (disabled) * 6355 MHz [81] (disabled) * 6375 MHz [85] (disabled) * 6395 MHz [89] (disabled) * 6415 MHz [93] (disabled) * 6435 MHz [97] (disabled) * 6455 MHz [101] (disabled) * 6475 MHz [105] (disabled) * 6495 MHz [109] (disabled) * 6515 MHz [113] (disabled) * 6535 MHz [117] (disabled) * 6555 MHz [121] (disabled) * 6575 MHz [125] (disabled) * 6595 MHz [129] (disabled) * 6615 MHz [133] (disabled) * 6635 MHz [137] (disabled) * 6655 MHz [141] (disabled) * 6675 MHz [145] (disabled) * 6695 MHz [149] (disabled) * 6715 MHz [153] (disabled) * 6735 MHz [157] (disabled) * 6755 MHz [161] (disabled) * 6775 MHz [165] (disabled) * 6795 MHz [169] (disabled) * 6815 MHz [173] (disabled) * 6835 MHz [177] (disabled) * 6855 MHz [181] (disabled) * 6875 MHz [185] (disabled) * 6895 MHz [189] (disabled) * 6915 MHz [193] (disabled) * 6935 MHz [197] (disabled) * 6955 MHz [201] (disabled) * 6975 MHz [205] (disabled) * 6995 MHz [209] (disabled) * 7015 MHz [213] (disabled) * 7035 MHz [217] (disabled) * 7055 MHz [221] (disabled) * 7075 MHz [225] (disabled) * 7095 MHz [229] (disabled) * 7115 MHz [233] (disabled) 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 * start_sched_scan * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * connect * disconnect * channel_switch * set_qos_map * set_multicast_to_unicast * Unknown command (140) WoWLAN support: * wake up on disconnect * wake up on magic packet * wake up on pattern match, up to 1 patterns of 1-128 bytes, maximum packet offset 0 bytes * can do GTK rekeying * wake up on network detection, up to 10 match sets software interface modes (can always be added): * AP/VLAN * monitor valid interface combinations: * #{ managed } <= 4, #{ AP } <= 1, total <= 4, #channels <= 1, STA/AP BI must match HT 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 spacing Device supports TX status socket option. Device supports HT-IBSS. Device supports SAE with AUTHENTICATE command Device supports scan flush. Device supports per-vif TX power setting Driver supports full state transitions for AP/GO clients Driver supports a userspace MPM Device supports active monitor (which will ACK incoming frames) Device supports configuring vdev MAC-addr on create. Device supports randomizing MAC-addr in scans. Device supports randomizing MAC-addr in sched scans. max # scan plans: 1 max scan plan interval: 65535 max scan plan iterations: 0 Supported 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 0xf0 Supported 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 0xd0 Supported extended features: * [ RRM ]: RRM * [ SET_SCAN_DWELL ]: scan dwell setting * [ BEACON_RATE_LEGACY ]: legacy beacon rate setting * [ BEACON_RATE_HT ]: HT beacon rate setting * [ BEACON_RATE_VHT ]: VHT beacon rate setting * [ FILS_STA ]: STA FILS (Fast Initial Link Setup) * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211 * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs * [ AIRTIME_FAIRNESS ]: airtime fairness scheduling * [ AQL ]: Airtime Queue Limits (AQL) * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support ```

So I'll be glad to discuss what changes could I try to test. Also this issue could be interpretted as WiFi6e config test that @morrownr was asking for.

Best regards, Andrei Kavalenka

andrew-kovalenk0 commented 4 months ago

Update: I also deciced to try WiFi6 on this setup with this config file: hostapd-WiFi6.conf. Access point initialized secessfully, my Pixel 6 Pro shows that it's actually WiFi6 network with WPA3-Personal security. But unfortunately I couldn't connect to it, here is hotsapd status:

systemctl status hostapd ``` Andrei@raspberrypi:~ $ systemctl status hostapd ● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet Loaded: loaded (/etc/systemd/system/hostapd.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2024-02-22 21:24:58 CET; 26min ago Docs: man:hostapd(8) Process: 524 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS $DAEMON_CONF (code=exited, status=0/SUCCESS) Main PID: 534 (hostapd) Tasks: 1 (limit: 412) CPU: 625ms CGroup: /system.slice/hostapd.service └─534 /usr/sbin/hostapd -B -P /run/hostapd.pid -B /etc/hostapd/hostapd-WiFi6.conf Feb 22 21:51:30 raspberrypi hostapd[534]: wlx00c0cab5c596: STA 9e:e5:12:78:09:a5 IEEE 802.11: authenticated Feb 22 21:51:30 raspberrypi hostapd[534]: wlx00c0cab5c596: STA 9e:e5:12:78:09:a5 IEEE 802.11: associated (aid 1) Feb 22 21:51:48 raspberrypi hostapd[534]: wlx00c0cab5c596: STA 9e:e5:12:78:09:a5 IEEE 802.11: disassociated Feb 22 21:51:49 raspberrypi hostapd[534]: wlx00c0cab5c596: STA 9e:e5:12:78:09:a5 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) ```

Will be glad to hear your advices how to fix this.

morrownr commented 4 months ago

Hi @andrew-kovalenk0

This is going to be fun.

You just beat me to the idea. I was going to suggest that you start with a WiFi 6, 5 GHz band setup first so as to learn a few things while working with a known good setup. The WiFi6e example hostapd.conf file that is down in the /home/AP_mode folder is not linked to the Main Menu yet as it is not ready for prime time. I guess I need to add a note about it being an alpha quality example at this point.

You mentioned using the Bridged Wireless Access Point guide:

https://github.com/morrownr/USB-WiFi/blob/main/home/AP_Mode/Bridged_Wireless_Access_Point.md

That should be a good guide for what you are trying to do. Now, from the guide:

Further updates and testing will need to happen before this guide can be used with versions of RasPiOS prior to the 2023-10-10 version.

I see that you are using an old version of RasPiOS. I am serious about the above statement. I know how many changes had to be made with the release of RasPiOS that is based on Debian 12. I really do recommend that you take a hard look at starting this project with a fresh burn of RasPiOS 12-05-2023 64 bit... is your Pi 64 or 32 bit? I am not familiar with this Pi so if you could pass along a link that gives the details, I would appreciate it.

With that said, I might be able to walk you through some changes so that the guide works with the old RasPiOS but it could take a lot of work as there are some serious changes in networking.

Let me know what you think of the above and what questions you have.

@morrownr

andrew-kovalenk0 commented 4 months ago

Let me know what you think

I'll install newer RasPiOS in that case. For some reaseon raspi imager offers only Debain 11 x32 for Zero 2 W, but it's capable to run Debain 12 x64. After setting up a new system I'll try run WiFi6 access point and will come back with results.

andrew-kovalenk0 commented 4 months ago

I installed Raspy OS based on Debain 12, update hostapd to 2.11, repeat all steps from AP Mode - How to build a bridged wireless access point, but without bridge steps, because I don't need them. Result is the same - I can see hostspot on my phone, but can't connect to it, it fails on the step of receiving ip adres. Here is a log:

systemctl status hostapd ``` andrei@andrei:~ $ systemctl status hostapd ● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet Loaded: loaded (/etc/systemd/system/hostapd.service; enabled; preset: enabled) Active: active (running) since Mon 2024-02-26 18:12:37 CET; 3min 11s ago Docs: man:hostapd(8) Process: 757 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid $DAEMON_OPTS $DAEMON_CONF (code=exited, status=0/SUCCESS) Main PID: 763 (hostapd) Tasks: 1 (limit: 169) CPU: 216ms CGroup: /system.slice/hostapd.service └─763 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd-WiFi6.conf Feb 26 18:12:36 andrei systemd[1]: Starting hostapd.service - Access point and authentication server for Wi-Fi and Ethernet... Feb 26 18:12:37 andrei hostapd[757]: wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE Feb 26 18:12:37 andrei systemd[1]: Started hostapd.service - Access point and authentication server for Wi-Fi and Ethernet. Feb 26 18:14:46 andrei hostapd[763]: wlan0: STA 9e:e5:12:78:09:a5 IEEE 802.11: associated (aid 1) Feb 26 18:15:04 andrei hostapd[763]: wlan0: STA 9e:e5:12:78:09:a5 IEEE 802.11: disassociated Feb 26 18:15:05 andrei hostapd[763]: wlan0: STA 9e:e5:12:78:09:a5 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) ```

@morrownr any ideas/suggestions how can I fix it?

morrownr commented 4 months ago

I installed Raspy OS based on Debain 12, update hostapd to 2.11, ..

If you installed the 2023-12-05 64 bit RasPiOS (based on Debian 12) then you don't need to compile hostapd for what you are doing. I know, so much to keep up with.

If your setup is per my guide then a log file is created in your home directory... hostapd.log. Open it in a text editor and see if it is giving us any info.

@morrownr

andrew-kovalenk0 commented 4 months ago

Unfortunately I don't see a log file in my home directory. Double checked all the steps but everything seems to be correct. Here is hostapd service file, maybe there something is uncorrect:

hostapd service file ``` [Unit] Description=Access point and authentication server for Wi-Fi and Ethernet Documentation=man:hostapd(8) After=network.target #ConditionFileNotEmpty=/etc/hostapd/hostapd.conf [Service] Type=forking PIDFile=/run/hostapd.pid Restart=on-failure RestartSec=2 Environment=DAEMON_CONF=/etc/hostapd/hostapd-WiFi6.conf Environment=DEAMON_OPTS="-d -K -f /home/andrei/hostapd.log" #EnvironmentFile=-/etc/default/hostapd ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS $DAEMON_CONF [Install] WantedBy=multi-user.target ```
andrew-kovalenk0 commented 4 months ago

Update: I tried wifi5 config, but result is the same. I'm thinking that the reason could be in bridge settings (I don't configure bridge from Ethernet port, because I don't need it. On Debain 11 I configured a bridge to Ethernet port (and on raspberry zero 2w there is no Ethernet port) with a same result) or in absence of Internet connection.

morrownr commented 4 months ago

I'm thinking that the reason could be in bridge settings

Could be. I don't have a better suggestion.

andrew-kovalenk0 commented 4 months ago

Any ideas why there isn't log file in the home directory?

morrownr commented 4 months ago

Any ideas why there isn't log file in the home directory?

sudo nano /etc/systemd/system/hostapd.service

Environment=DAEMON_OPTS="-d -K -f /home//hostapd.log"

Did you change <your home> to your home address?

andrew-kovalenk0 commented 4 months ago

Yes, in this message you could find my service file https://github.com/morrownr/USB-WiFi/issues/384#issuecomment-1966324318

andrew-kovalenk0 commented 4 months ago

After some research I found that problem could be in the absence of dhcp server, so now I'm trying to install and configure it.

morrownr commented 4 months ago

dhcp server ...

Did you install and enable the following?

sudo apt install systemd-resolved sudo systemctl enable systemd-resolved

andrew-kovalenk0 commented 4 months ago

Yes, but after disabling networkmanager and without Ethernet connection there is no IP address at my wlan0 interface (checked through if config). And I think that is the reason.

morrownr commented 4 months ago

there is no IP address at my wlan0 interface

Did you set an IP address?

andrew-kovalenk0 commented 4 months ago

Yes, but it had no effect.

morrownr commented 4 months ago

How did you set it?

I'm trying to see if we can avoid you installing dhcp as it is not clear how that will help and it will probably conflict with systemd-resolved.

andrew-kovalenk0 commented 4 months ago

sudo ifconfig wlan0 192.168.0.1, and then restart hostapd by sudo systemctl restart hostapd. And yes, I was trying to install dnsmasq and it also uses 53 port as systemd-resolved.

morrownr commented 4 months ago

ifconfig

I'd avoid using the above as it has been depreciated for several years.

Recommend you dig into systemd.networkd to see if you can set it there. This is a less than common setup for networking so I would just have to dig myself. If I had a good idea, I would tell you.

andrew-kovalenk0 commented 3 months ago

Hi, finally returned back to my project. So I updated my system to Debain 12, disabled NetworkManager, configured wlan0 interface in /etc/notwork/interfaces to has static IP address (didn't install and use systemd-netwrokd because it' more complicated without any benefits in my case), configured DHCP server with dnsmasq, so my phone obtain IP address while connecting to WAP. I downloaded your WIFI6 config where commented bridge=br0 line and everything works! But with WIFI6e config hostapd won't start with error: Line 125: unknown configuration item 'ht_coex', so maybe you have any advices what can I try? @morrownr