[Bug 275344] RTL8192EU usb wifi, hostapd error

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Nov 2023 06:04:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275344

            Bug ID: 275344
           Summary: RTL8192EU usb wifi, hostapd error
           Product: Base System
           Version: 14.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: tamas.csabi@gmail.com

Created attachment 246572
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246572&action=edit
error-messages

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

the interface works:
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>

I'm setting up hostapd:

/etc/hostapd.conf:

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:
At this moment, the dongle will stop and sends an error message that the usb
device is not available.

The same configuration worked perfectly on 13.2 until now.
Reloading the modules doesn't make a difference either.
I will send the error messages
Thank you for your help.

-- 
You are receiving this mail because:
You are the assignee for the bug.