From nobody Mon Jun 13 23:56:15 2022 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 35F0B856747 for ; Mon, 13 Jun 2022 23:56:15 +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 4LMT3z02zwz4vNy for ; Mon, 13 Jun 2022 23:56:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 D31931F726 for ; Mon, 13 Jun 2022 23:56:14 +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 25DNuERY077484 for ; Mon, 13 Jun 2022 23:56:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25DNuEGk077483 for wireless@FreeBSD.org; Mon, 13 Jun 2022 23:56:14 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 264238] WiFi stops working after upgrade from 13.0 to 13.1, AR9285 (wpa_supplicant) Date: Mon, 13 Jun 2022 23:56:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: cy@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: cy@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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655164575; 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=Bmyb6ulx+lYVR5iT27wb3tFAIG9iyKnYxxzAexJz6F0=; b=g44LOq28dA4f2Z2FJxyczDJ9tWfnqPDdKCbP9dQVCc9qmWtUpvFpWAnMI8VrfrTszWtjMv dR75dbC3McYrZP2xg24LMF7OUsIVLQITe04L9vAtQoRdmSwBp0TAJEgna/XhwDa4/Up5zf 42XEizIGe2EBPlTsnWZYXlgHH/uchv5nlv034CebXvA9iuuentT3V4TkAeCQbb1lh3wH/S HckXvmmsGN0KQXBskzZ89Qg5hE/wItjONxog0VuzffeRUam3m5gJWOlbaQrKrsCHD4DcKw OT3b6gefsOTrWyOlqe5bmg4nLJyjBnOo01odWf/JK/6IAJFjHNr5QXzJCjKHVQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655164575; a=rsa-sha256; cv=none; b=jV4zK1t/yYE6jpceIs5gRQbs1cXdFBsQ8wZnHR25TS8YlGPvq2RhF9P6zYS5ywtBmld4ZQ EdflGIDt6ua+NEz/7RhdmE2wdldETQIMZFS6aJ8tlbmX/WEAVc3OI1GbLplNrbkxzHjp4K kEwrUcMTkT57tiuGuHWbCgOJgrNp7MmVyoIxSElKFiBnyIazkqUhxxYNwyJ8W2tF6DfJuI 3dXEbn8beJgUwh/B2oo1cYvvBdhTnhiohDonKHPfwvgPu0AxxLGy3iUB5v6/d/Wghjrg0h hV1XYkRtN1hiU81RCiXfK/8FTsC31GbaHOfYHiAlz8YWRMRjbHRoQFwdvJ6/+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264238 --- Comment #67 from Cy Schubert --- wpa_driver_bsd_scan() calls set80211param() to set IEEE80211_IOC_ROAMING to IEEE80211_ROAMING_MANUAL immediately after setting mediaopt to STA. This is unconditional and if it fails it will issue a message to syslog. All this is passed to bsd_set80211() which calls ioctl at line 120: if (ioctl(drv->global->sock, SIOCS80211, &ireq) < 0) { wpa_printf(MSG_ERROR, "ioctl[SIOCS80211, op=3D%u, val=3D%u,= " "arg_len=3D%u]: %s", op, val, arg_len, strerror(errno)); return -1; } It is this error message we see in syslog, which may well be that it's fail= ing to set IEEE80211_ROAMING_MANUAL. A backtrace would be able to confirm this. The interesting thing we notice is that op contains various values. I've se= en -1 and 20 so far. op is passed to bsd_set80211() via set80211var() and set80211param(), each of which is called by numerous other callers. strerrorr(errno) is "invalid argument." The question remains, which caller is responsible for this? Once the user c= an obtain a dump, the backtrace will tell us which calling path is used and we= can discover where opt and val are set, because both of these are set many fram= es above this frame, thus will be on the stack. The user will need to provide wpa_supplicant.core from the binary I sent he= r -- because I put an abort() in place of the return. --=20 You are receiving this mail because: You are on the CC list for the bug.=