morrownr / USB-WiFi

USB WiFi Adapter Information for Linux
2.43k stars 163 forks source link

mt7921au Comfast CF-953AX in NUC-PC Manjaro Kernel 6.2 hangs #254

Open sektorhybrid opened 1 year ago

sektorhybrid commented 1 year ago

Hello

I have the following setup

The box freezes always while receiving the first 4-Way handshake from the first STA trying to connect. I tested with 4G, 5G and 6G with exact the same result. When the box hangs, the cursor in terminal screen stops blinking and nothing works except hard shutdown using the box shutdown button so this is a proper kernel panic.

I tested directly in USB2 port, USB3 port, externally powered USB2 and USB3 hubs, USB2 and USB3 extension cords etc Two USB setups I tried can be seen below

As USB2

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 2: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 9, If 0, Class=Wireless, Driver=btusb, 480M
        |__ Port 1: Dev 9, If 1, Class=Wireless, Driver=btusb, 480M
        |__ Port 1: Dev 9, If 2, Class=Wireless, Driver=, 480M
        |__ Port 1: Dev 9, If 3, Class=Vendor Specific Class, Driver=mt7921u, 480M
        ...
    |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtl88XXau, 480M

As USB3

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
    |__ Port 2: Dev 5, If 0, Class=Wireless, Driver=btusb, 5000M
    |__ Port 2: Dev 5, If 1, Class=Wireless, Driver=btusb, 5000M
    |__ Port 2: Dev 5, If 2, Class=Wireless, Driver=, 5000M
    |__ Port 2: Dev 5, If 3, Class=Vendor Specific Class, Driver=mt7921u, 5000M
    |__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 480M
    |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=rtl88XXau, 480M

The same settings are working flawlessly for all the adapters except the CF953AX, also sharing my udev rules which shows the adapters.

# Num1
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="0cf3",ATTRS{idProduct}=="9271",NAME="wlanap_WN722N"
#Num2
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="2357",ATTRS{idProduct}=="0106",NAME="wlanap_T9UH"
#Num3
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="0b05",ATTRS{idProduct}=="1841",NAME="wlanap_AC54"
#Num 4
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="2001",ATTRS{idProduct}=="3315",NAME="wlanap_DWA182"
#Num5
SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="0e8d",ATTRS{idProduct}=="7961",NAME="wlanap_CF953AX"

Logs from previous boot that ultimately hanged

