Hotspot Not Working as Expected

I defined a hotspot in KDE System Settings > Network > Connections > Add new connection > Wi-Fi (shared) as the following:

image

image

image

image

image

But whenever I activate it either by clicking Connect or by nmcli connection up openSUSE-hotspot, my original WiFi connection will be deactivated. So basically I have a hotspot with no Internet connection, which is not quite expected.

I suppose my WiFi card (Intel Corporation Wi-Fi 6 AX200 (rev 1a)) does support hotspot, because under Windows 10 I can use hotspot. Am I missing some setups or are there extra drivers to be installed?

Are you sure that your WiFi card is designed to act as hotspot and as WiFi-client at the same time?

@az Hi so in Windows does it use the 2.4GHz for wifi connectivity and your using the 5GHz for client connections (that don’t have 2.4GHz capability) or visa-versa?

That is normal. A given wireless interface can be either client or AP at the same time. You may be able to create virtual wireless interfaces on top of the physical card, but it depends on your card capabilities. Show full output of

iw list

I am not sure where you are located but can you try another channel then 12, for example 6 or 1?

From https://en.wikipedia.org/wiki/IEEE_802.11:

North America and some Central and South American countries allow only 1 through 11.

I tested it just now under the latest Windows 10. Any combination is fine, i.e, all of the following configs work:

  • 2.4GHz for both WiFi and hotspot
  • 2.4GHz for WiFi and 5GHz for hotspot
  • 5GHz for WiFi and 2.4GHz for hotspot
  • 5GHz for both WiFi and hotspot

This is the output of iw list:

