Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Sun, 25 Oct 2026 22:25
[Bug 300063] linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with ENOTRECOVERABLE after iv_bss is replaced; station wedged
Author: bugzilla-noreply
Date: Sun, 25 Oct 2026 22:25
Date: Sun, 25 Oct 2026 22:25
98 lines
6381 bytes
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
[Bug 300063] linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with ENOTRECOVERABLE after iv_bss is replaced; station wedged
Author: bugzilla-noreply
Date: Sun, 25 Oct 2026 22:52
Date: Sun, 25 Oct 2026 22:52
41 lines
4039 bytes
4039 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300063
--- Comment #1 from Michal Kilijanek <michal+freebsd@kilijanek.pl> ---
Kernel used for testing, to rule out local modifications:
Packaged kernel (pkgbase FreeBSD-kernel-generic 16.snap20261024185836,
GENERIC main-n290312-91bff7d7ed46): the AX210 firmware assert on ADDBA
(bug 300064) and the AUTH->AUTH ENOTRECOVERABLE wedge (bug 300063) were
first seen on this unmodified kernel.
Custom kernel "T14AMD", used for the reproductions and tests:
- upstream main 175595ba6 (2026-10-25), with two local LinuxKPI commits:
linuxkpi: do not sleep forever on a stale NAPI IS_SCHEDULED
(linux_netdev.c only; freebsd-src PR #2497)
linuxkpi: match the resource in pci_release_region()
(linux_pci.c only; the fix proposed in bug 300062)
Nothing else in sys/ differs from upstream.
- kernel config = "include GENERIC" plus platform devices only, with no
nodevice/nooptions:
device acpi_ibm acpi_wmi amdsmn amdtemp intpm smbus smb ig4 iicbus iic
gpio amdgpio iichid hconf hms hmt rtsx tpm cuse
options NETGRAPH NETGRAPH_SOCKET
NETGRAPH_BLUETOOTH{,_HCI,_L2CAP,_SOCKET,_UBT}
makeoptions MODULES_EXTRA+="mt76/core mt76/mt7921" (not loaded; the
Wi-Fi card is the Intel AX210)
None of these touch net80211, LinuxKPI or iwlwifi.
- iwlwifi and the firmware are the stock if_iwlwifi.ko from this build and
wifi-firmware-iwlwifi-kmod-ax210-20260410.
The mmio leak (bug 300062) was only observed on T14AMD, because the card
was never detached on the packaged kernel. At that point the kernel
contained only the NAPI commit, which does not touch linux_pci.c.
--
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
[Bug 300063] linuxkpi 802.11: AUTH->AUTH / AUTH->ASSOC fail with ENOTRECOVERABLE after iv_bss is replaced; station wedged
Author: bugzilla-noreply
Date: Mon, 26 Oct 2026 00:13
Date: Mon, 26 Oct 2026 00:13
16 lines
2662 bytes
2662 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300063
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |emulation@FreeBSD.org
--
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads