[Bug 272732] hostapd error with rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R
Date: Thu, 07 Mar 2024 07:26:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272732 --- Comment #8 from Stéphane 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. [1] https://docs.freebsd.org/en/books/handbook/cutting-edge/ When the hardware is plugged, its LED start to blink and here's what written 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 24Mbps 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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 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 shortgi -stbc -ldpc -uapsd wme dtimperiod 1 -dfs parent interface: rtwn0 media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng <hostap> status: running nd6 options=29<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=0x2357 product=0x0109 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="00e04c000001" release=0x0200 mode=host intclass=0xff intsubclass=0xff intprotocol=0xff dev.rtwn.0.%location: bus=2 hubaddr=1 port=4 devaddr=4 interface=0 ugen=ugen2.4 dev.rtwn.0.%driver: rtwn dev.rtwn.0.%desc: 802.11n NIC My /etc/hostapd.conf is as follow: debug=2 accept_mac_file=/etc/hostapd.accept ap_isolate=1 auth_algs=3 #channel=0 ctrl_interface=/var/run/hostapd #driver=bsd hw_mode=g #ignore_broadcast_ssid=0 interface=wlan0 macaddr_acl=1 wpa=2 wpa_pairwise=CCMP wpa_passphrase=PASSWORD wpa_key_mgmt=WPA-PSK (I tried to be clever by adding `debug=2` to later discover it is deprecated 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=0x16dc9433f000 (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 28:87:ba:77:e2:0c and ssid "Hu0eenee" Deriving WPA PSK based on passphrase SSID - hexdump_ascii(len=8): 48 75 30 65 65 6e 65 65 PSK (ASCII passphrase) - hexdump_ascii(len=8) [REMOVED] PSK (from passphrase) - hexdump_ascii(len=32) [REMOVED] bsd_set_ieee8021x: enabled=1 bsd_configure_wpa: enable WPA= 0x2 From here, the LED on the device is OFF and there's a delay of ~30 seconds before: … 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. … (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. -- You are receiving this mail because: You are the assignee for the bug.