Wiphy phy0
        wiphy index: 0
        max # scan SSIDs: 20
        max scan IEs length: 365 bytes
        max # sched scan SSIDs: 20
        max # match sets: 8
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        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)
                * GCMP-128 (00-0f-ac:8)
                * GCMP-256 (00-0f-ac:9)
                * CMAC (00-0f-ac:6)
                * 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:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:
                Capabilities: 0x19ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        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: 4 usec (0x05)
                HT Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                HE Iftypes: managed
                        HE MAC Capabilities (0x78019a30abc0):
                                +HTC HE Supported
                                Trigger Frame MAC Padding Duration: 2
                                Multi-TID Aggregation Support: 7
                                Broadcast TWT
                                32-bit BA Bitmap
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                Multi-TID Aggregation TX: 7
                                UL 2x996-Tone RU
                        HE PHY Capabilities: (0x023f0e09fd098c160ff001):
                                HE40/2.4GHz
                                Punctured Preamble RX: 15
                                Device Class: 1
                                LDPC Coding in Payload
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                SU Beamformee
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 7
                                Sounding Dimensions <= 80Mhz: 1
                                Sounding Dimensions > 80Mhz: 1
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Feedback
                                PPE Threshold Present
                                Power Boost Factor ar
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 2
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                20MHz in 40MHz HE PPDU 2.4GHz
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                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 0x61 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 (0x78011a100000):
                                +HTC HE Supported
                                Trigger Frame MAC Padding Duration: 2
                                Multi-TID Aggregation Support: 7
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 3
                        HE PHY Capabilities: (0x02200e090009800401c000):
                                HE40/2.4GHz
                                LDPC Coding in Payload
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                Sounding Dimensions <= 80Mhz: 1
                                Sounding Dimensions > 80Mhz: 1
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                        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 0x61 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
                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] (22.0 dBm)
                        * 2417 MHz [2] (22.0 dBm)
                        * 2422 MHz [3] (22.0 dBm)
                        * 2427 MHz [4] (22.0 dBm)
                        * 2432 MHz [5] (22.0 dBm)
                        * 2437 MHz [6] (22.0 dBm)
                        * 2442 MHz [7] (22.0 dBm)
                        * 2447 MHz [8] (22.0 dBm)
                        * 2452 MHz [9] (22.0 dBm)
                        * 2457 MHz [10] (22.0 dBm)
                        * 2462 MHz [11] (22.0 dBm)
                        * 2467 MHz [12] (22.0 dBm)
                        * 2472 MHz [13] (22.0 dBm)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x19ef
                        RX LDPC
                        HT20/HT40
                        SM Power Save disabled
                        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: 4 usec (0x05)
                HT Max RX data rate: 300 Mbps
                HT TX/RX MCS rate indexes supported: 0-15
                VHT Capabilities (0x039071f6):
                        Max MPDU length: 11454
                        Supported Channel Width: 160 MHz
                        RX LDPC
                        short GI (80 MHz)
                        short GI (160/80+80 MHz)
                        TX STBC
                        SU Beamformee
                        MU Beamformee
                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 (0x78018a30abc0):
                                +HTC HE Supported
                                Trigger Frame MAC Padding Duration: 2
                                Multi-TID Aggregation Support: 7
                                Broadcast TWT
                                32-bit BA Bitmap
                                OM Control
                                Maximum A-MPDU Length Exponent: 1
                                RX Control Frame to MultiBSS
                                A-MSDU in A-MPDU
                                Multi-TID Aggregation TX: 7
                                UL 2x996-Tone RU
                        HE PHY Capabilities: (0x0c3f0e09fd098c160ff001):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                Punctured Preamble RX: 15
                                Device Class: 1
                                LDPC Coding in Payload
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                SU Beamformee
                                Beamformee STS <= 80Mhz: 7
                                Beamformee STS > 80Mhz: 7
                                Sounding Dimensions <= 80Mhz: 1
                                Sounding Dimensions > 80Mhz: 1
                                Triggered SU Beamforming Feedback
                                Triggered MU Beamforming Feedback
                                PPE Threshold Present
                                Power Boost Factor ar
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                Max NC: 2
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                                20MHz in 40MHz HE PPDU 2.4GHz
                                20MHz in 160/80+80MHz HE PPDU
                                80MHz in 160/80+80MHz HE PPDU
                                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
                        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 0x61 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 (0x78010a100000):
                                +HTC HE Supported
                                Trigger Frame MAC Padding Duration: 2
                                Multi-TID Aggregation Support: 7
                                Broadcast TWT
                                OM Control
                                Maximum A-MPDU Length Exponent: 1
                        HE PHY Capabilities: (0x0c200e090009800401c000):
                                HE40/HE80/5GHz
                                HE160/5GHz
                                LDPC Coding in Payload
                                NDP with 4x HE-LTF and 3.2us GI
                                STBC Tx <= 80MHz
                                STBC Rx <= 80MHz
                                DCM Max Constellation: 1
                                DCM Max Constellation Rx: 1
                                Sounding Dimensions <= 80Mhz: 1
                                Sounding Dimensions > 80Mhz: 1
                                PPE Threshold Present
                                HE SU PPDU & HE PPDU 4x HE-LTF 0.8us GI
                                HE ER SU PPDU 4x HE-LTF 0.8us GI
                        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 0x61 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
                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] (22.0 dBm) (no IR)
                        * 5200 MHz [40] (22.0 dBm) (no IR)
                        * 5220 MHz [44] (22.0 dBm) (no IR)
                        * 5240 MHz [48] (22.0 dBm) (no IR)
                        * 5260 MHz [52] (22.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (22.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (22.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (22.0 dBm) (no IR, radar detection)
                        * 5340 MHz [68] (disabled)
                        * 5360 MHz [72] (disabled)
                        * 5380 MHz [76] (disabled)
                        * 5400 MHz [80] (disabled)
                        * 5420 MHz [84] (disabled)
                        * 5440 MHz [88] (disabled)
                        * 5460 MHz [92] (disabled)
                        * 5480 MHz [96] (disabled)
                        * 5500 MHz [100] (22.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (22.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (22.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (22.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (22.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (22.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (22.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (22.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (22.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (22.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (22.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (22.0 dBm) (no IR, radar detection)
                        * 5745 MHz [149] (22.0 dBm) (no IR)
                        * 5765 MHz [153] (22.0 dBm) (no IR)
                        * 5785 MHz [157] (22.0 dBm) (no IR)
                        * 5805 MHz [161] (22.0 dBm) (no IR)
                        * 5825 MHz [165] (22.0 dBm) (no IR)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
                        * 5885 MHz [177] (disabled)
                        * 5905 MHz [181] (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
                 * add_tx_ts
                 * set_multicast_to_unicast
        WoWLAN support:
                 * wake up on disconnect
                 * wake up on magic packet
                 * wake up on pattern match, up to 20 patterns of 16-128 bytes,
                   maximum packet offset 0 bytes
                 * can do GTK rekeying
                 * wake up on GTK rekey failure
                 * wake up on EAP identity request
                 * wake up on 4-way handshake
                 * wake up on rfkill release
                 * wake up on network detection, up to 8 match sets
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        valid interface combinations:
                 * #{ managed } <= 1, #{ AP, P2P-client, P2P-GO } <= 1, #{ P2P-device } <= 1,
                   total <= 3, #channels <= 2
        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 low priority scan.
        Device supports scan flush.
        Device supports per-vif TX power setting
        P2P GO supports CT window setting
        P2P GO supports opportunistic powersave 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 adds DS IE to probe requests
        Device can update TPC Report IE
        Device supports static SMPS
        Device supports dynamic SMPS
        Device supports WMM-AC admission (TSPECs)
        Device supports configuring vdev MAC-addr on create.
        Device supports randomizing MAC-addr in scans.
        Device supports randomizing MAC-addr in sched scans.
        Device supports randomizing MAC-addr in net-detect scans.
        max # scan plans: 2
        max scan plan interval: 65535
        max scan plan iterations: 254
        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:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ MU_MIMO_AIR_SNIFFER ]: MU-MIMO sniffer
                * [ SCAN_START_TIME ]: scan start timestamp
                * [ BSS_PARENT_TSF ]: BSS last beacon/probe TSF
                * [ BEACON_RATE_LEGACY ]: legacy beacon rate setting
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ FILS_MAX_CHANNEL_TIME ]: FILS max channel attribute override with dwell time
                * [ ACCEPT_BCAST_PROBE_RESP ]: accepts broadcast probe response
                * [ OCE_PROBE_REQ_HIGH_TX_RATE ]: probe request TX at high rate (at least 5.5Mbps)
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ ENABLE_FTM_RESPONDER ]: enable FTM (Fine Time Measurement) responder
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ PROTECTED_TWT ]: protected Target Wake Time (TWT) 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

I’m currently located in Hong Kong, and according to Laird, channel 12 should be supported? Anyway I tried other channels and even “auto” channel, but none of them worked :frowning:

So your card supports simultaneous client (station) and master (AP) modes. You need to add additional wireless interface on top of your physical card. Like

bor@bor-Latitude-E5450:~$ iw dev
phy#0
	Interface wlp2s0
		ifindex 3
		wdev 0x1
		type managed
...
bor@bor-Latitude-E5450:~$ sudo iw phy#0 interface add sw_ap type __ap
bor@bor-Latitude-E5450:~$ iw dev
phy#0
	Interface sw_ap
		ifindex 25
		wdev 0x34
		type AP
...
	Interface wlp2s0
		ifindex 3
		wdev 0x1
		type managed
...
bor@bor-Latitude-E5450:~$ sudo cat /etc/NetworkManager/system-connections/MyAP.nmconnection 
[connection]
id=MyAP
uuid=1cc2f351-9209-4721-b2a0-b6e31f0c6510
type=wifi
interface-name=sw_ap

[wifi]
mode=ap
ssid=MyAP

[ipv4]
method=disabled

[ipv6]
addr-gen-mode=stable-privacy
method=disabled

[proxy]
bor@bor-Latitude-E5450:~$ sudo systemctl start NetworkManager
bor@bor-Latitude-E5450:~$ LC_ALL=en_EN.UTF-8 nmcli dev
DEVICE             TYPE      STATE         CONNECTION       
wlp2s0             wifi      connected     Home, sweet home 
br0                bridge    connected     br0              
tap0               tun       connected     tap0             
sw_ap              wifi      connected     MyAP             
...

This AP is visible in scan list of other clients and I have simultaneous connection to the Internet. I did not try to actually configure internet sharing, but it should work in normal way as long as you have two different interfaces.

The iw ... interface add ... is not persistent and you need to repeat it every time your system boots. You can create systemd service to do it before NetworkManager starts.

2 Likes

Forgot to add iw dev output after NetworkManager started

bor@bor-Latitude-E5450:~$ iw dev
phy#0
	Unnamed/non-netdev interface
		wdev 0x35
		type P2P-device
		txpower 0.00 dBm
	Interface sw_ap
		ifindex 25
		wdev 0x34
		ssid MyAP
		type AP
		channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
		txpower 22.00 dBm
...
	Interface wlp2s0
		ifindex 3
		wdev 0x1
		ssid Home, sweet home
		type managed
		channel 4 (2427 MHz), width: 20 MHz, center1: 2427 MHz
		txpower 22.00 dBm
...

Thanks a lot for the detailed instructions! After trying out the sudo iw phy#0 interface add sw_ap type __ap command, this is the result I get from iw dev:

phy#0
        Interface sw_ap
                ifindex 8
                wdev 0x3
                addr a2:47:77:e1:98:d1
                type managed
                txpower 0.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

I noticed that the type of sw_ap is still managed instead of AP (in your instruction), and the output of iw help interface states that the valid types are not including AP. Am I missing something?

Usage:  iw [options] command
Options:
        --debug         enable netlink debugging
        --version       show version (5.19)
Commands:
        phy <phyname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]
                Add a new virtual interface with the given configuration.
                Valid interface types are: managed, ibss, monitor, mesh, wds.

                The flags are only used for monitor interfaces, valid flags are:
                none:     no special flags
                fcsfail:  show frames with FCS errors
                control:  show control frames
                otherbss: show frames from other BSSes
                cook:     use cooked mode
                active:   use active mode (ACK incoming unicast packets)
                mumimo-groupid <GROUP_ID>: use MUMIMO according to a group id
                mumimo-follow-mac <MAC_ADDRESS>: use MUMIMO according to a MAC address

                The mesh_id is used only for mesh mode.

        dev <devname> interface add <name> type <type> [mesh_id <meshid>] [4addr on|off] [flags <flag>*] [addr <mac-addr>]

Commands that use the netdev ('dev') can also be given the
'wdev' instead to identify the device.

You can omit the 'phy' or 'dev' if the identification is unique,
e.g. "iw wlan0 info" or "iw phy0 info". (Don't when scripting.)

Do NOT screenscrape this tool, we don't consider its output stable.

It is changed by NetworkManager when it sees new device.

1 Like

Besides, when trying nmcli connection up openSUSE-hotspot again, it gives the following error:

Error: Connection activation failed: No suitable device found for this connection (device wlp82s0 not available because profile is not compatible with device (device MAC address does not match the profile)).

Thus I found the MAC is detected wrongly:

And this is the content in /etc/NetworkManager/system-connections/openSUSE-hotspot.nmconnection:

[connection]
id=openSUSE-hotspot
uuid=da4dede6-5cf3-4bc7-aa85-5307e7270ee2
type=wifi
autoconnect=false
permissions=user:az:;

[wifi]
mac-address=DC:71:96:DD:0D:C0
mode=ap
ssid=openSUSE-hotspot

[ipv4]
method=shared

[ipv6]
addr-gen-mode=stable-privacy
method=auto

[proxy]

But even after I manually modified the address in the file to match the output of iw dev, when connecting via nmcli connection up openSUSE-hotspot it gives the same error.

Also, in iw dev, sw_ap has a different MAC. Is this correct or problematic?

phy#0
        Interface sw_ap
                ifindex 8
                wdev 0x3
                addr a2:47:77:e1:98:d1
                type managed
                txpower 0.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
        Unnamed/non-netdev interface
                wdev 0x2
                addr dc:71:96:dd:0d:bf
                type P2P-device
                txpower 0.00 dBm
        Interface wlp82s0
                ifindex 3
                wdev 0x1
                addr dc:71:96:dd:0d:bf
                type managed
                channel 44 (5220 MHz), width: 80 MHz, center1: 5210 MHz
                txpower 22.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

So, use the correct MAC address if you insist on matching interface by MAC address.

I tried to, but like I said in that previous reply, it gives me the same error…

Why do not you start with the minimal connection profile that was shown to work and then change it as needed step by step?

Sorry I didn’t intend to start complex, the config file is autogenerated by KDE settings. Also thank you again for your time! Here are the new configs, but nmcli connection up throws the same MAC error.

error message
$ nmcli connection up openSUSE-hotspot
Error: Connection activation failed: No suitable device found for this connection (device wlp82s0 not available because profile is not compatible with device (device MAC address does not match the profile)).
content of `openSUSE-hotspot.nmconnection`
$ sudo cat /etc/NetworkManager/system-connections/openSUSE-hotspot.nmconnection
[connection]
id=openSUSE-hotspot
uuid=a0ad70cd-af3e-4a82-a03e-affeddb0e1c3
type=wifi
interface-name=sw_ap

[wifi]
mode=ap
ssid=openSUSE-hotspot

[ipv4]
method=disabled

[ipv6]
addr-gen-mode=stable-privacy
method=disabled

[proxy]
output of `iw dev`
$ sudo iw dev
[sudo] password for root:
phy#0
        Unnamed/non-netdev interface
                wdev 0x4
                addr dc:71:96:dd:0d:bf
                type P2P-device
                txpower 0.00 dBm
        Interface sw_ap
                ifindex 8
                wdev 0x3
                addr c2:13:ca:e0:5d:25
                type managed
                txpower 0.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
        Interface wlp82s0
                ifindex 3
                wdev 0x1
                addr dc:71:96:dd:0d:bf
                ssid Hala Madrid_5G
                type managed
                channel 48 (5240 MHz), width: 160 MHz, center1: 5250 MHz
                txpower 22.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

@az : You can try this description.

I have not tested it! But it might be worth trying.

It says

… you need to create two separate virtual interfaces … with unique MAC address … for the network connection (wlan0_sta) itself and for the software AP/hostapd “wireless repeater” …

And as far as I understand it does not use NetworkManager.

MAC could be red herring. Try from the clean state - stop NetworkManager, remove virtual interface, add it again and start NetworkManager. I do not pretend to know in details how NetworkManager handles interfaces and it is possible that without suitable AP connection it changes interface mode so it cannot change it back.