Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(solved) Unable to create AP on 5ghz TEROW ROW02CD RPI4 Alpine Linux #39

Open
desultory-zz opened this issue Jan 12, 2022 · 28 comments
Open

Comments

@desultory-zz
Copy link

desultory-zz commented Jan 12, 2022

I purchased this device: https://www.amazon.com/dp/B086L6TR6G?psc=1

Dmesg output:

[ 1119.652447] usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd
[ 1119.673827] usb 2-2: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[ 1119.673849] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 1119.673863] usb 2-2: Product: Wireless
[ 1119.673875] usb 2-2: Manufacturer: MediaTek Inc.
[ 1119.673888] usb 2-2: SerialNumber: 000000000
[ 1119.809410] usb 2-2: reset SuperSpeed USB device number 4 using xhci_hcd
[ 1119.831002] mt76x2u 2-2:1.0: ASIC revision: 76120044
[ 1119.863848] mt76x2u 2-2:1.0: ROM patch build: 20141115060606a
[ 1120.028074] mt76x2u 2-2:1.0: Firmware Version: 0.0.00
[ 1120.028102] mt76x2u 2-2:1.0: Build: 1
[ 1120.028114] mt76x2u 2-2:1.0: Build Time: 201507311614____
[ 1120.840104] ieee80211 phy4: Selected rate control algorithm 'minstrel_ht'

Iw list output:

