FreeBSD 14.0 RTL8192EU usb wifi, hostapd error

Hello everyone.
I ran into a problem, if someone could test it I would appreciate it:

System:
FreeBSD 14.0 - fresh install
USB wifi dongle - Realtek RTL8192EU

Modules:
rtwn
if_rtwn_usb

I configure the wlan0 interface:

ifconfig wlan0 create wlandev rtwn0 wlanmode hostap
ifconfig wlan0 inet 10.0.0.1 netmask 255.255.255.0 ssid FreeBSD-AP mode 11g channel 3 country HU


Ifconfig output:
Code:
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 77:bc:b5:1b:1c:96
        inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
        groups: wlan
        ssid FreeBSD-AP channel 3 (2422 MHz 11g) bssid 77:bc:b5:1b:1c:96
        regdomain ETSI country HU authmode OPEN privacy OFF txpower 30
        scanvalid 60 protmode CTS wme dtimperiod 1 -dfs
        parent interface: rtwn0
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
        status: running
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Hostap config (basic):
Code:
ssid=FreeBSD-AP
interface=wlan0
channel=3
country_code=HU
ctrl_interface=/var/run/hostapd
hw_mode=g
wmm_enabled=1
logger_syslog=-1
logger_syslog_level=2
wpa=2
wpa_key_mgmt=WPA-PSK WPA-EAP
wpa_pairwise=TKIP CCMP
wpa_passphrase=PASSWORD

Hostapd starts:
service hostapd start

At this moment, the dongle will stop and sends an error message that the usb device is not available.

dmesg:
Code:
wlan0: Ethernet address: 78:8c:b5:1b:1a:93
ugen1.2: <Realtek 802.11n NIC> at usbus1 (disconnected)
rtwn0: at uhub2, port 1, addr 2 (disconnected)
rtwn0: r92e_power_off: failed to block Tx queues
rtwn0: detached
usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR

usbdump:
Code:
07:13:01.386593 usbus1.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=IOERROR
frame[0] WRITE 0 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xaa1a5 <OPEN|DID_DMA_DELAY|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|DO
07:13:01.659217 usbus1.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 01 00 00 12 00  -- -- -- -- -- -- -- --  |........        |
frame[1] READ 18 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xea1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN
07:13:01.670594 usbus1.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=IOERROR
frame[0] WRITE 0 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0x8a1a5 <OPEN|DID_DMA_DELAY|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|DOING_CALLBACK|
07:13:01.950012 usbus1.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
frame[0] WRITE 8 bytes
0000  80 06 00 01 00 00 12 00  -- -- -- -- -- -- -- --  |........        |
frame[1] READ 18 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xca1a3 <OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED
07:13:01.961595 usbus1.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=IOERROR
frame[0] WRITE 0 bytes
flags 0x10 <PROXY_BUFFER|0>
status 0xaa1a5 <OPEN|DID_DMA_DELAY|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|DO

1550 packets captured
1550 packets received by filter
0 packets dropped by kernel

hostapd -dd:
Code:
Configuration file: /etc/hostapd.conf
bsd_ctrl_iface: if wlan0 (changed) enable 0 IFF_UP 0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
Completing interface initialization
hostapd_setup_bss(hapd=0x58f1d6240000 (wlan0), first=1)
bsd_set_privacy: enabled=0
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
Using interface wlan0 with hwaddr 78:8c:b5:1b:1a:93 and ssid "FreeBSD-AP"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=10):
46 72 65 65 42 53 44 2d 41 50                     FreeBSD-AP
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
bsd_set_ieee8021x: enabled=1
bsd_configure_wpa: enable WPA= 0x2
bsd_ctrl_iface: if wlan0 (changed) enable 1 IFF_UP 1
Get randomness: len=32 entropy=0
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been configured
bsd_set_privacy: enabled=1
ioctl[SIOCS80211, op=17, val=1, arg_len=0]: Network is down
Could not set PrivacyInvoked for interface wlan0
wlan0: Flushing old station entries
ioctl[SIOCS80211, op=21, val=0, arg_len=42]: Network is down
wlan0: Could not connect to kernel driver
wlan0: Deauthenticate all stations
ioctl[SIOCS80211, op=21, val=0, arg_len=42]: Network is down
bsd_set_privacy: enabled=0
ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Network is down
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=1)
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=2)
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
hostapd_free_hapd_data(wlan0)
bsd_set_privacy: enabled=0
ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Network is down
Could not disable PrivacyInvoked for interface wlan0
bsd_set_opt_ie: set WPA+RSN ie (len 0)
ioctl[SIOCS80211, op=95, val=208, arg_len=0]: Network is down
Could not remove generic information element from interface wlan0
bsd_set_ieee8021x: enabled=0
ioctl[SIOCS80211, op=7, val=4, arg_len=0]: Network is down
Interface initialization failed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
hostapd_interface_deinit_free(0x58f1d622f000)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x58f1d622f000)
wlan0: interface state DISABLED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: Flushing old station entries
ioctl[SIOCS80211, op=21, val=0, arg_len=42]: Network is down
wlan0: Could not connect to kernel driver
wlan0: Deauthenticate all stations
ioctl[SIOCS80211, op=21, val=0, arg_len=42]: Network is down
bsd_set_privacy: enabled=0
ioctl[SIOCS80211, op=17, val=0, arg_len=0]: Network is down
bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=0
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=0)
bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=1
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=1)
bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=2
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=2)
bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0
bsd_del_key: key_idx=3
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Network is down
Failed to clear default encryption keys (ifname=wlan0 keyidx=3)
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0x58f1d6240000 (wlan0))
wlan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=0x3eb89015a120 drv_priv=0x58f1d6249000 -> hapd_deinit
bsd_ctrl_iface: if wlan0 (changed) enable 0 IFF_UP 0
hostapd_interface_free(0x58f1d622f000)
hostapd_interface_free: free hapd 0x58f1d6240000
hostapd_cleanup_iface(0x58f1d622f000)
hostapd_cleanup_iface_partial(0x58f1d622f000)
hostapd_cleanup_iface: free iface=0x58f1d622f000

The same configuration worked perfectly on 13.2 until now.
Reloading the modules doesn't make a difference either.
Thank you for your help.
 
Back
Top