Απρ 22 02:48:42.215565 kitana kernel: Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
Απρ 22 02:48:42.242930 kitana bluetoothd[2081]: Bluetooth daemon 5.66
Απρ 22 02:48:42.249272 kitana systemd[1]: Started Bluetooth service.
Απρ 22 02:48:42.249910 kitana systemd[1]: Reached target Bluetooth Support.
Απρ 22 02:48:42.250864 kitana bluetoothd[2081]: Starting SDP server
Απρ 22 02:48:42.255475 kitana bluetoothd[2081]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled
Απρ 22 02:48:42.255500 kitana bluetoothd[2081]: src/plugin.c:plugin_init() Failed to init vcp plugin
Απρ 22 02:48:42.255513 kitana bluetoothd[2081]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
Απρ 22 02:48:42.255523 kitana bluetoothd[2081]: src/plugin.c:plugin_init() Failed to init mcp plugin
Απρ 22 02:48:42.255533 kitana bluetoothd[2081]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
Απρ 22 02:48:42.255543 kitana bluetoothd[2081]: src/plugin.c:plugin_init() Failed to init bap plugin
Απρ 22 02:48:42.275340 kitana kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Απρ 22 02:48:42.275531 kitana kernel: Bluetooth: BNEP filters: protocol multicast
Απρ 22 02:48:42.275634 kitana kernel: Bluetooth: BNEP socket layer initialized
Απρ 22 02:48:42.275949 kitana dbus-daemon[312]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.13' (uid=0 pid=2081 comm="/usr/lib/bluetooth/bluetoothd")
Απρ 22 02:48:42.276795 kitana bluetoothd[2081]: Bluetooth management interface 1.22 initialized
Απρ 22 02:48:42.285378 kitana kernel: Bluetooth: hci0: AOSP extensions version v1.00
Απρ 22 02:48:42.285556 kitana kernel: Bluetooth: hci0: AOSP quality report is supported
Απρ 22 02:48:42.285618 kitana kernel: Bluetooth: MGMT ver 1.22
Απρ 22 02:48:42.298724 kitana kernel: NET: Registered PF_ALG protocol family
Απρ 22 02:48:42.312821 kitana systemd[1]: Starting Hostname Service...
Απρ 22 02:48:42.368685 kitana kernel: mt7921u 2-2:1.3: WM Firmware Version: ____010000, Build Time: 20230302150956
Απρ 22 02:48:42.395365 kitana dbus-daemon[312]: [system] Successfully activated service 'org.freedesktop.hostname1'
Απρ 22 02:48:42.395618 kitana systemd[1]: Started Hostname Service.
Απρ 22 02:48:43.995371 kitana kernel: mt7921u 2-2:1.3 wlanap_CF953AX: renamed from wlan0
Απρ 22 02:48:44.028960 kitana systemd-networkd[238]: wlan0: Interface name change detected, renamed to wlanap_CF953AX.
Απρ 22 02:48:46.544483 kitana ModemManager[361]: <info>  [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:15.0/usb2/2-2': not supported by any plugin
Απρ 22 02:48:48.992149 kitana systemd[1]: systemd-rfkill.service: Deactivated successfully.
Απρ 22 02:49:03.012952 kitana systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Απρ 22 02:49:03.568602 kitana systemd-networkd[238]: wlanap_CF953AX: Link UP
Απρ 22 02:49:03.569598 kitana hostapd[2114]: wlanap_CF953AX: interface state UNINITIALIZED->COUNTRY_UPDATE
Απρ 22 02:49:03.572020 kitana kernel: br0: port 2(wlanap_CF953AX) entered blocking state
Απρ 22 02:49:03.572263 kitana kernel: br0: port 2(wlanap_CF953AX) entered disabled state
Απρ 22 02:49:03.572729 kitana kernel: device wlanap_CF953AX entered promiscuous mode
Απρ 22 02:49:12.429326 kitana systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Απρ 22 02:49:14.582570 kitana hostapd[2114]: wlanap_CF953AX: interface state COUNTRY_UPDATE->HT_SCAN
Απρ 22 02:49:14.608260 kitana systemd-networkd[238]: wlanap_CF953AX: Gained carrier
Απρ 22 02:49:14.609044 kitana kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlanap_CF953AX: link becomes ready
Απρ 22 02:49:14.609105 kitana kernel: br0: port 2(wlanap_CF953AX) entered blocking state
Απρ 22 02:49:14.609148 kitana kernel: br0: port 2(wlanap_CF953AX) entered forwarding state
Απρ 22 02:49:14.690149 kitana hostapd[2114]: wlanap_CF953AX: interface state HT_SCAN->ENABLED
Απρ 22 02:49:14.690149 kitana hostapd[2114]: wlanap_CF953AX: AP-ENABLED
Απρ 22 02:49:15.838858 kitana systemd-networkd[238]: wlanap_CF953AX: Gained IPv6LL
Απρ 22 02:49:36.020243 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.11: authenticated
Απρ 22 02:49:36.020347 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.11: authenticated
Απρ 22 02:49:36.027999 kitana hostapd[2114]: wlanap_CF953AX: STA-OPMODE-N_SS-CHANGED 6a:a5:dc:14:2e:5a 2
Απρ 22 02:49:36.028375 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.11: associated (aid 1)
Απρ 22 02:49:36.028383 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.11: associated (aid 1)
Απρ 22 02:49:36.143190 kitana hostapd[2114]: wlanap_CF953AX: AP-STA-CONNECTED 6a:a5:dc:14:2e:5a
Απρ 22 02:49:36.143707 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a RADIUS: starting accounting session E75D5598CFA4D260
Απρ 22 02:49:36.143707 kitana hostapd[2114]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a WPA: pairwise key handshake completed (RSN)
Απρ 22 02:49:36.143707 kitana hostapd[2114]: wlanap_CF953AX: EAPOL-4WAY-HS-COMPLETED 6a:a5:dc:14:2e:5a
Απρ 22 02:49:36.257522 kitana kernel: skbuff: skb_under_panic: text:ffffffffc1973569 len:658 put:4 head:ffff9d6419977c00 data:ffff9d6419977bfc tail:0x28e end:0x2c0 dev:wlanap_CF953AX
Απρ 22 02:49:36.257882 kitana kernel: ------------[ cut here ]------------
Απρ 22 02:49:36.266336 kitana kernel: kernel BUG at net/core/skbuff.c:121!

In another try some more information appeared in dmesg, so feedback from Kernel varies, in some tries I receive more info, in other tries I may receive nothing.

# Hostapd
Απρ 23 18:51:29 kitana systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Απρ 23 18:51:29 kitana hostapd[54273]: wlanap_CF953AX: interface state UNINITIALIZED->COUNTRY_UPDATE
Απρ 23 18:51:41 kitana hostapd[54273]: wlanap_CF953AX: interface state COUNTRY_UPDATE->ENABLED
Απρ 23 18:51:41 kitana hostapd[54273]: wlanap_CF953AX: AP-ENABLED
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff IEEE 802.11: authentication OK (open system)
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff MLME: MLME-AUTHENTICATE.indication(60:7e:a4:27:50:ff, OPEN_SYSTEM)
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff MLME: MLME-DELETEKEYS.request(60:7e:a4:27:50:ff)
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff IEEE 802.11: authentication OK (open system)
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff MLME: MLME-AUTHENTICATE.indication(60:7e:a4:27:50:ff, OPEN_SYSTEM)
Απρ 23 18:51:45 kitana hostapd[54273]: wlanap_CF953AX: STA 60:7e:a4:27:50:ff MLME: MLME-DELETEKEYS.request(60:7e:a4:27:50:ff)

# dmesg
[93272.762055] IPv6: ADDRCONF(NETDEV_CHANGE): wlanap_CF953AX: link becomes ready
[93272.762133] br0: port 2(wlanap_CF953AX) entered blocking state
[93272.762139] br0: port 2(wlanap_CF953AX) entered forwarding state
[93277.925530] skbuff: skb_under_panic: text:ffffffffc1160569 len:658 put:4 head:ffff9cd4f699e400 data:ffff9cd4f699e3fc tail:0x28e end:0x2c0 dev:wlanap_CF953AX
[93277.925709] ------------[ cut here ]------------
[93277.925711] kernel BUG at net/core/skbuff.c:121!
[93277.925763] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[93277.930923] CPU: 3 PID: 53886 Comm: mt76-tx phy5 Tainted: G           OE      6.2.12-1-MANJARO #1 65c3d4b13cb1741ad3f1b151a7c6dadccd1a1003
[93277.931035] Hardware name: Intel Corporation NUC6CAYH/NUC6CAYB, BIOS AYAPLCEL.86A.0068.2021.0318.1138 03/18/2021
[93277.931124] RIP: 0010:skb_panic+0x48/0x50
[93277.931168] Code: 4f 70 50 8b 87 c0 00 00 00 50 8b 87 bc 00 00 00 50 ff b7 d0 00 00 00 4c 8b 8f c8 00 00 00 48 c7 c7 30 16 0b b8 e8 c8 13 67 ff <0f> 0b 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90

The same info as above in picture

image

ip a (before starting hostapd, thats why it is DOWN)

6: wlanap_CF953AX: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether e0:e1:a9:36:5a:63 brd ff:ff:ff:ff:ff:ff
    altname wlp0s21f0u2i3

Tested a multitude of configs with exact same result, indicatively

country_code=FM
interface=wlanap_CF953AX
bridge=br0
ssid=killing_technology
bssid=d0:37:45:96:50:51
wpa_passphrase=XXXXXXXXXXXXXXXXX
hw_mode=a
channel=36
chanlist=36
vht_oper_chwidth=1
he_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
he_oper_centr_freq_seg0_idx=42
country_code=US
ieee80211d=1
driver=nl80211
logger_syslog=1
logger_syslog_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
beacon_int=100
dtim_period=2
multicast_to_unicast=0
tx_queue_data2_burst=2.0
uapsd_advertisement_enabled=1
utf8_ssid=1
multi_ap=0
bss_load_update_period=60
chan_util_avg_period=600
disassoc_low_ack=1
skip_inactivity_poll=0
preamble=1
auth_algs=3
macaddr_acl=0
ignore_broadcast_ssid=0
okc=1
wpa=2
wpa_pairwise=CCMP CCMP-256
wpa_key_mgmt=WPA-PSK
ieee80211w=1
sae_require_mfp=1
ieee80211n=1
wmm_enabled=1
ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935]
ieee80211ac=1
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][SU-BEAMFORMEE][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][BF-ANTENNA-4][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]
ieee80211ax=1
he_bss_color=37
he_default_pe_duration=4
he_rts_threshold=1023
country_code=FM
interface=wlanap_CF953AX
bridge=br0
driver=nl80211
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=killing_technology
bssid=d0:37:45:96:50:51
wpa_passphrase=XXXXXXXXXXXX
hw_mode=g
channel=6
ieee80211n=1
ieee80211d=1
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=1
ctrl_interface=/var/run/hostapd_CF953AX