Wiphy phy4
        wiphy index: 4
        max # scan SSIDs: 4
        max scan IEs length: 2243 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        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)
                * 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:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x1ff
                        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: 3839 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
                Bitrates (non-HT):
                        * 1.0 Mbps (short preamble supported)
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        Band 2:
                Capabilities: 0x1ff
                        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: 3839 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 (0x318001b0):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        TX STBC
                        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
                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] (19.0 dBm) (no IR)
                        * 5200 MHz [40] (19.0 dBm) (no IR)
                        * 5220 MHz [44] (19.0 dBm) (no IR)
                        * 5240 MHz [48] (19.0 dBm) (no IR)
                        * 5260 MHz [52] (19.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (19.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (19.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (19.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (19.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (19.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (19.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (19.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (19.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (19.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (19.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (19.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (19.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (19.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (19.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (19.0 dBm) (no IR, radar detection)
                        * 5745 MHz [149] (19.0 dBm) (no IR)
                        * 5765 MHz [153] (19.0 dBm) (no IR)
                        * 5785 MHz [157] (19.0 dBm) (no IR)
                        * 5805 MHz [161] (19.0 dBm) (no IR)
                        * 5825 MHz [165] (19.0 dBm) (no IR)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
        Supported commands:
                 * LNEW_INTERFACE
                 * LSET_INTERFACE
                 * LNEW_KEY
                 * LSTART_AP
                 * LNEW_STATION
                 * LNEW_MPATH
                 * LSET_MESH_CONFIG
                 * LSET_BSS
                 * LAUTHENTICATE
                 * LASSOCIATE
                 * LDEAUTHENTICATE
                 * LDISASSOCIATE
                 * LJOIN_IBSS
                 * LJOIN_MESH
                 * LREMAIN_ON_CHANNEL
                 * LSET_TX_BITRATE_MASK
                 * LFRAME
                 * LFRAME_WAIT_CANCEL
                 * LSET_WIPHY_NETNS
                 * LSET_CHANNEL
                 * LTDLS_MGMT
                 * LTDLS_OPER
                 * LPROBE_CLIENT
                 * LSET_NOACK_MAP
                 * LREGISTER_BEACONS
                 * LSTART_P2P_DEVICE
                 * LSET_MCAST_RATE
                 * LCONNECT
                 * LDISCONNECT
                 * LCHANNEL_SWITCH
                 * LSET_QOS_MAP
                 * LSET_MULTICAST_TO_UNICAST
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 2,
                   total <= 2, #channels <= 1, STA/AP BI must match
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports low priority scan.
        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
        Device supports active monitor (which will ACK incoming frames)
        Device supports configuring vdev MAC-addr on create.
        max # scan plans: 1
        max scan plan interval: -1
        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:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ 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)
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ DEL_IBSS_STA ]: deletion of IBSS station support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support

Hostapd conf, HT and VHT params may be wrong but it refuses to broadcast on 5ghz bands:

driver=nl80211

country_code=US
wmm_enabled=1

ieee80211d=1
ieee80211h=1

hw_mode=a
ieee80211n=1
require_ht=1
ieee80211ac=1
require_vht=1

vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42
#channel=149
#vht_oper_centr_freq_seg0_idx=155

#ht_capab=[RX-LDPC][HT40-][HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]
#vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7][SU-BEAMFORMER][DSSS_CCK-40]

#ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-7935][DSSS_CCK-40]
ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-3839]
vht_capab=[MAX-MPDU-3895][RX-LDPC][SHORT-GI-80][TX-STBC]

Hostapd output:

random: Trying to read entropy from /dev/random
Configuration file: hostapd_AC.conf
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlan2 in phy phy5
nl80211: Set mode ifindex 14 iftype 3 (AP)
nl80211: Failed to set interface 14 to mode 3: -16 (Resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 14 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x7faa4d18b0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x7faa4d18b0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=0503
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7faa4d18b0 match=7f
rfkill: initial event: idx=5 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 14 (ifidx_reason -1)
nl80211: if_indices[16]: 14(-1)
phy: phy5
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan2: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code US
Continue interface setup after channel list update
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=14 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan2 is up
RTM_NEWLINK: ifi_index=14 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-56 fc=0x40 seq_ctrl=0x2230 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-48 fc=0x40 seq_ctrl=0x2120 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-43 fc=0x40 seq_ctrl=0x2110 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-38 fc=0x40 seq_ctrl=0x2e40 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-35 fc=0x40 seq_ctrl=0x2e50 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-51 fc=0x40 seq_ctrl=0x2130 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-37 fc=0x40 seq_ctrl=0x2e80 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-43 fc=0x40 seq_ctrl=0x21f0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-55 fc=0x40 seq_ctrl=0x2300 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-47 fc=0x40 seq_ctrl=0x2200 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-58 fc=0x40 seq_ctrl=0x2310 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-49 fc=0x40 seq_ctrl=0x2200 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-43 fc=0x40 seq_ctrl=0x21f0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=60:03:08:d3:29:88 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-66 fc=0x40 seq_ctrl=0xf50 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=140
nl80211: send_mlme - da= 60:03:08:d3:29:88 noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-45 fc=0x40 seq_ctrl=0x2200 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-45 fc=0x40 seq_ctrl=0x2260 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-47 fc=0x40 seq_ctrl=0x2270 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-47 fc=0x40 seq_ctrl=0x2270 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-44 fc=0x40 seq_ctrl=0x2260 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-52 fc=0x40 seq_ctrl=0x2280 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-46 fc=0x40 seq_ctrl=0x2270 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-56 fc=0x40 seq_ctrl=0x23e0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-55 fc=0x40 seq_ctrl=0x23f0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
Channel list update timeout - try to continue anyway
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)

nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 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[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan2: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan2: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan2: interface state COUNTRY_UPDATE->DISABLED
wlan2: AP-DISABLED
hostapd_interface_deinit_free(0x7faa576020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7faa576020)
wlan2: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan2
wlan2: 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 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
wlan2: AP-DISABLED
hostapd_cleanup(hapd=0x7faa575040 (wlan2))
wlan2: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan2 wasn't started
hostapd_interface_deinit_free: driver=0x5558709bb0 drv_priv=0x7faa3fbe50 -> hapd_deinit
nl80211: deinit ifname=wlan2 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=14)
netlink: Operstate: ifindex=14 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 14 iftype 2 (STATION)
nl80211: Failed to set interface 14 to mode 2: -16 (Resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 14 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down
nl80211: Teardown AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Unsubscribe mgmt frames handle 0x7f22c59039 (AP teardown)
hostapd_interface_free(0x7faa576020)
hostapd_interface_free: free hapd 0x7faa575040
hostapd_cleanup_iface(0x7faa576020)
hostapd_cleanup_iface_partial(0x7faa576020)
hostapd_cleanup_iface: free iface=0x7faa576020

I can see in iw list that this device apparently does not support broadcasting on any 5ghz bands. I was using this alfa card but I was getting really poor performance and the network would have to be reset once a day or so when the card crashed https://www.amazon.com/gp/product/B01MZD7Z76?psc=1

@morrownr
Copy link
Owner

Hi @desultory

I can see in iw list that this device apparently does not support broadcasting on any 5ghz bands.

It supports broadcasting 5 GHz.

I have a repo for the 7612u chipset:

https://github.com/morrownr/7612u

At that repo is the following file which may contain a lot of info that might help:

https://github.com/morrownr/7612u/blob/main/Bridged_Wireless_Access_Point.md

I can see that the following lines in your hostapd.conf have problems: (these are for 5GHz and are ones that should work)

ht_capab=[HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40]

vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

hostapd can be very picky. In your vht_capab line, I see [HTC-VHT]. That is not a correct entry for this adapter. In fact, hostapd will not come up if that entry is included.

Let me know how it goes.

Regards

@desultory-zz
Copy link
Author

desultory-zz commented Jan 13, 2022

I tried those hostapd config lines and got this output, I think I updated my config in an edit between when you last read, are you saying that I need to compile your drivers for full AP mode? That is fine but I was just under the impression it would be plug and play.

random: Trying to read entropy from /dev/random
Configuration file: hostapd_AC.conf
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlan2 in phy phy5
nl80211: Set mode ifindex 14 iftype 3 (AP)
nl80211: Failed to set interface 14 to mode 3: -16 (Resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 14 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x7f9b5188b0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x7f9b5188b0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=0503
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f9b5188b0 match=7f
rfkill: initial event: idx=5 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 14 (ifidx_reason -1)
nl80211: if_indices[16]: 14(-1)
phy: phy5
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan2: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code US
Continue interface setup after channel list update
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=14 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Ignore interface down event since interface wlan2 is up
RTM_NEWLINK: ifi_index=14 ifname=wlan2 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-55 fc=0x40 seq_ctrl=0x2790 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-44 fc=0x40 seq_ctrl=0xccd0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-44 fc=0x40 seq_ctrl=0xcd00 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan2
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-55 fc=0x40 seq_ctrl=0x2870 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
Channel list update timeout - try to continue anyway
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm

nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 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[NO_IR] 2472[NO_IR] 2484[NO_IR]

nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]

nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan2: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan2: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan2: interface state COUNTRY_UPDATE->DISABLED
wlan2: AP-DISABLED
hostapd_interface_deinit_free(0x7f9b5bd020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7f9b5bd020)
wlan2: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan2
wlan2: 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 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
wlan2: AP-DISABLED
hostapd_cleanup(hapd=0x7f9b5bc040 (wlan2))
wlan2: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan2 wasn't started
hostapd_interface_deinit_free: driver=0x5593889bb0 drv_priv=0x7f9b442e50 -> hapd_deinit
nl80211: deinit ifname=wlan2 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=14)
netlink: Operstate: ifindex=14 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 14 iftype 2 (STATION)
nl80211: Failed to set interface 14 to mode 2: -16 (Resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 14 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down
nl80211: Teardown AP(wlan2) - device_ap_sme=0 use_monitor=0
nl80211: Unsubscribe mgmt frames handle 0x7f13d90039 (AP teardown)
hostapd_interface_free(0x7f9b5bd020)
hostapd_interface_free: free hapd 0x7f9b5bc040
hostapd_cleanup_iface(0x7f9b5bd020)
hostapd_cleanup_iface_partial(0x7f9b5bd020)
hostapd_cleanup_iface: free iface=0x7f9b5bd020

config file:

nterface=wlan2
driver=nl80211

country_code=US
wmm_enabled=1

ieee80211d=1
ieee80211h=1

hw_mode=a
ieee80211n=1
require_ht=1
ieee80211ac=1
require_vht=1

vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42
#channel=149
#vht_oper_centr_freq_seg0_idx=155

#ht_capab=[RX-LDPC][HT40-][HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]
#vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7][SU-BEAMFORMER][DSSS_CCK-40]

#ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-7935][DSSS_CCK-40]
#ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-3839]
#vht_capab=[MAX-MPDU-3895][RX-LDPC][SHORT-GI-80][TX-STBC]

ht_capab=[HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40]
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

@morrownr
Copy link
Owner

morrownr commented Jan 13, 2022

Hi again Zen

are you saying that I need to compile your drivers for full AP mode? That is fine but I was just under the impression it would be plug and play.

Well, I don't have any drivers for 7612u. My repo is informational only.

Here is the repo for the 7612u:

https://github.com/torvalds/linux/tree/master/drivers/net/wireless/mediatek

It is run by a guy named Linus Torvalds. You may have heard of him.

Which distro and kernel version are you running? Unless it is very old, your adapter is plug and play.

If what you posted above for your hostapd.conf is all there is in the file, then we have a big problem because you are missing a lot of lines that are needed.

What I recommend is that you go to...

https://github.com/morrownr/7612u/blob/main/Bridged_Wireless_Access_Point.md

...and start looking at the details. That file provides an example hostapd.conf for both bands. You have not said exactly what you are doing but that file should provide a lot of info.

Regards

@desultory-zz
Copy link
Author

that is not my entire hostapd file, I have not included the bottom section which contains my ssid info and such. I know that works. I'm using the latest version of alpine linux. I used your repo before with the rtl8814au chipset on an alfa card and it was very helpful. I purchased the TEROW ROW02CD because you recommended it and it for whatever reason, it seems to not want to support 5ghz mode.

@desultory-zz
Copy link
Author

desultory-zz commented Jan 13, 2022

I think this is the key area to pay attention to in the hostapd output:

Channel list update timeout - try to continue anyway
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 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[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan1: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan1: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan1: interface state COUNTRY_UPDATE->DISABLED
wlan1: AP-DISABLED
hostapd_interface_deinit_free(0x7f8994f020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7f8994f020)
wlan1: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan1

Hostapd conf without ssid and password:

interface=wlan1
driver=nl80211

country_code=US
wmm_enabled=1

ieee80211d=1
ieee80211h=1

hw_mode=a
ieee80211n=1
require_ht=1
ieee80211ac=1
require_vht=1

vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42
#channel=149
#vht_oper_centr_freq_seg0_idx=155

#ht_capab=[RX-LDPC][HT40-][HT40+][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]
#vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7][SU-BEAMFORMER][DSSS_CCK-40]

#ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-7935][DSSS_CCK-40]
#ht_capab=[RX-LDPC][HT40-][HT40+][MAX-AMSDU-3839]
#vht_capab=[MAX-MPDU-3895][RX-LDPC][SHORT-GI-80][TX-STBC]

ht_capab=[HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40]
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

ignore_broadcast_ssid=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
rsn_pairwise=CCMP

uname -a:

Linux router 5.15.4-0-rpi4 #1-Alpine SMP PREEMPT Mon Nov 22 10:43:31 UTC 2021 aarch64 Linux

@desultory-zz
Copy link
Author

For reference, I am also using a Asus USB N53 with this config and it works fine:

interface=wlan0
driver=nl80211

country_code=US
wmm_enabled=1

ieee80211d=1
#ieee80211h=1

hw_mode=g
require_ht=1
ieee80211n=1
channel=7
ht_capab=[HT40-][RX-STBC1][SHORT-GI-40][SHORT-GI-20]

ignore_broadcast_ssid=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
rsn_pairwise=CCMP

@morrownr
Copy link
Owner

nl80211: Regulatory information - country=00

Is the country set in the OS? (I am not familiar with Alpine so will be not help there) However, I can tell you how to do it the RasPiOS.

To check:

$ iw reg get

Side note:
require_ht=1
require_vht=1

I don't use those lines. Just make sure understand what they do. I've seen folks have due to using those lines.

@desultory-zz
Copy link
Author

desultory-zz commented Jan 13, 2022

I ran iw reg set US and it appears the same in iw list and is doing the same thing:

random: Trying to read entropy from /dev/random
Configuration file: hostapd_AC.conf
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlan1 in phy phy15
nl80211: Set mode ifindex 21 iftype 3 (AP)
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x7f8c3ef8a0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x7f8c3ef8a0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=04
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=0501
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=0503
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=0504
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=08
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=09
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=0a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x7f8c3ef8a0 match=7f
rfkill: initial event: idx=15 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 21 (ifidx_reason -1)
nl80211: if_indices[16]: 21(-1)
phy: phy15
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code US
Continue interface setup after channel list update
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=21 ifname=wlan1 operstate=0 linkmode=0 ifi_family=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK: ifi_index=21 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-53 fc=0x40 seq_ctrl=0xa3a0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-56 fc=0x40 seq_ctrl=0xa3b0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-24 fc=0x40 seq_ctrl=0xfeb0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-26 fc=0x40 seq_ctrl=0xfec0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-29 fc=0x40 seq_ctrl=0xff10 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-29 fc=0x40 seq_ctrl=0xff20 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-46 fc=0x40 seq_ctrl=0x59e0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-48 fc=0x40 seq_ctrl=0x59f0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-43 fc=0x40 seq_ctrl=0x5a10 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-54 fc=0x40 seq_ctrl=0x5b30 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-56 fc=0x40 seq_ctrl=0x5b40 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-33 fc=0x40 seq_ctrl=0x130 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-34 fc=0x40 seq_ctrl=0x140 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-34 fc=0x40 seq_ctrl=0x190 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-34 fc=0x40 seq_ctrl=0x1a0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-58 fc=0x40 seq_ctrl=0xa480 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-58 fc=0x40 seq_ctrl=0xa490 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-45 fc=0x40 seq_ctrl=0x5ac0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-41 fc=0x40 seq_ctrl=0x5ae0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:83:6b bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-48 fc=0x40 seq_ctrl=0x5ad0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-25 fc=0x40 seq_ctrl=0x3b0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-25 fc=0x40 seq_ctrl=0x3c0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:84:2d:42 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-44 fc=0x40 seq_ctrl=0x5af0 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-29 fc=0x40 seq_ctrl=0x410 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-28 fc=0x40 seq_ctrl=0x420 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-31 fc=0x40 seq_ctrl=0x430 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=113
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-30 fc=0x40 seq_ctrl=0x440 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:b6:b0:ec bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-54 fc=0x40 seq_ctrl=0x5c10 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=50:e0:85:aa:88:0e bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-35 fc=0x40 seq_ctrl=0x630 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=91
nl80211: send_mlme - da= 50:e0:85:aa:88:0e noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
handle_probe_req: send failed
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-59 fc=0x40 seq_ctrl=0xa560 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlan1
nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=a8:bb:50:86:29:00 bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-58 fc=0x40 seq_ctrl=0xa570 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=49
Channel list update timeout - try to continue anyway
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 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[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan1: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan1: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan1: interface state COUNTRY_UPDATE->DISABLED
wlan1: AP-DISABLED
hostapd_interface_deinit_free(0x7f8c494020)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x7f8c494020)
wlan1: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan1
wlan1: 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 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=0
nl80211: send_frame -> send_frame_cmd
nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
wlan1: AP-DISABLED
hostapd_cleanup(hapd=0x7f8c493040 (wlan1))
wlan1: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_interface_deinit_free: driver=0x5555d49bb0 drv_priv=0x7f8c319e50 -> hapd_deinit
nl80211: deinit ifname=wlan1 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=21)
netlink: Operstate: ifindex=21 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 21 iftype 2 (STATION)
nl80211: Teardown AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Unsubscribe mgmt frames handle 0x7f04b67029 (AP teardown)
hostapd_interface_free(0x7f8c494020)
hostapd_interface_free: free hapd 0x7f8c493040
hostapd_cleanup_iface(0x7f8c494020)
hostapd_cleanup_iface_partial(0x7f8c494020)
hostapd_cleanup_iface: free iface=0x7f8c494020

hostapd conf:

interface=wlan1
driver=nl80211

country_code=US
wmm_enabled=1

ieee80211d=1
ieee80211h=1

hw_mode=a
ieee80211n=1
#require_ht=1
ieee80211ac=1
#require_vht=1

vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42

ht_capab=[HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40]
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]

ignore_broadcast_ssid=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
rsn_pairwise=CCMP

iw list:

Wiphy phy15
        wiphy index: 15
        max # scan SSIDs: 4
        max scan IEs length: 2243 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        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)
                * 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:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x1ff
                        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: 3839 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
                Bitrates (non-HT):
                        * 1.0 Mbps (short preamble supported)
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm) (no IR)
                        * 2472 MHz [13] (20.0 dBm) (no IR)
                        * 2484 MHz [14] (20.0 dBm) (no IR)
        Band 2:
                Capabilities: 0x1ff
                        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: 3839 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 (0x318001b0):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        RX LDPC
                        short GI (80 MHz)
                        TX STBC
                        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
                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] (19.0 dBm) (no IR)
                        * 5200 MHz [40] (19.0 dBm) (no IR)
                        * 5220 MHz [44] (19.0 dBm) (no IR)
                        * 5240 MHz [48] (19.0 dBm) (no IR)
                        * 5260 MHz [52] (19.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (19.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (19.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (19.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (19.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (19.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (19.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (19.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (19.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (19.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (19.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (19.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (19.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (19.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (19.0 dBm) (no IR, radar detection)
                        * 5720 MHz [144] (19.0 dBm) (no IR, radar detection)
                        * 5745 MHz [149] (19.0 dBm) (no IR)
                        * 5765 MHz [153] (19.0 dBm) (no IR)
                        * 5785 MHz [157] (19.0 dBm) (no IR)
                        * 5805 MHz [161] (19.0 dBm) (no IR)
                        * 5825 MHz [165] (19.0 dBm) (no IR)
                        * 5845 MHz [169] (disabled)
                        * 5865 MHz [173] (disabled)
        Supported commands:
                 * LNEW_INTERFACE
                 * LSET_INTERFACE
                 * LNEW_KEY
                 * LSTART_AP
                 * LNEW_STATION
                 * LNEW_MPATH
                 * LSET_MESH_CONFIG
                 * LSET_BSS
                 * LAUTHENTICATE
                 * LASSOCIATE
                 * LDEAUTHENTICATE
                 * LDISASSOCIATE
                 * LJOIN_IBSS
                 * LJOIN_MESH
                 * LREMAIN_ON_CHANNEL
                 * LSET_TX_BITRATE_MASK
                 * LFRAME
                 * LFRAME_WAIT_CANCEL
                 * LSET_WIPHY_NETNS
                 * LSET_CHANNEL
                 * LTDLS_MGMT
                 * LTDLS_OPER
                 * LPROBE_CLIENT
                 * LSET_NOACK_MAP
                 * LREGISTER_BEACONS
                 * LSTART_P2P_DEVICE
                 * LSET_MCAST_RATE
                 * LCONNECT
                 * LDISCONNECT
                 * LCHANNEL_SWITCH
                 * LSET_QOS_MAP
                 * LSET_MULTICAST_TO_UNICAST
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        valid interface combinations:
                 * #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 2,
                   total <= 2, #channels <= 1, STA/AP BI must match
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports low priority scan.
        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
        Device supports active monitor (which will ACK incoming frames)
        Device supports configuring vdev MAC-addr on create.
        max # scan plans: 1
        max scan plan interval: -1
        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:
                * [ VHT_IBSS ]: VHT-IBSS
                * [ RRM ]: RRM
                * [ 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)
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ DEL_IBSS_STA ]: deletion of IBSS station support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support

@morrownr
Copy link
Owner

This message is going through my ROW02CD. It is currently working as a 5 GHz AP on a RasPi4B running RasPiOS (32 bit). Setup is per the guide I posted earlier.

I am posting my $ iw list and the hostapd.conf that I am using. If you have a spare sd card, you might consider using the guide to make a setup like mine with the RasPiOS. If that works, that will rule out some issues and help confirm whether the adapter is working correctly. FYI: I set the guide up to where it is relatively easy to copy and paste things so it probably won't take as long as you think.

$ iw list
Wiphy phy1
	wiphy index: 1
	max # scan SSIDs: 4
	max scan IEs length: 2243 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	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)
		* 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:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
		 * P2P-client
		 * P2P-GO
	Band 1:
		Capabilities: 0x1ff
			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: 3839 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
		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] (23.0 dBm)
			* 2417 MHz [2] (23.0 dBm)
			* 2422 MHz [3] (23.0 dBm)
			* 2427 MHz [4] (23.0 dBm)
			* 2432 MHz [5] (23.0 dBm)
			* 2437 MHz [6] (23.0 dBm)
			* 2442 MHz [7] (23.0 dBm)
			* 2447 MHz [8] (23.0 dBm)
			* 2452 MHz [9] (23.0 dBm)
			* 2457 MHz [10] (23.0 dBm)
			* 2462 MHz [11] (23.0 dBm)
			* 2467 MHz [12] (23.0 dBm)
			* 2472 MHz [13] (23.0 dBm)
			* 2484 MHz [14] (disabled)
	Band 2:
		Capabilities: 0x1ff
			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: 3839 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 (0x318001b0):
			Max MPDU length: 3895
			Supported Channel Width: neither 160 nor 80+80
			RX LDPC
			short GI (80 MHz)
			TX STBC
			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
		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] (19.0 dBm)
			* 5200 MHz [40] (19.0 dBm)
			* 5220 MHz [44] (19.0 dBm)
			* 5240 MHz [48] (19.0 dBm)
			* 5260 MHz [52] (19.0 dBm) (radar detection)
			* 5280 MHz [56] (19.0 dBm) (radar detection)
			* 5300 MHz [60] (19.0 dBm) (radar detection)
			* 5320 MHz [64] (19.0 dBm) (radar detection)
			* 5500 MHz [100] (19.0 dBm) (radar detection)
			* 5520 MHz [104] (19.0 dBm) (radar detection)
			* 5540 MHz [108] (19.0 dBm) (radar detection)
			* 5560 MHz [112] (19.0 dBm) (radar detection)
			* 5580 MHz [116] (19.0 dBm) (radar detection)
			* 5600 MHz [120] (19.0 dBm) (radar detection)
			* 5620 MHz [124] (19.0 dBm) (radar detection)
			* 5640 MHz [128] (19.0 dBm) (radar detection)
			* 5660 MHz [132] (19.0 dBm) (radar detection)
			* 5680 MHz [136] (19.0 dBm) (radar detection)
			* 5700 MHz [140] (19.0 dBm) (radar detection)
			* 5720 MHz [144] (19.0 dBm) (radar detection)
			* 5745 MHz [149] (19.0 dBm)
			* 5765 MHz [153] (19.0 dBm)
			* 5785 MHz [157] (19.0 dBm)
			* 5805 MHz [161] (19.0 dBm)
			* 5825 MHz [165] (19.0 dBm)
			* 5845 MHz [169] (disabled)
			* 5865 MHz [173] (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
		 * set_wds_peer
		 * tdls_mgmt
		 * tdls_oper
		 * probe_client
		 * set_noack_map
		 * register_beacons
		 * start_p2p_device
		 * set_mcast_rate
		 * connect
		 * disconnect
		 * channel_switch
		 * set_qos_map
		 * set_multicast_to_unicast
	software interface modes (can always be added):
		 * AP/VLAN
		 * monitor
	valid interface combinations:
		 * #{ IBSS } <= 1, #{ managed, AP, mesh point, P2P-client, P2P-GO } <= 2,
		   total <= 2, #channels <= 1, STA/AP BI must match
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Device supports TX status socket option.
	Device supports HT-IBSS.
	Device supports SAE with AUTHENTICATE command
	Device supports low priority scan.
	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
	Device supports active monitor (which will ACK incoming frames)
	Device supports configuring vdev MAC-addr on create.
	max # scan plans: 1
	max scan plan interval: -1
	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:
		* [ VHT_IBSS ]: VHT-IBSS
		* [ RRM ]: RRM
		* [ 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)
		* [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
		* [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
		* [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
		* [ DEL_IBSS_STA ]: deletion of IBSS station support
		* [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
		* [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support

# /etc/hostapd/hostapd-5g.conf
# Documentation: https://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
# 2021-11-15

# SSID
ssid=myPI-5g-7612u
#ssid=myPI-5g-WPA3
# PASSPHRASE
wpa_passphrase=xxx
# Band: a = 5g (a/n/ac), g = 2g (b/g/n)
hw_mode=a
# Channel
channel=36
# Channel width
vht_oper_chwidth=1
# VHT center channel (chan + 6)
vht_oper_centr_freq_seg0_idx=42
# Country code
country_code=US
# Bridge interface
bridge=br0
# WiFi interface
#interface=wlxXXX
interface=wlxXXX
# nl80211 is used with all Linux mac80211 (in-kernel) and modern Realtek drivers
driver=nl80211
#ctrl_interface=/var/run/hostapd
#ctrl_interface_group=0

ieee80211d=1
# Enables support for 5GHz DFS channels
#ieee80211h=1

#beacon_int=100
#dtim_period=2
max_num_sta=32
macaddr_acl=0
#rts_threshold=2347
#fragm_threshold=2346
#send_probe_response=1

# security
# auth_algs=3 is required for WPA-3 SAE and WPA-3 SAE Transitional
auth_algs=1
ignore_broadcast_ssid=0
# wpa=2 is required for WPA2 and WPA3
wpa=2
#wpa_pairwise=CCMP
rsn_pairwise=CCMP
# only one wpa_key_mgmt= line should be active.
# wpa_key_mgmt=WPA-PSK is required for WPA2-AES
wpa_key_mgmt=WPA-PSK
# wpa_key_mgmt=SAE WPA-PSK is required for WPA3-AES Transitional
#wpa_key_mgmt=SAE WPA-PSK
# wpa_key_mgmt=SAE is required for WPA3-SAE
#wpa_key_mgmt=SAE
#wpa_group_rekey=1800
# ieee80211w=1 is required for WPA-3 SAE Transitional
# ieee80211w=2 is required for WPA-3 SAE
#ieee80211w=1
# if parameter is not set, 19 is the default value.
#sae_groups=19 20 21 25 26
# sae_require_mfp=1 is required for WPA-3 SAE Transitional
#sae_require_mfp=1
# if parameter is not 9 set, 5 is the default value.
#sae_anti_clogging_threshold=10

# Note: Capabilities can vary even between adapters with the same chipset.
#
# Note: Only one ht_capab= line and one vht_capab= should be active. The
# content of these lines is determined by the capabilities of your adapter.
#
# IEEE 802.11n
ieee80211n=1
wmm_enabled=1
#
# generic setting
#ht_capab=[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40]
#
# mt7612u - mt7610u
ht_capab=[HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40]
#
# rtl8812au - rtl8811au - rtl8811cu
#ht_capab=[HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]
#
# rtl8812bu
#ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935]
#
# rtl8814au
#ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]
#
# rtl8832au - hw ht capab: 0x1863
#ht_capab=[LDPC][HT40+][HT40-][SHORT-GI-20][SHORT-GI-40][MAX-AMSDU-7935][DSSS_CCK-40]


# IEEE 802.11ac
ieee80211ac=1
#
# generic setting
#vht_capab=[SHORT-GI-80]
#
# mt7610u
#vht_capab=[SHORT-GI-80][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
#
# mt7612u
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][MAX-A-MPDU-LEN-EXP3][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN]
#
# rtl8812bu
#vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][SU-BEAMFORMER][SU-BEAMFORMEE][BF-ANTENNA-3][HTC-VHT]
#
# rtl8812au
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# rtl8814au
#vht_capab=[MAX-MPDU-11454][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# rtl8811au - rtl8811cu
#vht_capab=[MAX-MPDU-11454][SHORT-GI-80][RX-STBC-1][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# rtl8832au - hw vht capab: 0x03c070b1
#vht_capab=[RXLDPC][MAX-MPDU-7991][SHORT-GI-80][TX-STBC-2BY1][HTC-VHT]
#[SU-BEAMFORMEE][BF-ANTENNA-4][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#vht_capab=[MAX-MPDU-7991][RXLDPC][SHORT-GI-80][TX-STBC-2BY1][SU-BEAMFORMEE][BF-ANTENNA-4][HTC-VHT][MAX-A-MPDU-LEN-EXP7]
#
# Note: [TX-STBC-2BY1] may cause problems with some Realtek drivers


# IEEE 802.11ax
#ieee80211ax=0
#he_su_beamformer=1
#he_su_beamformee=1
#he_mu_beamformer=1
#he_bss_color=1
#he_default_pe_duration=0
#he_basic_mcs_nss_set=2

# end of hostapd-5g.conf

@desultory-zz
Copy link
Author

desultory-zz commented Jan 13, 2022

I tried it with your conf and got the same error,

look at this portion in particular:

nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 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[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan1: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan1: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)
wlan1: interface state COUNTRY_UPDATE->DISABLED

it is saying the card does not support IR mode on 5ghz, iw list says the same thing.

Here is a relevant portion of my lsmod:

mt76x2u                28672  0
mt76x2_common          28672  1 mt76x2u
mt76x02_usb            20480  1 mt76x2u
mt76_usb               36864  2 mt76x02_usb,mt76x2u
mt76x02_lib            77824  3 mt76x02_usb,mt76x2u,mt76x2_common
mt76                   77824  5 mt76_usb,mt76x02_lib,mt76x02_usb,mt76x2u,mt76x2_common
rt2800usb              36864  0
rt2800lib             126976  1 rt2800usb
rt2x00usb              28672  1 rt2800usb
rt2x00lib              69632  3 rt2800usb,rt2x00usb,rt2800lib
mac80211              888832  7 mt76,mt76x02_lib,rt2x00lib,mt76x02_usb,rt2x00usb,mt76x2u,rt2800lib
libarc4                16384  1 mac80211
cfg80211              856064  6 mt76,8814au,mt76x02_lib,rt2x00lib,mac80211,mt76x02_usb
rfkill                 36864  3 rt2x00lib,cfg80211
crc_ccitt              16384  1 rt2800lib

IDK, everything points to this card not supporting 5ghz ap mode at all, I may try it on raspios at some point but this is not really that operating system dependent as this is built into the kernel and I'm using a very up to date version of the kernel.

Reading your iw list output, I can see your card clearly does not have "no_ir" on the 5ghz bands while mine does.

@morrownr
Copy link
Owner

nl80211: Regulatory information - country=00

There is the problem.

The same line in my RasPi hostapd.log says:

nl80211: Regulatory information - country=US (DFS-FCC)

The fundamental problem is that hostapd and the mt7612u driver must have regulatory information to determine what to support. Without that information, a very restrictive data set that is valid for anywhere in the world is used.

The problem you are seeing is not a problem with the driver.

The problem you are seeing is not a problem with hostapd.

It is highly unlikely that it is a problem with the wifi adapter.

It is nearly certain that the issue is that the regulatory information is not being properly set in your OS and I cannot help with that as I am unfamiliar with Alpine. I recommend you seek out the available support provided for Alpine... and if that is unsuccessful, the RasPiOS is available and there is a lot of support available.

Regards

@desultory-zz
Copy link
Author

I guess I will need to try off of Alpine linux unless I can find a way to safely set it on boot. It's just weird that setting it in hostapd doesn't seem to affect it at all, I've never had this issue with another card.

@morrownr
Copy link
Owner

It's just weird that setting it in hostapd doesn't seem to affect it at all

I agree but have not investigated it in detail. The setting in hostapd does no good if the proper information is not flowing from the OS. There are some legacy things still in hostapd so it could be that the hostapd.conf settings is from how things used to be done with other hostapd drivers (not to be confused with usb wifi adapter drivers).

I know this is frustrating. Been there, done many frustrating things. Playing with distros that are not mainline distros is fun but I always have an sd card with RasPiOS available. I also always have a good stable distro on a desktop system or two so I can check when issues like this come up. I don't think this is an issue with the adapter but if further testing shows that it is then I will be interested in the details so that I can post as much so other users know.

I know the guide I posted is long but it is well tested and it does something almost no other guides do... it doesn't just show you how to set up an ap, it shows you how to get the best performance from the commonly used adapters that we talk about around here.

@desultory-zz
Copy link
Author

desultory-zz commented Jan 14, 2022

Yeah, I'll get around to this eventually, I thought this was gonna be a plug and play thing and I currently use that pi as a router among other things right now so I'm not ready for it to be offline for an extended period of time yet.

This is a bit unrelated to this issue, but is this the right comfast adapter? I was having issues finding it: https://www.aliexpress.com/item/1005002599961851.html

@morrownr
Copy link
Owner

morrownr commented Jan 16, 2022

Hi @jackloomen

Good stuff. If he is running the system currently as a wired router or even if he just adds a 2.4 GHz AP, this can be overlooked as it mostly doesn't come into play but as soon as you try to bring up a 5 GHz AP, boom.

Hi @desultory

This is a bit unrelated to this issue, but is this the right comfast adapter? I was having issues finding it: https://www.aliexpress.com/item/1005002599961851.html

I am a little lost. I thought we were talking about a ROW02CD? If you are looking to add another adapter, the adapter in that link does work (it is a multi-state adapter so that you are aware). Comfast actually makes several adapters with Mediatek chipsets, actually several with the mt7612u. They do tend to make them multi-state so if I were picking between your ROW02CD and the adapter in the link, I would go with the ROW02CD as it is single state. I have both adapters. The performance is about the same.

Regarding the help message above, have you considered testing your AP setup with 2.4 GHz? That could help determine if there is a problem with the adapter. If it works, the problem is likely with the reg stuff as we talking about.

@desultory-zz
Copy link
Author

Simply running apk get wireless-regdb fixed it for me, using raspios also seemed to work but I don't want to be stuck with a 32 bit kernel

@desultory-zz
Copy link
Author

I will note that the speeds don't seem to be great, for whatever reason the RX/TX speeds in windows are listed as "32/866 (Mbps)"and I can't get over 200mbps in iperf3 and the devices are right next to each other, I was able to get more than that with the alfa card, thought it would die after a day or so and needed to be manually unplugged, replugged in and services had to be restarted

@morrownr
Copy link
Owner

I will note that the speeds don't seem to be great, for whatever reason the RX/TX speeds in windows are listed as "32/866 (Mbps)"and I can't get over 200mbps in iperf3 and the devices are right next to each other

I'm going to have to make some assumptions here as it wasn't clear to me how things are set up.

I'll assume the Windows machine is the client and your TEROW adapter is the AP on your Pi. It appears your Windows machine is showing the link speed and 866 is indeed the link speed that the TEROW adapter is capable of in 5 GHz with an 80 MHz wide channel. That tells us a lot of things are set up properly.

and I can't get over 200mbps in iperf3 and the devices are right next to each other

Being right next to each other could be hurting the iperf3 data. Closer is not always a better thing. Now, with a link speed of 866, the maximum iperf3 speed we should expect is around 400 Mb/s. It is a half duplex thing. We could get 400 Mb/s but we would need no interference and no congestion and all computers/adapters set up perfectly. Remember that wifi is designed to share. When other clients and ap's that are on a channel in the same block of channels that you are in, there will be sharing... which reduces your speed. Where I live these days, there are dozens of AP's on channel 44 and 157 (over 45 each in fact). They are set to 80 MHz channel width. That really hurts and I can't get 200 Mb/s with iperf3 if I try to compete with that depending on the time of day.

Here is what I do beat it and have very reliable wifi.

I don't compete on the highly congested channels/blocks. I go find cleaner air. I have a main router, ZyXEL NBG6817 running OpenWRT, that pulls in internet at about 100 Mb/s. The Zyxel uses channel 100 (DFS) for 5 GHz and channel 11 for band 1. A CAT6 cable connects the RasPi4B to the Zyxel. The RasPi is on channel 6 and channel 36 (set to 80211n, 20 MHz width).

Given that we have some things that won't work on DFS, I think we all have that problem, I wanted to find some clear air for 5 GHz and I found a 20 MHz wide area of clean air at channel 36 because all the other AP's around here in the lower band are on 44. For whatever reason, it seems a lot of people are not using 2.4 GHz much. Channel 1 is heavily congested but 6 and 11 are relatively uncontested.

I can get 400 Mb/s on my main box here right now because it is connected to the DFS channel on my main router. That is serious overkill but cool to look at. Getting good throughput is a matter of knowing and taking advantage of what your location gives you.

Hope this helps.

@desultory-zz
Copy link
Author

desultory-zz commented Jan 18, 2022

My setup is a rip4 with the wan on the built in port and lan on a usb to gigabit ethernet adapter. I can get about 300/20mbps from my isp and I have no issue getting these speeds across the ethernet interfaces. I was able to get about 400mbps on iperf with the alfa rtl8814au based card I had before which makes sense given what you said before. I'm using cat6 on everything and I don't think there are any bottlenecks inside of my network.
I've used a wifi analyzer to check the air and the only other network on the same bands as my network is my roommate's and it's on another floor and far away and shouldn't be interfering that much. I should be getting DFS channels with 802.11h and 802.11d enabled in my conf, right?

@morrownr
Copy link
Owner

I should be getting DFS channels with 802.11h and 802.11d enabled in my conf, right?

Well, no. USB WiFi is considered a niche market by the chipset makers so we tend to end up at the end of the line when it comes to some features. Until recently I would have said that no USB WiFi adapters were supporting DFS channels in AP mode but low and behold, along comes an up dated driver for the rtl8812au that does support this:

https://github.com/morrownr/8812au-20210629

The following pull request over at the OpenWRT MT76 repo indicates that the code is in the 7612u adapter but it is not turned on. I am trying to push this issue and will continue.

openwrt/mt76#428

The Realtek 8814au driver has never supported this.

Overall, we are not in good shape in this regard. Hopefully we can get the appropriate changes made.

@morrownr
Copy link
Owner

I don't want to be stuck with a 32 bit kernel

Hey, don't be talkin' bad about my 32 bit kernel.

@morrownr morrownr changed the title Unable to create AP on 5ghz TEROW ROW02CD RPI4 Alpine Linux (solved) Unable to create AP on 5ghz TEROW ROW02CD RPI4 Alpine Linux Jan 18, 2022
@desultory-zz
Copy link
Author

Well regardless, your repo has made doing this a lot more accessible. I for one prefer to be able to use my own wireless devices for networking equipment I use but I can see how that isn't very common. Hopefully more manufacturers will see that people care and that communities will be willing to do some of the work for them if they give them something to work with.

@morrownr
Copy link
Owner

My opinion of the best path forward is increase the amount of information available to Linux users so that we can make good decisions. I think most Linux users would choose usb WiFi adapters that work with in-kernel drivers if that information is available to them. The Linux foundation has put a lot of effort into established standards that provide guidance to the many developers out there. Given the rolling dev model of the Linux kernel, the best way to support it with drivers is to do what Linux Wireless standards call for and that is mac80211 technology drivers that are maintained in-kernel. For usb WiFi, Mediatek does that and Realtek goes their own way which is very painful for Linux users.

I think as more Linux users move to Mediatek chipset based adapters, we will see more noise regarding things that users want to see. The MT76 drivers are very good but I there are 3 things that we collectively should be asking to have fixed:

  • No DFS support in AP mode.
  • Drivers default to LED off. They should default to on and give us an easy way to turn them off.
  • Make the default for Scatter-Gather support off.

I just took a look at that list and thought to myself "that is the best you can come up with?" All 3 of those are basically configuration changes requiring no major work. WPA3 works. Monitor mode is great. AP mode is great. They support VIF. I could go on.

On the other hand, I could make a long list of things that are missing or don't work right or don't work the right way with the Realtek drivers.

We need Mediatek to announce a new WiFi 6 chipset.

@morrownr
Copy link
Owner

I'm under the impression that the version of the mt7612 that is used in internal cards/boards is capable of radar detection. I don't know if the usb version is capable of radar detection.

I am aware of the patch but have not tested it. Have you tested it?

@desultory-zz
Copy link
Author

I have only used the in kernel drivers with no extra configuration for the kernel modules

@cristian-ciobanu
Copy link

cristian-ciobanu commented Sep 1, 2022

I also have some hard time setting up an AP on 5 GHz using an EDUP EP-AC1605 USB WiFi card which has MT7612U chipset. The WiFi device is connected into an USB3 port.

$ lsusb | grep MediaTek
Bus 010 Device 028: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter

I have followed the recommendations from this page https://github.com/morrownr/USB-WiFi/blob/main/home/AP_Mode/Bridged_Wireless_Access_Point.md and created a new hostapd.conf file with the same content listed on the wiki page.
I also have set the disable_usb_sg parameter to 1

I'm running the hostapd configuration on ArchLinux running standard kernel 5.19.4 and I have the mt7612u modules loaded.

$ lsmod | grep mt
mt76x2u                32768  0
mt76x2_common          32768  1 mt76x2u
mt76x02_usb            24576  1 mt76x2u
mt76_usb               36864  2 mt76x02_usb,mt76x2u
mt76x02_lib            90112  3 mt76x02_usb,mt76x2u,mt76x2_common
mt76                  102400  5 mt76_usb,mt76x02_lib,mt76x02_usb,mt76x2u,mt76x2_common
mac80211             1249280  4 mt76,mt76x02_lib,mt76x02_usb,mt76x2u
cfg80211             1089536  5 mt76,mt76x02_lib,mac80211,mt76x02_usb,mt76x2_common

I only commented the ieee80211h=1 line in the config which enables DFS for 5GHz channels since I read that MT7612U chipset does not support it yet.

Whenever I start the hostapd using the created conf file I'm unable to see any SSID and receive beacon errors. Below is the debug output

random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd-5g.conf
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
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: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: key_mgmt=0x1ff0f enc=0xfef auth=0x7 flags=0x4000531db5bfae0 rrm_flags=0x10 probe_resp_offloads=0x0 max_stations=0 max_remain_on_chan=5000 max_scan_ssids=4
nl80211: interface wlan1 in phy phy24
nl80211: Set mode ifindex 28 iftype 3 (AP)
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x55b09d871670
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x55b09d871670 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d871670 match=7f multicast=0
rfkill: initial event: idx=24 type=1 op=0 soft=0 hard=0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: if_indices[16]: 3(28)
nl80211: Add own interface ifindex 28 (ifidx_reason -1)
nl80211: if_indices[16]: 3(28) 28(-1)
nl80211: Adding interface wlan1 into bridge br0
nl80211: Do not open EAPOL RX socket - using control port for RX
phy: phy24
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlan1: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code US, new country code US 
nl80211: Regulatory information - country=US (DFS-FCC)
nl80211: 902-904 @ 2 MHz 30 mBm
nl80211: 904-920 @ 16 MHz 30 mBm
nl80211: 920-928 @ 8 MHz 30 mBm
nl80211: 2400-2472 @ 40 MHz 30 mBm
nl80211: 5150-5250 @ 80 MHz 23 mBm
nl80211: 5250-5350 @ 80 MHz 24 mBm (DFS)
nl80211: 5470-5730 @ 160 MHz 24 mBm (DFS)
nl80211: 5730-5850 @ 80 MHz 30 mBm
nl80211: 5850-5895 @ 40 MHz 27 mBm (no outdoor) (no IR)
nl80211: 5925-7125 @ 320 MHz 12 mBm (no outdoor) (no IR)
nl80211: 57240-71000 @ 2160 MHz 40 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[DISABLED] 2472[DISABLED] 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.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
hw vht capab: 0x318001b0, conf vht capab: 0x20
wlan1: interface state COUNTRY_UPDATE->HT_SCAN
Scan for neighboring BSSes prior to enabling 40 MHz channel
40 MHz affected channel range: [5170,5210] MHz
wlan1: nl80211: scan request
nl80211: Passive scan requested
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=28 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=28 ifname=wlan1 operstate=2 linkmode=0 master=3 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=28 ifname=wlan1 operstate=2 linkmode=0 master=3 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=28 ifname=wlan1 master=3 operstate=2 ifi_family=7 ifi_flags=0x1003 ([UP])
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: ifindex 3 already in the list
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan1
wlan1: nl80211: Scan trigger
wlan1: Event SCAN_STARTED (47) received
Unknown event 47
RTM_NEWLINK: ifi_index=28 ifname=wlan1 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan1
wlan1: nl80211: New scan results available
nl80211: Scan included frequencies: 5180 5200
wlan1: Event SCAN_RESULTS (3) received
nl80211: Received scan results (1 BSSes)
HT40: control channel: 36 (5180 MHz), secondary channel: 40 (5200 MHz)
Completing interface initialization
Mode: IEEE 802.11a  Channel: 36  Frequency: 5180 MHz
DFS 0 channels required radar detection
nl80211: Set freq 5180 (ht_enabled=1, vht_enabled=1, he_enabled=0, bandwidth=80 MHz, cf1=5210 MHz, cf2=0 MHz)
  * freq=5180
  * he_enabled=0
  * vht_enabled=1
  * ht_enabled=1
  * bandwidth=80
  * channel_width=3
  * center_freq1=5210
  * center_freq2=0
RATE[0] rate=60 flags=0x1
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x1
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x1
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x55b09d870640 (wlan1), first=1)
nl80211: flush -> DEL_STATION wlan1 (all)
Using interface wlan1 with hwaddr e8:4e:06:31:81:a4 and ssid "myPI-5g"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=7):
     6d 79 50 49 2d 35 67                              myPI-5g         
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
GMK - hexdump(len=32): [REMOVED]
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=58): 80 00 00 00 ff ff ff ff ff ff e8 4e 06 31 81 a4 e8 4e 06 31 81 a4 00 00 00 00 00 00 00 00 00 00 64 00 11 00 00 07 6d 79 50 49 2d 35 67 01 08 8c 12 98 24 b0 48 60 6c 03 01 24
nl80211: Beacon tail - hexdump(len=153): 07 0a 55 53 20 24 04 17 95 05 1e 00 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 3b 02 80 00 2d 1a 6e 00 03 ff ff 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 24 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 00 00 00 00 00 40 bf 0c 20 00 00 00 fa ff 00 00 fa ff 00 00 c0 05 01 2a 00 fc ff c3 04 02 2e 2e 2e dd 18 00 50 f2 02 01 01 01 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=28
nl80211: beacon_int=100
nl80211: beacon_rate=0
nl80211: rate_type=0
nl80211: dtim_period=2
nl80211: ssid=myPI-5g
  * 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=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: multicast to unicast disabled on interface wlan1
wlan1: Deauthenticate all stations at BSS start
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=5180
nl80211: send_mlme -> send_frame_cmd
WPA: Start group state machine to set initial keys
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
wpa_driver_nl80211_set_key: ifindex=28 (wlan1) alg=3 addr=0x55b09d7c6c4f key_idx=1 set_tx=1 seq_len=0 key_len=16 key_flag=0x1a
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   broadcast key
nl80211: NL80211_CMD_SET_KEY - default key
nl80211: Set wlan1 operstate 0->1 (UP)
netlink: Operstate: ifindex=28 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
nl80211: TX queue param set: queue=0 aifs=1 cw_min=3 cw_max=7 burst_time=15 --> res=0
nl80211: TX queue param set: queue=1 aifs=1 cw_min=7 cw_max=15 burst_time=30 --> res=0
nl80211: TX queue param set: queue=2 aifs=3 cw_min=15 cw_max=63 burst_time=0 --> res=0
nl80211: TX queue param set: queue=3 aifs=7 cw_min=15 cw_max=1023 burst_time=0 --> res=0
wlan1: interface state HT_SCAN->ENABLED
wlan1: AP-ENABLED 
wlan1: Setup of interface done.
RTM_NEWLINK: ifi_index=28 ifname=wlan1 master=3 operstate=6 ifi_family=7 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: ifindex 3 already in the list
RTM_NEWLINK: ifi_index=28 ifname=wlan1 master=3 operstate=6 ifi_family=7 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: ifindex 3 already in the list
RTM_NEWLINK: ifi_index=28 ifname=wlan1 operstate=6 linkmode=0 master=3 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Drv Event 60 (NL80211_CMD_FRAME_TX_STATUS) received for wlan1
nl80211: Frame TX status event A1=ff:ff:ff:ff:ff:ff stype=12 cookie=0x1 ack=0
wlan1: Event TX_STATUS (16) received
mgmt::deauth cb
nl80211: Drv Event 16 (NL80211_CMD_STOP_AP) received for wlan1
wlan1: Event INTERFACE_UNAVAILABLE (28) received
Interface wlan1 is unavailable -- stopped
RTM_NEWLINK: ifi_index=28 ifname=wlan1 operstate=2 linkmode=0 master=3 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Interface down (/wlan1)
wlan1: Event INTERFACE_DISABLED (26) received
wlan1: INTERFACE-DISABLED 
nl80211: Interface wlan1 does not exist - ignore RTM_NEWLINK
RTM_NEWLINK: ifi_index=28 ifname=wlan1 master=3 operstate=2 ifi_family=7 ifi_flags=0x1002 ()
nl80211: Interface wlan1 does not exist - ignore RTM_NEWLINK
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: ifindex 3 already in the list
RTM_NEWLINK: ifi_index=28 ifname=wlan1 master=3 operstate=2 ifi_family=7 ifi_flags=0x1002 ()
nl80211: Interface wlan1 does not exist - ignore RTM_NEWLINK
nl80211: Add ifindex 3 for bridge br0
nl80211: Add own interface ifindex 3 (ifidx_reason 28)
nl80211: ifindex 3 already in the list
RTM_DELLINK: ifi_index=28 ifname=wlan1 master=3 operstate=2 ifi_family=7 ifi_flags=0x1002 ()
nl80211: Remove ifindex 3 for bridge br0
nl80211: if_indices[16]: 28(-1)
RTM_DELLINK: ifi_index=28 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
RTM_DELLINK: Interface 'wlan1' removed - mark if_removed=1
wlan1: Event INTERFACE_STATUS (5) received
Unknown event 5
RTM_NEWLINK: ifi_index=29 ifname=wlan0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
RTM_NEWLINK: ifi_index=29 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1002 ()
nl80211: Update ifindex for a removed interface
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
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: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: key_mgmt=0x1ff0f enc=0xfef auth=0x7 flags=0x4000531db5bfae0 rrm_flags=0x10 probe_resp_offloads=0x0 max_stations=0 max_remain_on_chan=5000 max_scan_ssids=4
nl80211: interface wlan1 in phy phy25
nl80211: Set mode ifindex 29 iftype 3 (AP)
nl80211: Unsubscribe mgmt frames handle 0x8888dd38150f9ef9 (start AP)
nl80211: Setup AP(wlan1) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x55b09d87d920
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x55b09d87d920 match= multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=04 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=0501 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=0503 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=0504 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=08 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=0a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55b09d87d920 match=7f multicast=0
nl80211: Mark if_removed=0 for wlan1 based on RTM_NEWLINK event
wlan1: Event INTERFACE_STATUS (5) received
Unknown event 5
RTM_NEWLINK: ifi_index=29 ifname=wlan1 operstate=0 linkmode=0 ifi_family=0 ifi_flags=0x1043 ([UP][RUNNING])
nl80211: Interface up (wlan1/wlan1)
wlan1: Event INTERFACE_ENABLED (25) received
wlan1: INTERFACE-ENABLED 
wpa_driver_nl80211_set_key: ifindex=29 (wlan1) alg=3 addr=0x55b09d7c6c4f key_idx=1 set_tx=1 seq_len=0 key_len=16 key_flag=0x1a
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
   broadcast key
nl80211: NL80211_CMD_SET_KEY - default key
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=58): 80 00 00 00 ff ff ff ff ff ff e8 4e 06 31 81 a4 e8 4e 06 31 81 a4 00 00 00 00 00 00 00 00 00 00 64 00 11 00 00 07 6d 79 50 49 2d 35 67 01 08 8c 12 98 24 b0 48 60 6c 03 01 24
nl80211: Beacon tail - hexdump(len=153): 07 0a 55 53 20 24 04 17 95 05 1e 00 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 3b 02 80 00 2d 1a 6e 00 03 ff ff 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 3d 16 24 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 08 04 00 00 00 00 00 00 40 bf 0c 20 00 00 00 fa ff 00 00 fa ff 00 00 c0 05 01 2a 00 fc ff c3 04 02 2e 2e 2e dd 18 00 50 f2 02 01 01 01 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=29
nl80211: beacon_int=100
nl80211: beacon_rate=0
nl80211: rate_type=0
nl80211: dtim_period=2
nl80211: ssid=myPI-5g
  * 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=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 04 00 00 00 00 00 00 40
nl80211: Beacon set failed: -22 (Invalid argument)
Failed to set beacon parameters
RTM_NEWLINK: ifi_index=29 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=29 ifname=wlan1 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])

@morrownr
Copy link
Owner

morrownr commented Sep 1, 2022

Hi @cristian-ciobanu

I'm running the hostapd configuration on ArchLinux running standard kernel 5.19.4 and I have the mt7612u modules loaded.

The modules look good. I am not familiar with Arch so let me throw something out. Does Arch use Network Manager?

If it does, Network Manager will continue to try to run the show so it will have to be deactivated. The guide you are using is very heavily tested on RasPiOS 32 and 64 bit. The RasPiOS does not use Network Manager... Does this make sense?

Nick

@cristian-ciobanu
Copy link

@morrownr I'm not using NetworkManager (not installed) but systemd-networkd instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants