From nobody Mon Sep 06 14:36:43 2021 X-Original-To: current@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 D064617C7956 for ; Mon, 6 Sep 2021 15:49:58 +0000 (UTC) (envelope-from oleg@theweb.org.ua) Received: from sigill.theweb.org.ua (noc.quadranet.com [66.63.164.214]) (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 (2048 bits) client-digest SHA256) (Client CN "sigill.theweb.org.ua", Issuer "sigill.theweb.org.ua" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3CX50sTYz4n9B for ; Mon, 6 Sep 2021 15:49:56 +0000 (UTC) (envelope-from oleg@theweb.org.ua) Received: from sigill.theweb.org.ua (localhost [127.0.0.1]) by sigill.theweb.org.ua (8.16.1/8.16.1) with ESMTPS id 186EahPG032620 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 6 Sep 2021 17:36:43 +0300 (EEST) (envelope-from oleg@theweb.org.ua) Received: (from oleg@localhost) by sigill.theweb.org.ua (8.16.1/8.16.1/Submit) id 186EahEh032619; Mon, 6 Sep 2021 17:36:43 +0300 (EEST) (envelope-from oleg@theweb.org.ua) X-Authentication-Warning: sigill.theweb.org.ua: oleg set sender to oleg@theweb.org.ua using -f From: "Oleg V. Nauman" To: Cy Schubert Cc: Idwer Vollering , current@freebsd.org Subject: Re: wlan0 no longer functional after n249128-a0c64a443e4c -> n249146-cb5c07649aa0 Date: Mon, 06 Sep 2021 17:36:43 +0300 Message-ID: <5606886.Zv9zXsTiuT@sigill.theweb.org.ua> Organization: Private persom In-Reply-To: <202109061323.186DNLMQ010404@slippy.cwsent.com> References: <202109061323.186DNLMQ010404@slippy.cwsent.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Rspamd-Queue-Id: 4H3CX50sTYz4n9B X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of oleg@theweb.org.ua has no SPF policy when checking 66.63.164.214) smtp.mailfrom=oleg@theweb.org.ua X-Spamd-Result: default: False [-0.30 / 15.00]; TO_DN_SOME(0.00)[]; HAS_XAW(0.00)[]; HFILTER_HELO_IP_A(1.00)[sigill.theweb.org.ua]; HFILTER_HELO_NORES_A_OR_MX(0.30)[sigill.theweb.org.ua]; HAS_ORG_HEADER(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; CTE_CASE(0.50)[]; ASN(0.00)[asn:8100, ipnet:66.63.164.0/23, country:US]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[oleg]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[theweb.org.ua]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 2021 M09 6, Mon 16:23:21 EEST Cy Schubert wrote: > In message om> > > , Idwer Vollering writes: > > Op ma 6 sep. 2021 om 07:53 schreef Cy Schubert : > > > In message <2838567.hHqAuc6tWs@sigill.theweb.org.ua>, "Oleg V. Nauman" > > > > > > writes: > > > > On 2021 M09 5, Sun 15:52:50 EEST David Wolfskill wrote: > > > > > Sorry I hadn't noticed this yesterday (so I could have repported it > > > > > then), but after updating the "head" slice of my laptopp from: > > > > > > > > > > FreeBSD g1-51.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #340 > > > > > main-n249128-a0c64a443e4c: Fri Sep 3 04:06:12 PDT 2021 > > > > > root@g1-55.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CAN > > > > > ARY > > > > > amd64 1400032 1400032 > > > > > > > > > > to: > > > > > > > > > > FreeBSD g1-51.catwhisker.org 14.0-CURRENT FreeBSD 14.0-CURRENT #341 > > > > > main-n249146-cb5c07649aa0: Sat Sep 4 04:28:27 PDT 2021 > > > > > root@g1-51.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CAN > > > > > ARY > > > > > amd64 1400032 1400032 > > > > > > > > > > I find that while the em0 NIC still works, wlan0 (iwn(4) HW) does > > > > > not: > > > > > the WLAN LED doesn't light up. > > > > > > > > I am also experiencing issues with wlan after my current update to > > > > > > > > 1f7a6325fe1b. I have checked ath(4) , run(4), rtwn(4) and all of them > > > > demonstrating the same behavior - wlan can not associate. > > > > You can mitigate it by using security/wpa_supplicant from ports as > > > > replac > > > > emen > > > > > > t > > > > of wpa_supplicant in base. > > > > > > > > ..... > > > > > > > > > I note that exactly the same hardware works OK in stable/12 and > > > > > stable/ > > > > 13. > > > > > > > Peace, > > > > > david > > > > > > Can you grep wpa_supplicant in /var/log/messages? This will give us a > > > clue. > > > > wpa_supplicant stops in wpa_driver_bsd_scan() - > > https://github.com/freebsd/freebsd-src/blob/bd452dcbede69b1862c769f244948f > > 94b 86448b5/contrib/wpa/src/drivers/driver_bsd.c#L1315 > > > > Here's some selected output from /var/log/messages. > > > > Before (built from commit a0c64a443e4cae67a5eea3a61a47d746866de3ee): > > > > Sep 6 13:29:40 wpa_supplicant[45348]: Successfully > > initialized wpa_supplicant > > Sep 6 13:29:40 wpa_supplicant[45348]: ioctl[SIOCS80211, > > op=20, val=0, arg_len=7]: Invalid argument > > Sep 6 13:29:40 syslogd: last message repeated 1 times > > Sep 6 13:29:46 wpa_supplicant[45349]: wlan1: Trying to > > associate with (SSID='' freq=2447 MHz) > > Sep 6 13:29:46 wpa_supplicant[45349]: Failed to add > > supported operating classes IE > > Sep 6 13:29:46 kernel: wlan1: link state changed to UP > > Sep 6 13:29:46 wpa_supplicant[45349]: wlan1: Associated with > > > > > Sep 6 13:29:46 dhclient[45401]: send_packet: No buffer > > space available > > Sep 6 13:29:46 wpa_supplicant[45349]: wlan1: WPA: Key > > negotiation completed with [PTK=CCMP GTK=CCMP] > > Sep 6 13:29:46 wpa_supplicant[45349]: wlan1: > > CTRL-EVENT-CONNECTED - Connection to completed [id=0 id_str=] > > > > After (built from main): > > > > Sep 6 12:19:50 wpa_supplicant[1236]: Successfully > > initialized wpa_supplicant > > Sep 6 12:19:50 kernel: wlan1: Ethernet address: > > Sep 6 12:19:50 wpa_supplicant[1236]: ioctl[SIOCS80211, > > op=20, val=0, arg_len=7]: Invalid argument > > Sep 6 12:19:50 syslogd: last message repeated 1 times > > Sep 6 12:19:50 wpa_supplicant[1237]: wlan1: > > CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 > > Is there a wpa_supplicant.core dump in / ? No > > Can you also send me a sanitized copy of wpa_supplicant.conf, please? I'm > interested in the lines proto=, key_mgmt=, pairwise=, group=, eap=, and > phase2=. You may not be using eap= or phase2=, which is fine. # grep -E -2 "proto=|key_mgmt=|pairwise=|group=|eap=|phase2=" /etc/ wpa_supplicant.conf network={ priority=0 key_mgmt=NONE } Config of active wireless network looks like network={ ssid=",,," scan_ssid=0 psk="..." priority=4 } Global section of /etc/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant eapol_version=2 ap_scan=1 fast_reauth=1 > I'd like to > see if there are any differences from what was tested. Though, looking at > your outputs above you're probably using something like: > > proto=RSN WPA > key_mgmt=WPA-PSK > pairwise=CCMP > group=CCMP > > Is this correct? > > If you try ports/securitiy/wpa_supplicant-devel (same codebase as in > 14-CURRENT), does it work? No it fals to associate with same symptoms as wpa_supplicant from base. > (ports/security/wpa_supplicant is the old 2.9 > codebase.) > > What is your AP set for? 802.11g, 802.11n, 802.11ac? 802.11gn