iw list

Wiphy phy2
    wiphy index: 2
    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: managed
            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 
        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 (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 
        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 (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] (30.0 dBm)
            * 2417 MHz [2] (30.0 dBm)
            * 2422 MHz [3] (30.0 dBm)
            * 2427 MHz [4] (30.0 dBm)
            * 2432 MHz [5] (30.0 dBm)
            * 2437 MHz [6] (30.0 dBm)
            * 2442 MHz [7] (30.0 dBm)
            * 2447 MHz [8] (30.0 dBm)
            * 2452 MHz [9] (30.0 dBm)
            * 2457 MHz [10] (30.0 dBm)
            * 2462 MHz [11] (30.0 dBm)
            * 2467 MHz [12] (disabled)
            * 2472 MHz [13] (disabled)
            * 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
        VHT extended NSS: supported
        HE Iftypes: managed
            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 
        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
        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 
        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
        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] (24.0 dBm)
            * 5200 MHz [40] (24.0 dBm)
            * 5220 MHz [44] (24.0 dBm)
            * 5240 MHz [48] (24.0 dBm)
            * 5260 MHz [52] (24.0 dBm) (radar detection)
            * 5280 MHz [56] (24.0 dBm) (radar detection)
            * 5300 MHz [60] (24.0 dBm) (radar detection)
            * 5320 MHz [64] (24.0 dBm) (radar detection)
            * 5500 MHz [100] (24.0 dBm) (radar detection)
            * 5520 MHz [104] (24.0 dBm) (radar detection)
            * 5540 MHz [108] (24.0 dBm) (radar detection)
            * 5560 MHz [112] (24.0 dBm) (radar detection)
            * 5580 MHz [116] (24.0 dBm) (radar detection)
            * 5600 MHz [120] (24.0 dBm) (radar detection)
            * 5620 MHz [124] (24.0 dBm) (radar detection)
            * 5640 MHz [128] (24.0 dBm) (radar detection)
            * 5660 MHz [132] (24.0 dBm) (radar detection)
            * 5680 MHz [136] (24.0 dBm) (radar detection)
            * 5700 MHz [140] (24.0 dBm) (radar detection)
            * 5720 MHz [144] (24.0 dBm) (radar detection)
            * 5745 MHz [149] (30.0 dBm)
            * 5765 MHz [153] (30.0 dBm)
            * 5785 MHz [157] (30.0 dBm)
            * 5805 MHz [161] (30.0 dBm)
            * 5825 MHz [165] (30.0 dBm)
            * 5845 MHz [169] (disabled)
            * 5865 MHz [173] (disabled)
    Band 4:
        HE Iftypes: managed
            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 
        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
        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 
        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
        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
         * set_sar_specs
    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 } <= 2, #{ AP } <= 1,
           total <= 2, #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 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
        * [ BEACON_RATE_HE ]: HE beacon rate support (AP/mesh)
