Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Mar 2024 07:26:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        wireless@FreeBSD.org
Subject:   [Bug 272732] hostapd error with rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
Message-ID:  <bug-272732-21060-rRtzUpu3l7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272732-21060@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272732-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272732

--- Comment #8 from St=C3=A9phane Rochoy <stephane.rochoy@stormshield.eu> -=
--
I upgraded (using handbook's procedure[1]) to latest stable/13, namely
8c6964b779ce (2024-03-05 00:18:58 +0000) and didn't notice any improvement.=
=20

[1] https://docs.freebsd.org/en/books/handbook/cutting-edge/

When the hardware is plugged, its LED start to blink and here's what writte=
n to
msgbuf:

rtwn0 on uhub2
rtwn0: <802.11n NIC > on usbus2
rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
rtwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
rtwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mb=
ps
36Mbps 48Mbps 54Mbps
rtwn0: 2T2R
rtwn0: 11ng MCS 20MHz
rtwn0: MCS 0-7: 6.5Mbps - 65Mbps
rtwn0: MCS 8-15: 13Mbps - 130Mbps
rtwn0: 11ng MCS 20MHz SGI
rtwn0: MCS 0-7: 7Mbps - 72Mbps
rtwn0: MCS 8-15: 14.5Mbps - 144.5Mbps
wlan0: bpf attached
wlan0: Ethernet address: 28:87:ba:77:e2:0c
firmware: 'rtwn-rtl8192eufw' version 111: 31818 bytes loaded at
0xffffffff82ef7000
pflog0: bpf attached
pflog0: promiscuous mode enabled
rtwn0: rtwn_tx_beacon_check: cannot push beacon into chip, error 60!
rtwn0: unable to push beacon into the chip, error 60
rtwn0: rtwn_newstate: could not move to RUN state

and here's what `ifconfig wlan0` say:

wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        ether 28:87:ba:77:e2:0c
        inet 172.28.199.56 netmask 0xfffc0000 broadcast 172.31.255.255
        groups: wlan
        ssid Hu0eenee channel 10 (2457 MHz 11g ht/20) bssid 28:87:ba:77:e2:=
0c
        regdomain ETSI country FR authmode OPEN privacy OFF txpower 30
        scanvalid 60 protmode CTS ht20 ampdulimit 64k ampdudensity 16 short=
gi
        -stbc -ldpc -uapsd wme dtimperiod 1 -dfs
        parent interface: rtwn0
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap>
        status: running
        nd6 options=3D29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

As vendor and product IDs cannot be seen in msgbuf, here's content of the
`dev.rtwn.0` sysctl node:

dev.rtwn.0.rx_buf_size: 24
dev.rtwn.0.ratectl_selected: 1
dev.rtwn.0.ratectl: 1
dev.rtwn.0.hwcrypto: 1
dev.rtwn.0.debug: 0
dev.rtwn.0.ht40: 0
dev.rtwn.0.%parent: uhub1
dev.rtwn.0.%pnpinfo: vendor=3D0x2357 product=3D0x0109 devclass=3D0x00
devsubclass=3D0x00 devproto=3D0x00 sernum=3D"00e04c000001" release=3D0x0200=
 mode=3Dhost
intclass=3D0xff intsubclass=3D0xff intprotocol=3D0xff
dev.rtwn.0.%location: bus=3D2 hubaddr=3D1 port=3D4 devaddr=3D4 interface=3D=
0 ugen=3Dugen2.4
dev.rtwn.0.%driver: rtwn
dev.rtwn.0.%desc: 802.11n NIC

My /etc/hostapd.conf is as follow:

debug=3D2
accept_mac_file=3D/etc/hostapd.accept
ap_isolate=3D1
auth_algs=3D3
#channel=3D0
ctrl_interface=3D/var/run/hostapd
#driver=3Dbsd
hw_mode=3Dg
#ignore_broadcast_ssid=3D0
interface=3Dwlan0
macaddr_acl=3D1
wpa=3D2
wpa_pairwise=3DCCMP
wpa_passphrase=3DPASSWORD
wpa_key_mgmt=3DWPA-PSK

(I tried to be clever by adding `debug=3D2` to later discover it is depreca=
ted
x_x)
And here's what happen when I `service start hostapd`:

Starting hostapd.
Configuration file: /etc/hostapd.conf
Line 2: DEPRECATED: 'debug' configuration variable is not used anymore
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=3D0x16dc9433f000 (wlan0), first=3D1)
bsd_set_privacy: enabled=3D0
bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D0 set_tx=3D0 seq_len=3D0 key_len=
=3D0
bsd_del_key: key_idx=3D0
bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D1 set_tx=3D0 seq_len=3D0 key_len=
=3D0
bsd_del_key: key_idx=3D1
bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D2 set_tx=3D0 seq_len=3D0 key_len=
=3D0
bsd_del_key: key_idx=3D2
bsd_set_key: alg=3D0 addr=3D0x0 key_idx=3D3 set_tx=3D0 seq_len=3D0 key_len=
=3D0
bsd_del_key: key_idx=3D3
Using interface wlan0 with hwaddr 28:87:ba:77:e2:0c and ssid "Hu0eenee"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=3D8):
     48 75 30 65 65 6e 65 65
PSK (ASCII passphrase) - hexdump_ascii(len=3D8) [REMOVED]
PSK (from passphrase) - hexdump_ascii(len=3D32) [REMOVED]
bsd_set_ieee8021x: enabled=3D1
bsd_configure_wpa: enable WPA=3D 0x2

>From here, the LED on the device is OFF and there's a delay of ~30 seconds
before:

=E2=80=A6
Could not remove generic information element from interface wlan0
bsd_set_ieee8021x: enabled=3D0
ioctl[SIOCS80211, op=3D7, val=3D4, arg_len=3D0]: Network is down
Interface initialization failed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
=E2=80=A6

(I transcribed most of the messages from a screenshot, I didn't investigate=
 the
reason why all this messages were not part of /var/log/daemon.log or
/var/log/debug.log)

I didn't have time to install net/hostapd. I'll try that today or tomorrow.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272732-21060-rRtzUpu3l7>