[Bug 286138] iwlwifi: easily broken by restart

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Apr 2025 12:41:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286138

            Bug ID: 286138
           Summary: iwlwifi: easily broken by restart
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: trasz@FreeBSD.org

Created attachment 259607
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259607&action=edit
Booted in a working state, broken by netif stop/start

Running "/etc/rc.d/netif stop" followed by "/etc/rc.d/netif start" sometimes -
about once per four attempts - results in WiFi either not associating at all,
or appearing associated, but in a non-working state.  When that happens, dmesg
looks like this:

iwlwifi0: Failed to send LINK_CONFIG_CMD (action:2): -5
iwlwifi0: failed to update link
iwlwifi0: Failed to send MAC_CONFIG_CMD (action:2): -5
iwlwifi0: failed to update MAC 0xfffffe00fc753edeM
wlan0: link state changed to UP
iwlwifi0: Failed to send flush command (-5)
iwlwifi0: flush request fail
wlan0: link state changed to DOWN
bad state = 0
iwlwifi0: Failed to trigger RX queues sync (-5)
iwlwifi0: Failed to send rate scale config (-5)
iwlwifi0: Couldn't send the SESSION_PROTECTION_CMD: -5
iwlwifi0: Failed to synchronize multicast groups update
iwlwifi0: Failed to send flush command (-5)
iwlwifi0: Failed to send MAC_CONFIG_CMD (action:2): -5
iwlwifi0: failed to update MAC 0xfffffe00fc753edeM
iwlwifi0: Failed to send LINK_CONFIG_CMD (action:2): -5
iwlwifi0: Failed to send LINK_CONFIG_CMD (action:3): -5
iwlwifi0: Failed to send LINK_CONFIG_CMD (action:1): -5
iwlwifi0: PHY ctxt cmd error. ret=-5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5
iwlwifi0: ERROR: lkpi_ic_scan_start: hw_scan returned -5
iwlwifi0: Scan failed! ret -5

Sometimes it comes up in this state after fresh boot.  Sometimes it gets fixed
by "netif start", might need several attempts to succeed.  Dmesg is attached.

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