lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.04k stars 282 forks source link

Hotspot fails with unhelpful message when wifi card only supports AP on the same channel #344

Open matejdro opened 10 months ago

matejdro commented 10 months ago

Attempting to create a hotspot will result in a following error:

Config dir: /tmp/create_ap.wlp1s0.conf.3s6Bf5Zf
PID: 29674
Network Manager found, set ap0 as unmanaged device... DONE
Custom frequency band set with 2.4Ghz with channel 1
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp1s0.conf.3s6Bf5Zf/hostapd_ctrl
WARN: Low entropy detected. We recommend you to install `haveged'
Failed to set beacon parameters
Interface initialization failed
ap0: interface state UNINITIALIZED->DISABLED
ap0: AP-DISABLED 
ap0: Unable to setup interface.
ap0: interface state DISABLED->DISABLED
ap0: AP-DISABLED 
ap0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface ap0 wasn't started
nl80211: deinit ifname=ap0 disabled_11b_rates=0

Error: Failed to run hostapd, maybe a program is interfering.
If an error like 'n80211: Could not configure driver mode' was thrown
try running the following before starting create_ap:
    nmcli r wifi off
    rfkill unblock wlan

iw dev:

phy#0
        Interface wlp1s0
                ifindex 3
                wdev 0x1
                addr 04:7b:cb:bd:90:a0
                ssid ******
                type managed
                channel 48 (5240 MHz), width: 80 MHz, center1: 5210 MHz
                txpower 18.00 dBm
                multicast TXQ:
                        qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes        tx-packets
                        0       0       0       0       0       0       0       0               0
iw list (shows AP as supported) ``` Wiphy phy0 wiphy index: 0 max # scan SSIDs: 16 max scan IEs length: 138 bytes max # sched scan SSIDs: 16 max # match sets: 16 Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports RSN-IBSS. Device supports AP-side u-APSD. Supported Ciphers: * TKIP (00-0f-ac:2) * CCMP-128 (00-0f-ac:4) * CMAC (00-0f-ac:6) * CMAC-256 (00-0f-ac:13) * GMAC-128 (00-0f-ac:11) * GMAC-256 (00-0f-ac:12) * GCMP-128 (00-0f-ac:8) * GCMP-256 (00-0f-ac:9) * CCMP-256 (00-0f-ac:10) Available Antennas: TX 0x3 RX 0x3 Configured Antennas: TX 0x3 RX 0x3 Supported interface modes: * managed * AP Band 1: Capabilities: 0x19e3 RX LDPC HT20/HT40 Static 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-15 HE Iftypes: managed HE MAC Capabilities (0x000b82100040): +HTC HE Supported TWT Requester Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control RX Control Frame to MultiBSS A-MSDU in A-MPDU HE PHY Capabilities: (0x02304c890d018008020c00): HE40/2.4GHz Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation: 1 DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 3 Sounding Dimensions <= 80Mhz: 1 PPE Threshold Present Max NC: 1 20MHz in 40MHz HE PPDU 2.4GHz 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 0x19 0x1c 0xc7 0x71 EHT Iftypes: managed EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw=20 MHz, max NSS for MCS 0-7: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: AP HE MAC Capabilities (0x000f82100040): +HTC HE Supported TWT Requester TWT Responder Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control RX Control Frame to MultiBSS A-MSDU in A-MPDU HE PHY Capabilities: (0x02304c880d018008020c00): HE40/2.4GHz Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 3 Sounding Dimensions <= 80Mhz: 1 PPE Threshold Present Max NC: 1 20MHz in 40MHz HE PPDU 2.4GHz 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 0x19 0x1c 0xc7 0x71 EHT Iftypes: AP EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw=20 MHz, max NSS for MCS 0-7: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: mesh point HE MAC Capabilities (0x000982000040): +HTC HE Supported Dynamic BA Fragementation Level: 1 OM Control RX Control Frame to MultiBSS A-MSDU in A-MPDU HE PHY Capabilities: (0x02300c800d018008000000): HE40/2.4GHz Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 3 Sounding Dimensions <= 80Mhz: 1 PPE Threshold Present Max NC: 1 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 0x19 0x1c 0xc7 0x71 EHT Iftypes: mesh point EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw=20 MHz, max NSS for MCS 0-7: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=20 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 Bitrates (non-HT): * 1.0 Mbps * 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: 0x19e3 RX LDPC HT20/HT40 Static 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-15 VHT Capabilities (0x339139f6): Max MPDU length: 11454 Supported Channel Width: 160 MHz RX LDPC short GI (80 MHz) short GI (160/80+80 MHz) TX STBC SU Beamformer 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 VHT extended NSS: supported HE Iftypes: managed HE MAC Capabilities (0x000b9a100840): +HTC HE Supported TWT Requester Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control Maximum A-MPDU Length Exponent: 3 RX Control Frame to MultiBSS A-MSDU in A-MPDU UL 2x996-Tone RU HE PHY Capabilities: (0x0c334c89fd0980c80e0c00): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation: 1 DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 STBC Tx > 80MHz STBC Rx > 80MHz 20MHz in 40MHz HE PPDU 2.4GHz 20MHz in 160/80+80MHz HE PPDU 80MHz in 160/80+80MHz HE PPDU 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: managed EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: AP HE MAC Capabilities (0x000f9a100840): +HTC HE Supported TWT Requester TWT Responder Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control Maximum A-MPDU Length Exponent: 3 RX Control Frame to MultiBSS A-MSDU in A-MPDU UL 2x996-Tone RU HE PHY Capabilities: (0x0c334c88fd0980c80e0c00): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 STBC Tx > 80MHz STBC Rx > 80MHz 20MHz in 40MHz HE PPDU 2.4GHz 20MHz in 160/80+80MHz HE PPDU 80MHz in 160/80+80MHz HE PPDU 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: AP EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: mesh point HE MAC Capabilities (0x00098a000040): +HTC HE Supported Dynamic BA Fragementation Level: 1 OM Control Maximum A-MPDU Length Exponent: 1 RX Control Frame to MultiBSS A-MSDU in A-MPDU HE PHY Capabilities: (0x0c330c80fd098008000000): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: mesh point EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 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] (23.0 dBm) (radar detection) * 5280 MHz [56] (23.0 dBm) (radar detection) * 5300 MHz [60] (23.0 dBm) (radar detection) * 5320 MHz [64] (23.0 dBm) (radar detection) * 5500 MHz [100] (30.0 dBm) (radar detection) * 5520 MHz [104] (30.0 dBm) (radar detection) * 5540 MHz [108] (30.0 dBm) (radar detection) * 5560 MHz [112] (30.0 dBm) (radar detection) * 5580 MHz [116] (30.0 dBm) (radar detection) * 5600 MHz [120] (30.0 dBm) (radar detection) * 5620 MHz [124] (30.0 dBm) (radar detection) * 5640 MHz [128] (30.0 dBm) (radar detection) * 5660 MHz [132] (30.0 dBm) (radar detection) * 5680 MHz [136] (30.0 dBm) (radar detection) * 5700 MHz [140] (30.0 dBm) (radar detection) * 5720 MHz [144] (30.0 dBm) (radar detection) * 5745 MHz [149] (14.0 dBm) * 5765 MHz [153] (14.0 dBm) * 5785 MHz [157] (14.0 dBm) * 5805 MHz [161] (14.0 dBm) * 5825 MHz [165] (14.0 dBm) * 5845 MHz [169] (14.0 dBm) * 5865 MHz [173] (14.0 dBm) * 5885 MHz [177] (disabled) Band 4: HE Iftypes: managed HE MAC Capabilities (0x000b9a100840): +HTC HE Supported TWT Requester Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control Maximum A-MPDU Length Exponent: 3 RX Control Frame to MultiBSS A-MSDU in A-MPDU UL 2x996-Tone RU HE PHY Capabilities: (0x0c334c89fd0980c80e0c00): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation: 1 DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 STBC Tx > 80MHz STBC Rx > 80MHz 20MHz in 40MHz HE PPDU 2.4GHz 20MHz in 160/80+80MHz HE PPDU 80MHz in 160/80+80MHz HE PPDU 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: managed EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: AP HE MAC Capabilities (0x000f9a100840): +HTC HE Supported TWT Requester TWT Responder Dynamic BA Fragementation Level: 1 Broadcast TWT OM Control Maximum A-MPDU Length Exponent: 3 RX Control Frame to MultiBSS A-MSDU in A-MPDU UL 2x996-Tone RU HE PHY Capabilities: (0x0c334c88fd0980c80e0c00): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz Full Bandwidth UL MU-MIMO DCM Max Constellation Rx: 1 SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 STBC Tx > 80MHz STBC Rx > 80MHz 20MHz in 40MHz HE PPDU 2.4GHz 20MHz in 160/80+80MHz HE PPDU 80MHz in 160/80+80MHz HE PPDU 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: AP EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 HE Iftypes: mesh point HE MAC Capabilities (0x00098a000040): +HTC HE Supported Dynamic BA Fragementation Level: 1 OM Control Maximum A-MPDU Length Exponent: 1 RX Control Frame to MultiBSS A-MSDU in A-MPDU HE PHY Capabilities: (0x0c330c80fd098008000000): HE40/HE80/5GHz HE160/5GHz Punctured Preamble RX: 3 Device Class: 1 LDPC Coding in Payload STBC Tx <= 80MHz STBC Rx <= 80MHz SU Beamformer SU Beamformee Beamformee STS <= 80Mhz: 7 Beamformee STS > 80Mhz: 7 Sounding Dimensions <= 80Mhz: 1 Sounding Dimensions > 80Mhz: 1 PPE Threshold Present Max NC: 1 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 HE RX MCS and NSS set 160 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 160 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 0x79 0x1c 0xc7 0x71 0x1c 0xc7 0x71 EHT Iftypes: mesh point EHT MAC Capabilities (0x0000): EHT PHY Capabilities: (0x0000000000000000): EHT MCS/NSS: (0x): EHT bw <= 80 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw <= 80 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 8-9: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 10-11: Rx=0, Tx=0 EHT bw=160 MHz, max NSS for MCS 12-13: Rx=0, Tx=0 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) * 5935 MHz [2] (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 * probe_client * set_noack_map * register_beacons * start_p2p_device * set_mcast_rate * connect * disconnect * channel_switch * set_qos_map * set_multicast_to_unicast WoWLAN support: * wake up on disconnect * wake up on magic packet * wake up on pattern match, up to 22 patterns of 1-134 bytes, maximum packet offset 114 bytes * can do GTK rekeying * wake up on GTK rekey failure * wake up on network detection, up to 16 match sets software interface modes (can always be added): * monitor valid interface combinations: * #{ managed } <= 1, #{ AP } <= 16, total <= 16, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz, 80 MHz, 80+80 MHz, 160 MHz } 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 AP scan. Device supports per-vif TX power setting Driver supports full state transitions for AP/GO clients Driver supports a userspace MPM Driver/device bandwidth changes during BSS lifetime (AP/GO mode) Device supports static SMPS Device supports configuring vdev MAC-addr on create. Device supports randomizing MAC-addr in scans. Device supports randomizing MAC-addr in net-detect scans. max # scan plans: 2 max scan plan interval: 7200 max scan plan iterations: 100 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 Maximum associated stations in AP mode: 512 Supported extended features: * [ RRM ]: RRM * [ SET_SCAN_DWELL ]: scan dwell 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 * [ ACK_SIGNAL_SUPPORT ]: ack signal level support * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs * [ ENABLE_FTM_RESPONDER ]: enable FTM (Fine Time Measurement) responder * [ STA_TX_PWR ]: TX power control per station * [ 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 * [ FILS_DISCOVERY ]: FILS discovery frame transmission support * [ UNSOL_BCAST_PROBE_RESP ]: unsolicated broadcast probe response transmission support * [ BSS_COLOR ]: BSS coloring support ```