morrownr commented 1 year ago

I'm pondering whether the following patch is applicable to your problem:

https://patchwork.kernel.org/project/linux-wireless/patch/20230420192451.28814-1-kernel@mattwhitlock.name/

The author, @whitslack , is a user here.

sektorhybrid commented 1 year ago

@morrownr recompiled the module in my NUC box with https://github.com/whitslack 's patch and I am up and running without issue in 4G, the culprit seems to be in that direction. I will leave it as is to test its stability and report back after a while.

No hangs

Απρ 22 02:08:44 kitana systemd[1]: hostapd@wlanap_CF953AX.service: Deactivated successfully.
Απρ 22 02:11:01 kitana systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Απρ 22 02:11:02 kitana hostapd[4311]: wlanap_CF953AX: interface state UNINITIALIZED->COUNTRY_UPDATE
Απρ 22 02:11:13 kitana hostapd[4311]: wlanap_CF953AX: interface state COUNTRY_UPDATE->HT_SCAN
Απρ 22 02:11:13 kitana hostapd[4311]: wlanap_CF953AX: interface state HT_SCAN->ENABLED
Απρ 22 02:11:13 kitana hostapd[4311]: wlanap_CF953AX: AP-ENABLED
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: AP-STA-CONNECTED 6a:a5:dc:14:2e:5a
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.1X: authorizing port
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a RADIUS: starting accounting session A0D6D7E6A439F024
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a WPA: pairwise key handshake completed (RSN)
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: EAPOL-4WAY-HS-COMPLETED 6a:a5:dc:14:2e:5a
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a IEEE 802.1X: authorizing port
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a RADIUS: starting accounting session A0D6D7E6A439F024
Απρ 24 23:54:21 kitana hostapd[23330]: wlanap_CF953AX: STA 6a:a5:dc:14:2e:5a WPA: pairwise key handshake completed (RSN)
.........
.........

