🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #241

[Bug 300063] linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with ENOTRECOVERABLE after iv_bss is replaced; station wedged

#241
From: bugzilla-noreply
Date: Sun, 25 Oct 2026 22:25
98 lines
6381 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300063

            Bug ID: 300063
           Summary: linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with
                    ENOTRECOVERABLE after iv_bss is replaced; station
                    wedged
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: michal+freebsd@kilijanek.pl
                CC: bz@FreeBSD.org

------------------------------------------------------------------------
Description
------------------------------------------------------------------------

With iwlwifi (Intel AX210), the client sometimes gets stuck: wpa_supplicant
loops "Authentication with <bssid> timed out" / CTRL-EVENT-DISCONNECTED
reason=3 locally_generated=1, and the kernel logs:

  iwlwifi0: lkpi_sta_a_to_a:3835: lvif 0x... vap 0x... iv_bss 0x...
      lvif_bss 0x... lvif_bss->ni 0x... synched 0
  iwlwifi0: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 2
(AUTH)
  iwlwifi0: lkpi_sta_auth_to_assoc:2809: ... synched 0
  iwlwifi0: lkpi_iv_newstate: error 95 during state transition 2 (AUTH) -> 3
(ASSOC)

(error 95 = ENOTRECOVERABLE).  Seen with the packaged GENERIC kernel
(main-n290312, message from line 3580) on several occasions and with a
kernel built from main 175595ba6 (line 3835), so it is not new.

In the worst case the station did not recover by itself; `service netif
restart wlan0` (vap destroy/create) was also not enough (wpa_supplicant
stayed in SCANNING with an empty scan list), and only
`devctl detach iwlwifi0; devctl attach <pci selector>` brought it back.

------------------------------------------------------------------------
How it was triggered
------------------------------------------------------------------------

Most reliably by forcing (re)association while the AP offers the same
SSID on two BSSIDs (2.4 GHz and 5 GHz of one AP), e.g. repeated
`wpa_cli reassociate` with different freq_list / bssid settings, and by
wlan0 restarts.  It also happened on its own on Oct 22 (no manual
reassociation), shortly after association.

------------------------------------------------------------------------
Code reading (sys/compat/linuxkpi/common/src/linux_80211.c, 175595ba6)
------------------------------------------------------------------------

- lvif->lvif_bss_synched is set to true only in lkpi_sta_scan_to_auth()
  (line 2989).
- lkpi_iv_update_bss() (line 4095) sets it to false whenever net80211
  replaces vap->iv_bss (e.g. ieee80211_sta_join1() on a new join).
- lkpi_sta_a_to_a() (line 3812, ENOTRECOVERABLE at 3841) and
  lkpi_sta_auth_to_assoc() (ENOTRECOVERABLE at 3061/3173) bail out when
  !lvif_bss_synched.

So if net80211 replaces iv_bss while the vap is already in AUTH, every
following AUTH->AUTH and AUTH->ASSOC transition fails, and nothing
re-synchronises the LinuxKPI station with the new iv_bss unless the
state machine goes back through SCAN->AUTH.  net80211 keeps retrying
from AUTH, so the vap stays wedged.

Possible directions (for discussion; not implemented):
 - on ENOTRECOVERABLE in these transitions, drive the vap back to
   SCAN/INIT (ieee80211_new_state) so scan_to_auth re-syncs, or
 - teach lkpi_sta_a_to_a()/auth_to_assoc() to tear down the old lsta and
   re-run the scan_to_auth synchronisation for the new iv_bss.

------------------------------------------------------------------------
Environment
------------------------------------------------------------------------

Machine:   Lenovo ThinkPad T14 Gen 2a (20XLS34M00)
Wi-Fi:     Intel AX210, pci 8086:2725 sub 8086:0024, iwlwifi, fw 89
           (ty-a0-gf-a0-89.ucode), op_mode iwlmvm
Config:    compat.linuxkpi.80211.hw_crypto=0, ifconfig_wlan0="WPA DHCP
-ampdurx"
AP:        WPA2-PSK CCMP, same SSID on 2.4 GHz (ch 6) and 5 GHz (DFS ch 100)
Kernel:    packaged GENERIC main-n290312-91bff7d7ed46 and main 175595ba6
           (+ an unrelated LinuxKPI NAPI change, freebsd-src PR #2497)

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300063-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300063] linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with
 ENOTRECOVERABLE after iv_bss is replaced; station wedged
Date: Sun, 25 Oct 2026 22:25:39 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300063-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="61691"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1792967139;
	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;
	bh=LvwmBggw34ozJczI3hTLIIWpsNsWqcOS20vCBsufOPo=;
	b=YlT4HK+Vxr1qTJuTtGRaq6V6IQn05CVllcObM5+vMpBIHJIBrW6CIlIDq4YDYbBBhwcEMb
	Lm3N5oVOzoSilYhytIZjxr+dCc7gcjMqLLa61y7RAUe8XVsE1RAw52En3zqttjkYeoulCq
	lW67Zl+kvFPmbP5uHNBYdmqR9g5ZnN2os4pW9lX0i5tIv70jmfqVYW7QQEJD9fk9J7AV3R
	KZJQ0vl1gn7Hng6dvmB3880a6qiUJZT9q+mvDQE0biYMDsjczRnVSUo4/PmIy/vcCQpXWV
	baXwjuL+FQueCM9gQQrIjNA9PLw7EQ0zJpregTXJXcuIT6Vr0CxhsdxLlAX2/w==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes