From nobody Thu Mar 07 07:26:05 2024 X-Original-To: wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tr17K6Pw6z5CwfS for ; Thu, 7 Mar 2024 07:26:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tr17K4QFfz4HvM for ; Thu, 7 Mar 2024 07:26:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709796365; a=rsa-sha256; cv=none; b=m6GRoO0ckjRl0fBRgM/uiRkl/jIMWRGFcRbAWU4Shop9TulcEfkZKsos3WqMt0Jv3wb/aE iTpnjR7wo9l1BrvC2vg7dFL0Nor7ConZoT2aV1cOkMxAf37hGjq5SN6Jyhl+FBiTU1QrPE 90L9lajp0G+Mc9UlM4kuLvJJpTge0yW1v1x3wkKv5lWclmfGZW02GJjhIHgRcHgOIwqgr3 /fy9UjhdRrgwN3VC9wLjV2sf7cPPBFBIqyMcbBDyiOyl0ZERSnwYUJao+k7fQF4wRkJpxU kYhlRPGVwcfDT4QhZkh1WZ5PPx5S0rDFmYDrIbX4T0MtXavDecrF170qEM4/sQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709796365; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vHx/HYdoJd+7K6RVKI8kZJBVII3y9mF6B/i9pIigfIA=; b=YLVSyW6F8jy7Q6De7MsXDKTvUx6pFU91MYSp5OzqDWP8DYRxIOo/DrSdJR51TGpbaKywKO ELFhAFpnLO52/PInPGBKlMMyA86WEoGMK8y2MBJ0qIDCp9GAzDI51AqQe0syDhcdM2/gT0 CQUcJXnWn7FLDQUiJXXI5WEfltiR2sOSoX2PoUfnib7JYlcM/hZ3m6v2wquimotO5e9L6z 8vE3yHK3uuzleTvHtk5MBJTW/bmc9YoaxgeRaaZvqm7T/d0Z9KPyVelJGZ5hyQx7qpKM0d Q2ENyP6qjQrvmL7g4zbDDlfRoXz0pWrkCdKjfjN12T8chSEazpsajMXqkn8avA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tr17K3vdSzQDt for ; Thu, 7 Mar 2024 07:26:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4277Q5xF029038 for ; Thu, 7 Mar 2024 07:26:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4277Q58w029037 for wireless@FreeBSD.org; Thu, 7 Mar 2024 07:26:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 272732] hostapd error with rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R Date: Thu, 07 Mar 2024 07:26:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 13.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: stephane.rochoy@stormshield.eu X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272732 --- Comment #8 from St=C3=A9phane Rochoy -= -- 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 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 status: running nd6 options=3D29 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.=