Wifi device is Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)

Any ideas what would cause this?

matejdro commented 10 months ago

Here is a log with hostapd debug enabled:

Config dir: /tmp/create_ap.wlp1s0.conf.oskNTmUe
PID: 199112
Network Manager found, set ap0 as unmanaged device... DONE
Custom frequency band set with 2.4Ghz with channel 1
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp1s0.conf.oskNTmUe/hostapd_ctrl
random: Trying to read entropy from /dev/random
Configuration file: /tmp/create_ap.wlp1s0.conf.oskNTmUe/hostapd.conf
ctrl_interface_group=0
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:13
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:10
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 04 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 04 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities for interface type unknown
nl80211: Extended capabilities - hexdump(len=8): 04 00 40 00 00 00 00 40
nl80211: Extended capabilities mask - hexdump(len=8): 04 00 40 00 00 00 00 40
nl80211: Driver-advertised extended capabilities for interface type STATION
nl80211: Extended capabilities - hexdump(len=10): 04 00 40 00 00 00 00 40 00 20
nl80211: Extended capabilities mask - hexdump(len=10): 04 00 40 00 00 00 00 40 00 20
nl80211: Driver-advertised extended capabilities for interface type AP
nl80211: Extended capabilities - hexdump(len=11): 04 00 40 00 00 00 00 40 00 40 08
nl80211: Extended capabilities mask - hexdump(len=11): 04 00 40 00 00 00 00 40 00 40 08
nl80211: key_mgmt=0x1ff0f enc=0xfec auth=0x7 flags=0x5800510d343d1e0 rrm_flags=0x30 probe_resp_offloads=0x0 max_stations=512 max_remain_on_chan=5000 max_scan_ssids=16
nl80211: interface ap0 in phy phy0
nl80211: Set mode ifindex 19 iftype 3 (AP)
nl80211: Setup AP(ap0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x556e4e92f420
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x556e4e92f420 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x556e4e92f420 match=7f multicast=0
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 19 (ifidx_reason -1)
nl80211: if_indices[16]: 19(-1)
nl80211: Do not open EAPOL RX socket - using control port for RX
phy: phy0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Regulatory information - country=DE (DFS-ETSI)
nl80211: 2402-2482 @ 40 MHz 20 mBm
nl80211: 5170-5250 @ 80 MHz 23 mBm (no outdoor)
nl80211: 5250-5330 @ 80 MHz 23 mBm (no outdoor) (DFS)
nl80211: 5490-5590 @ 80 MHz 30 mBm (DFS)
nl80211: 5590-5650 @ 40 MHz 30 mBm (DFS)
nl80211: 5650-5730 @ 80 MHz 30 mBm (DFS)
nl80211: 5735-5875 @ 80 MHz 14 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED]
nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[RADAR] 5280[RADAR] 5300[RADAR] 5320[RADAR] 5500[RADAR] 5520[RADAR] 5540[RADAR] 5560[RADAR] 5580[RADAR] 5600[RADAR] 5620[RADAR] 5640[RADAR] 5660[RADAR] 5680[RADAR]
nl80211: Mode IEEE 802.11a: 5955[DISABLED][NO_IR] 5975[DISABLED][NO_IR] 5995[DISABLED][NO_IR] 6015[DISABLED][NO_IR] 6035[DISABLED][NO_IR] 6055[DISABLED][NO_IR] 6075[DISABLED][NO_IR] 6095[DISABLED][NO_IR] 6115[DISABLED][NO_IR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484[DISABLED]
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=23 dBm
Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=169 freq=5845 MHz max_tx_power=14 dBm
Allowed channel: mode=2 chan=173 freq=5865 MHz max_tx_power=14 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
Completing interface initialization
Mode: IEEE 802.11g  Channel: 1  Frequency: 2412 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2412 (ht_enabled=0, vht_enabled=0, he_enabled=0, bandwidth=20 MHz, cf1=2412 MHz, cf2=0 MHz)
  * freq=2412
  * he_enabled=0
  * vht_enabled=0
  * ht_enabled=0
  * channel_type=0
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x556e4e92b270 (ap0), first=1)
nl80211: flush -> DEL_STATION ap0 (all)
WARN: Low entropy detected. We recommend you to install `haveged'
Using interface ap0 with hwaddr 04:7b:cb:bd:90:a1 and ssid "LaptopFiber"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=11):
     4c 61 70 74 6f 70 46 69 62 65 72                  LaptopFiber     
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 random bytes
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=62): 80 00 00 00 ff ff ff ff ff ff 04 7b cb bd 90 a1 04 7b cb bd 90 a1 00 00 00 00 00 00 00 00 00 00 64 00 11 04 00 0b 4c 61 70 74 6f 70 46 69 62 65 72 01 08 82 84 8b 96 0c 12 18 24 03 01 01
nl80211: Beacon tail - hexdump(len=48): 2a 01 04 32 04 30 48 60 6c 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 3b 02 51 00 7f 0b 04 00 40 00 00 00 00 40 00 40 08
nl80211: ifindex=19
nl80211: beacon_int=100
nl80211: beacon_rate=0
nl80211: rate_type=0
nl80211: dtim_period=2
nl80211: ssid=LaptopFiber
  * beacon_int=100
  * dtim_period=2
nl80211: hidden SSID not in use
nl80211: privacy=2
nl80211: auth_algs=0x1
nl80211: wpa_version=0x2
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x10
nl80211: group_cipher=0x10
nl80211: beacon_ies - hexdump(len=13): 7f 0b 04 00 40 00 00 00 00 40 00 40 08
nl80211: proberesp_ies - hexdump(len=13): 7f 0b 04 00 40 00 00 00 00 40 00 40 08
nl80211: assocresp_ies - hexdump(len=13): 7f 0b 04 00 40 00 00 00 00 40 00 40 08
nl80211: twt_responder=1
nl80211: Beacon set failed: -16 (Device or resource busy)
Failed to set beacon parameters
ap0: Flushing old station entries
nl80211: flush -> DEL_STATION ap0 (all)
ap0: Deauthenticate all stations
nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme - Use bss->freq=2412
nl80211: send_mlme -> send_frame_cmd
nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 04 7b cb bd 90 a1 04 7b cb bd 90 a1 00 00 03 00
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=2412 wait=0)
hostapd_free_hapd_data(ap0)
Interface initialization failed
ap0: interface state UNINITIALIZED->DISABLED
ap0: AP-DISABLED 
ap0: Unable to setup interface.
hostapd_interface_deinit_free(0x556e4e929e20)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x556e4e929e20)
ap0: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss ap0
ap0: Deauthenticate all stations
nl80211: send_mlme - da=ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 no_encrypt=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme - Use bss->freq=2412
nl80211: send_mlme -> send_frame_cmd
nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 04 7b cb bd 90 a1 04 7b cb bd 90 a1 00 00 03 00
nl80211: Frame command failed: ret=-16 (Device or resource busy) (freq=2412 wait=0)
ap0: AP-DISABLED 
hostapd_cleanup(hapd=0x556e4e92b270 (ap0))
ap0: CTRL-EVENT-TERMINATING 
hostapd_free_hapd_data: Interface ap0 wasn't started
hostapd_interface_deinit_free: driver=0x556e4d806f80 drv_priv=0x556e4e92fc20 -> hapd_deinit
nl80211: deinit ifname=ap0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=19)
netlink: Operstate: ifindex=19 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Unsubscribe mgmt frames handle 0x8888dde6c61a7ca9 (deinit)
hostapd_interface_free(0x556e4e929e20)
hostapd_interface_free: free hapd 0x556e4e92b270
hostapd_cleanup_iface(0x556e4e929e20)
hostapd_cleanup_iface_partial(0x556e4e929e20)
hostapd_cleanup_iface: free iface=0x556e4e929e20

Error: Failed to run hostapd, maybe a program is interfering.
If an error like 'n80211: Could not configure driver mode' was thrown
try running the following before starting create_ap:
    nmcli r wifi off
    rfkill unblock wlan

Doing cleanup.. done

This appears to be the cause: nl80211: Beacon set failed: -16 (Device or resource busy)

matejdro commented 10 months ago

Found the problem: it appears my Wifi card only supports AP on the same channel than existing Wifi connection. So I have to first manually check channel of the existing connetion with iw ... info and then manually specify channel when calling create_ap.

Maybe a better error message could be added or even this condition detected and channel picked automatically instead of always defaulting to channel 1?