If you need extra testing from my side with various configurations feel free to ask and thanks for your support.

morrownr commented 1 year ago

I will leave it as is to test its stability and report back after a while.

Interesting. I look forward to your report. @whitslack is the one who needs the report as he could add additional info to his patch if a version 2 is necessary. It will be interesting what Felix has to say about the patch.

I was unable to duplicate the problem when @whitslack brought it up. I am of the opinion that there are differences in how I set up AP mode and that is the reason I am not seeing the issue. If you can take a look and isolate the differences in your setup and mind, that could provide some clues. The guide I made and use is located:

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

sektorhybrid commented 1 year ago

@morrownr (and of course @whitslack in case it helps you, thanks for the fix) I am leaving here my current configuration notes until I read your instructions page and compare them with my setup. There might be other configs that might be missing from my side, I 'll report them after my reading session. It is indeed interesting, and from my side an opportunity to learn more.

##################################### ll /etc/systemd/network/
total 24K
drwxr-xr-x 3 root root 4,0K Απρ  12 00:30 .
drwxr-xr-x 6 root root 4,0K Απρ   8 21:01 ..
-rw-r--r-- 1 root root   30 Απρ  10 00:51 10-br0.netdev
-rw-r--r-- 1 root root  125 Απρ  10 01:57 13-eth0-bridged.network
-rw-r--r-- 1 root root  271 Απρ  10 02:16 15-br0.network

##################################### iw dev
phy#
    Interface wlanap_CF953AX
        ifindex 10
        wdev 0x700000001
        addr d0:37:45:96:50:51
        ssid killing_technology_4G
        type AP
        channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz
        txpower 3.00 dBm
        multicast TXQ:
            qsz-byt qsz-pkt flows   drops   marks   overlmt hashcol tx-bytes    tx-packets
            0   0   856988  0   0   0   2   81538690        859415

##################################### hostapd -v
hostapd v2.10
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2022, Jouni Malinen <j@w1.fi> and contributors

##################################### systemctl status dhcpcd
○ dhcpcd.service - dhcpcd on all interfaces
     Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; preset: disabled)
     Active: inactive (dead)

##################################### systemctl status systemd-networkd
● systemd-networkd.service - Network Configuration
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; preset: enabled)
     Active: active (running) since Mon 2023-04-24 22:06:37 EEST; 22h ago
TriggeredBy: ● systemd-networkd.socket
       Docs: man:systemd-networkd.service(8)
   Main PID: 238 (systemd-network)
     Status: "Processing requests..."
      Tasks: 1 (limit: 4487)
     Memory: 3.7M
        CPU: 1.443s
     CGroup: /system.slice/systemd-networkd.service
             └─238 /usr/lib/systemd/systemd-networkd

##################################### sudo systemctl status NetworkManager
○ NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:NetworkManager(8)

##################################### rfkill
ID TYPE      DEVICE      SOFT      HARD
21 bluetooth hci0   unblocked unblocked
22 wlan      phy7   unblocked unblocked

##################################### [/etc/default/grub]
...
GRUB_CMDLINE_LINUX_DEFAULT="udev.log_priority=3 net.ifnames=0 audit=0"
...

##################################### [/etc/systemd/network/10-br0.netdev]
[NetDev]
Name=br0
Kind=bridge

##################################### [/etc/systemd/network/13-eth0-bridged.network]
[Match]
Name=eth0
[Link]
RequiredForOnline=no
[Network]
Bridge=br0

##################################### [/etc/systemd/network/15-br0.network]
[Match]
Name=br0
[Network]
Address=192.168.1.10/24
Gateway=192.168.1.1
DNS=1.1.1.1
LinkLocalAddressing=ipv4
[Route]
Gateway=192.168.1.1
Destination=192.168.1.0/24
GatewayOnlink=yes

##################################### [/etc/hostapd/hostapd_wlanap_CF953AX.conf]
country_code=FM
interface=wlanap_CF953AX
bridge=br0
driver=nl80211
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid=killing_technology_4G
bssid=XX:XX:XX:XX:XX:XX
wpa_passphrase=XXXXXXXXXXXXXXXXX
hw_mode=g
channel=6
ieee80211n=1
ieee80211d=1
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=1
ctrl_interface=/var/run/hostapd_CF953AX

##################################### [/usr/lib/systemd/system/hostapd@.service]
[Unit]
Description=Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
After=network.target
[Service]
ExecStart=/usr/bin/hostapd /etc/hostapd/hostapd_%i.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=4
[Install]
WantedBy=multi-user.target

Everything is still up and running without issue and seems stable. I have a minidlna server in an Rpi2 connected through switch to the subnet (1G), the first graph's STA is my current STA's dbms (one wall between CF953AX AP and 00:51:ed:00:16:82, the rest of STAs are closer to AP). The other two graphs show utilization from a yesterday's session, minidlna streaming 1080p movie through AP to the STA for a couple of hours.

image

morrownr commented 1 year ago

I am leaving here my current configuration notes until I read your instructions page and compare them with my setup.

That is fine. I need to do a fresh round of testing on my guide soon since there was a recent RasPiOS release. I can look at this while doing the new setup.

I suspect the issue may involve my use of systemd-network. My guide is the result of long term testing to get the most stable AP setup possible. I don't care what it is based on as long as it is ultra stable and fast.

Hopefully the patch is what was needed and can proceed on into the kernel.