Stuck when disabling Wi-Fi

Hey everyone,

I’ve a problem with my Wi-Fi which completely freezes the kernel when I try to disable it.
I tried to disabled it with Gnome and nmcli r wifi off.
I can enable the Wi-Fi, everything is fine, I can connect to my SSID. The problem appear when I try to disable it.

I’m on the new compiled 6.6.6-2-MANJARO kernel.
I tried the 6.5 and the 6.1 (same problem).
I’ve read (and did not find the soluce) :

Information :

System:
  Host: workstation Kernel: 6.6.6-2-MANJARO arch: x86_64 bits: 64 Desktop: GNOME
    v: 45.2 Distro: Manjaro Linux
Machine:
  Type: Laptop System: Dell product: Latitude 5500
  Mobo: Dell model: 0M14W7 v: A01 serial: <superuser required> UEFI: Dell
    v: 1.23.0 date: 12/19/2022
CPU:
  Info: quad core model: Intel Core i5-8365U bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 3079 min/max: 400/4100 cores: 1: 4077 2: 3851 3: 400
    4: 3944 5: 400 6: 4070 7: 3801 8: 4092
Network:
  Device-1: Intel Cannon Point-LP CNVi [Wireless-AC] driver: iwlwifi
  IF: wlo1 state: down

I tried to understand the problem, here is what comes out in the logs:

# I activate the Wi-Fi
kernel: [  149.200559] iwlwifi 0000:00:14.3: RF_KILL bit toggled to enable radio.
kernel: [  149.200563] iwlwifi 0000:00:14.3: reporting RF_KILL (radio enabled)
kernel: [  149.400904] iwlwifi 0000:00:14.3: Registered PHC clock: iwlwifi-PTP, with index: 1
kernel: [  152.569051] wlo1: authenticate with ff:ff:ff:ff:ff:ff
kernel: [  152.573234] wlo1: send auth to ff:ff:ff:ff:ff:ff (try 1/3)
kernel: [  152.612831] wlo1: authenticated
kernel: [  152.612973] wlo1: VHT capa missing/short, disabling VHT/HE/EHT
kernel: [  152.613974] wlo1: associate with ff:ff:ff:ff:ff:ff (try 1/3)
kernel: [  152.616549] wlo1: RX AssocResp from ff:ff:ff:ff:ff:ff (capab=0x411 status=0 aid=1)
kernel: [  152.619235] wlo1: associated

# I deactivate it

kernel: [  154.701975] iwlwifi 0000:00:14.3: RF_KILL bit toggled to disable radio.
kernel: [  154.701997] iwlwifi 0000:00:14.3: reporting RF_KILL (radio disabled)
kernel: [  154.714097] wlo1: deauthenticating from ff:ff:ff:ff:ff:ff by local choice (Reason: 3=DEAUTH_LEAVING)
kernel: [  156.717307] iwlwifi 0000:00:14.3: fail to flush all tx fifo queues Q 5
kernel: [  156.717366] iwlwifi 0000:00:14.3: Queue 5 is active on fifo 3 and stuck for 10000 ms. SW [3, 4] HW [4, 4] FH TRB=0x080305003
kernel: [  158.720630] iwlwifi 0000:00:14.3: fail to flush all tx fifo queues Q 5
kernel: [  158.720710] iwlwifi 0000:00:14.3: Queue 5 is active on fifo 3 and stuck for 10000 ms. SW [3, 4] HW [4, 4] FH TRB=0x080305003
kernel: [  158.720737] ------------[ cut here ]------------
kernel: [  158.720737] WARNING: CPU: 1 PID: 571 at net/mac80211/sta_info.c:1442 __sta_info_destroy_part2+0x243/0x330 [mac80211]
kernel: [  158.720791] Modules linked in: ccm uhid rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device typec_displayport snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic 8021q garp mrp stp llc cmac algif_hash algif_skcipher af_alg qrtr bnep hid_multitouch snd_sof_pci_intel_cnl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda intel_tcc_cooling snd_sof_pci snd_sof_xtensa_dsp x86_pkg_temp_thermal intel_powerclamp snd_sof coretemp snd_sof_utils soundwire_generic_allocation kvm_intel soundwire_bus mousedev snd_soc_skl kvm snd_soc_hdac_hda snd_hda_ext_core snd_soc_sst_ipc irqbypass snd_soc_sst_dsp crct10dif_pclmul snd_soc_acpi_intel_match crc32_pclmul snd_soc_acpi polyval_clmulni polyval_generic snd_soc_core gf128mul snd_compress ghash_clmulni_intel vfat dell_rbtn iwlmvm ac97_bus sha512_ssse3 fat snd_pcm_dmaengine sha256_ssse3 mei_wdt mei_pxp mei_hdcp i915 uvcvideo snd_hda_intel mac80211 videobuf2_vmalloc snd_intel_dspcfg uvc sha1_ssse3
kernel: [  158.720821]  snd_intel_sdw_acpi r8153_ecm aesni_intel snd_hda_codec videobuf2_memops dell_laptop crypto_simd videobuf2_v4l2 cdc_ether snd_hda_core libarc4 iTCO_wdt dell_wmi cryptd usbnet intel_pmc_bxt ee1004 dell_wmi_sysman snd_hwdep iTCO_vendor_support intel_rapl_msr videodev drm_buddy dell_smbios rapl firmware_attributes_class processor_thermal_device_pci_legacy snd_pcm i2c_algo_bit iwlwifi intel_cstate ledtrig_audio processor_thermal_device dcdbas videobuf2_common wmi_bmof dell_wmi_descriptor spi_nor snd_timer intel_wmi_thunderbolt ttm processor_thermal_rfim mei_me snd intel_lpss_pci dell_smm_hwmon intel_uncore psmouse e1000e mc mtd pcspkr cfg80211 drm_display_helper intel_lpss processor_thermal_mbox mei i2c_i801 ucsi_acpi processor_thermal_rapl idma64 soundcore typec_ucsi cec typec intel_rapl_common r8152 intel_gtt i2c_smbus i2c_hid_acpi video intel_soc_dts_iosf intel_pch_thermal roles cdc_acm mii i2c_hid int3403_thermal int340x_thermal_zone wmi int3400_thermal dell_smo8800 joydev intel_hid acpi_thermal_rel
kernel: [  158.720856]  acpi_pad sparse_keymap mac_hid squashfs btusb btrtl btintel btbcm btmtk bluetooth ecdh_generic rfkill sg crypto_user fuse loop dm_mod bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 usbhid rtsx_pci_sdmmc serio_raw atkbd mmc_core libps2 vivaldi_fmap nvme crc32c_intel nvme_core spi_intel_pci xhci_pci rtsx_pci spi_intel nvme_common i8042 xhci_pci_renesas serio
kernel: [  158.720874] CPU: 1 PID: 571 Comm: NetworkManager Not tainted 6.6.5-3-MANJARO #1 ad3eb75f027a1b8df7292b0c07e8b74bd60258b5
kernel: [  158.720877] Hardware name: Dell Inc. Latitude 5500/0M14W7, BIOS 1.23.0 12/19/2022
kernel: [  158.720878] RIP: 0010:__sta_info_destroy_part2+0x243/0x330 [mac80211]
kernel: [  158.720916] Code: bb d4 00 00 00 00 0f 84 68 ff ff ff 45 31 c0 b9 01 00 00 00 48 89 da 4c 89 f6 4c 89 e7 e8 35 86 ff ff 85 c0 0f 84 4a ff ff ff <0f> 0b e9 43 ff ff ff 41 0f b6 d5 be 03 00 00 00 48 89 df e8 75 b5
kernel: [  158.720917] RSP: 0018:ffffa592c26ef868 EFLAGS: 00010282
kernel: [  158.720918] RAX: 00000000ffffff92 RBX: ffff8a3d4ca36000 RCX: 0000000000000027
kernel: [  158.720919] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8a3d530c2098
kernel: [  158.720920] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffa592c26ef3c0
kernel: [  158.720921] R10: 0000000000000003 R11: ffffffff9f0ca408 R12: ffff8a3d530c0900
kernel: [  158.720922] R13: ffff8a3d4ca36ab8 R14: ffff8a3d528449c0 R15: ffff8a3d528449c0
kernel: [  158.720923] FS:  00007f91ddb43200(0000) GS:ffff8a449c440000(0000) knlGS:0000000000000000
kernel: [  158.720924] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: [  158.720925] CR2: 00007f88852fd000 CR3: 000000010619a003 CR4: 00000000003706e0
kernel: [  158.720926] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kernel: [  158.720927] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kernel: [  158.720928] Call Trace:
kernel: [  158.720929]  <TASK>
kernel: [  158.720930]  ? __sta_info_destroy_part2+0x243/0x330 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.720968]  ? __warn+0x81/0x130
kernel: [  158.720971]  ? __sta_info_destroy_part2+0x243/0x330 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721009]  ? report_bug+0x171/0x1a0
kernel: [  158.721012]  ? handle_bug+0x3c/0x80
kernel: [  158.721014]  ? exc_invalid_op+0x17/0x70
kernel: [  158.721015]  ? asm_exc_invalid_op+0x1a/0x20
kernel: [  158.721018]  ? __sta_info_destroy_part2+0x243/0x330 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721055]  ? __sta_info_destroy_part2+0x23b/0x330 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721092]  __sta_info_flush+0x169/0x1f0 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721129]  ieee80211_set_disassoc+0x16c/0x620 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721180]  ieee80211_mgd_deauth+0x13f/0x3d0 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721229]  cfg80211_mlme_deauth+0xba/0x1e0 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721281]  cfg80211_mlme_down+0x65/0x90 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721322]  cfg80211_disconnect+0x180/0x1f0 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721364]  cfg80211_netdev_notifier_call+0x141/0x4d0 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721398]  ? iwl_mvm_send_cmd+0x1f/0x60 [iwlmvm 4d6ea748ec60ea85998f2ec1b1a3b5662de65bc7]
kernel: [  158.721421]  ? iwl_mvm_mc_iface_iterator+0xcd/0xf0 [iwlmvm 4d6ea748ec60ea85998f2ec1b1a3b5662de65bc7]
kernel: [  158.721436]  ? __iterate_interfaces+0x9d/0x110 [mac80211 cdd5371aa1ed88dac40cf81412c5e9db295da8ba]
kernel: [  158.721483]  ? __pfx_iwl_mvm_mc_iface_iterator+0x10/0x10 [iwlmvm 4d6ea748ec60ea85998f2ec1b1a3b5662de65bc7]
kernel: [  158.721498]  ? iwl_mvm_send_cmd_pdu+0x62/0xb0 [iwlmvm 4d6ea748ec60ea85998f2ec1b1a3b5662de65bc7]
kernel: [  158.721517]  ? rtnl_is_locked+0x15/0x20
kernel: [  158.721520]  ? inetdev_event+0x3d/0x6f0
kernel: [  158.721522]  ? iwl_mvm_recalc_multicast+0x5d/0xa0 [iwlmvm 4d6ea748ec60ea85998f2ec1b1a3b5662de65bc7]
kernel: [  158.721537]  notifier_call_chain+0x5a/0xd0
kernel: [  158.721539]  __dev_close_many+0x5f/0x110
kernel: [  158.721542]  dev_close_many+0x8f/0x150
kernel: [  158.721545]  dev_close+0x83/0xb0
kernel: [  158.721547]  cfg80211_shutdown_all_interfaces+0x4d/0xf0 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721580]  cfg80211_rfkill_set_block+0x2a/0x40 [cfg80211 e28223dc89cd16b9f23c60caf67620e898ecaa45]
kernel: [  158.721613]  rfkill_set_block+0x91/0x160 [rfkill 6bccb42710ce191a7a8dcfaa2e697287262933bd]
kernel: [  158.721619]  rfkill_fop_write+0x161/0x200 [rfkill 6bccb42710ce191a7a8dcfaa2e697287262933bd]
kernel: [  158.721623]  vfs_write+0xef/0x420
kernel: [  158.721626]  ? do_sys_openat2+0x97/0xe0
kernel: [  158.721628]  ? __fget_light+0x99/0x100
kernel: [  158.721630]  ksys_write+0xbb/0xf0
kernel: [  158.721632]  do_syscall_64+0x5d/0x90
kernel: [  158.721634]  ? syscall_exit_to_user_mode+0x2b/0x40
kernel: [  158.721636]  ? do_syscall_64+0x6c/0x90
kernel: [  158.721638]  ? syscall_exit_to_user_mode+0x2b/0x40
kernel: [  158.721639]  ? do_syscall_64+0x6c/0x90
kernel: [  158.721640]  ? syscall_exit_to_user_mode+0x2b/0x40
kernel: [  158.721641]  ? do_syscall_64+0x6c/0x90
kernel: [  158.721643]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
kernel: [  158.721645] RIP: 0033:0x7f91dea3506f
kernel: [  158.721670] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 19 4d f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 6c 4d f8 ff 48
kernel: [  158.721671] RSP: 002b:00007fffda52b9e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
kernel: [  158.721673] RAX: ffffffffffffffda RBX: 000000000000001c RCX: 00007f91dea3506f
kernel: [  158.721674] RDX: 0000000000000008 RSI: 00007fffda52ba28 RDI: 000000000000001c
kernel: [  158.721674] RBP: 00007fffda52ba90 R08: 0000000000000000 R09: 0000000000000007
kernel: [  158.721675] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
kernel: [  158.721676] R13: 0000000000000000 R14: 0000557f85173b60 R15: 0000557f851e0130
kernel: [  158.721677]  </TASK>
kernel: [  158.721678] ---[ end trace 0000000000000000 ]---

If someone has an idea…

Thanks !

I may not understand what the issue is here, so disregard if I am way off base:

Does the laptop have a physical button to disable wifi?
How about just disconnecting via networkmanager?

Hello,
What kernel are you using ?
inxi tells 6.6.6-2 but your crash log tells 6.6.5-3 ?

Hello :slight_smile:

No, I doesn’t have a button to turn off Wi-Fi :wink:
I tried with nmcli and I just tried in “Settings” menu, same problem.

I am currently on kernel 6.6.6-2 (after read other threads) but when I extracted the logs, I was on 6.6.5-3.

Dec 14 11:00:47 workstation kernel: [ 5330.463393] CPU: 1 PID: 603 Comm: NetworkManager Not tainted 6.6.6-2-MANJARO #1 01b86cfc8224206d96efda23c623185a13eea0bb

You are not alone to have this problem.
Perhaps hardware related ?

https://discussion.fedoraproject.org/t/wifi-button-causes-system-crash/97910/5

Thanks for the thread. It actually looks like the same type of problem.
If it’s a hardware problem, I didn’t have the problem months ago…

I didn’t try to revert the kernel to 5.x version, but, even if it’s work, I don’t want to stay on it :frowning:

I have not said it is a hardware failure, but that it is hardware related.
If you read the Fedora discussion you discover that the hardware is exactly the same as yours. A special hardware configuration can trigger a bug. The kernel code is full of specials “quirks” to handle that sort of problem.

Oh, I didn’t see it earlier ! Indeed, same “iwlwifi” drivers, maybe I should try to recompile it. pfff -_-

I tried on Debian 12 with the 6.1 stable kernel (nor backports) and I’ve the problem. Soooo weird.
Maybe I will find something in bios.

EDIT : OK, I tried a factory reset of the BIOS, the problem is still here…
It’s tiring me out, I’m going to try to change the Wi-Fi card, hoping to recover something other than Intel.

The latest available 6.1.x and 6.6.x kernels (in the last few days) have addressed recent common WiFi issues. You might try updating to those respective kernels to see if your issue is also resolved.

Report back if they didn’t help. Cheers.

Yeap. I said in my first message that I was on the new compiled 6.6.6-2-MANJARO kernel :slight_smile:
And today, on the 6.6.7. Problem still there :frowning:

Yes. My intention was to highlight 6.6.7 was available now. Perhaps you could ask a new question: “Which WiFi card should I buy?”, or similar. I don’t use WiFi, so am not much help in that regard. Good luck.

I understand your opinion but, since it’s a laptop, it’s rather difficult to choose which Wi-Fi card to use/buy :D, especially since it’s my work laptop :wink:

Ah, well, your comment lead me astray: :wink:

However, there are external options (USB) you might consider; albeit not the ideal solution. Good luck.

Since the card itself is supported by iwlwifi - one is left to think of a flaky card - perhaps due to overheat - electronics tend to be sensitive to that.

Have you cleaned you system inside for dust?

USB wireless dongles comes at very low prices - since it is a work laptop - if it were me I would have talked to the IT dept. of my employer to get a replacement.

You could use rfkill on the command line to shutdown the device - see if this change the behavior.

man rfkill

I have the same problem in arch linux.
the kernel freezes whenever i do:

  1. nmcli r wifi off
  2. turn the wifi off from gnome gui

also rfkill stops working after trying to turn the wifi off.

i have tested in 6.6.5.16.realtime1-1-rt and 6.1.69.lts-1

my laptop is dell precision 5540 with “Intel Corporation Wireless-AC 9260” network controller

Already checked. The laptop is clean. Besides, the plastic is cheap, I cracked it when I opened it… :man_facepalming:

Same problem when using rfkill block:smiling_face_with_tear:

Moreover, I note that via rfkill, the card is referenced “dell-wifi”.
I would try the support but I’m afraid of wasting time for nothing…

I have the same problem so as 2 of my colleagues here at work using DELL Latitude 55xx laptops.

It started to happen after kernel 6+ updates on Fedora. I switched to Garuda Linux which is based on Arch and it still happens, and someone above said he/she had the same problem using Debian.

This is not a hardware issue, this is ‘iwlwifi’ related and so kernel related.

Still happening as of today with kernel v6.6.10.

Kernel logs: https://pastebin.com/raw/bUWUAAUf

I suggest you upgrade your kernel to the latest 6.6.x iteration.

There was an apparent regression affecting 6.5/6.6 as well as the 6.1 LTS that caused WiFi issues for a number of users. The latest iterations have brought some resolution.

Naturally, if your issue lies elsewhere, this won’t help much.

Cheers.

Thank you for your suggestion @soundofthunder

In the meantime, I’ve checked 6.7.0 and while the freezing issue is gone on RF_KILL, iwlwifi module still records a lot of garbage in the system log. Just adding this for the record: https://pastebin.com/raw/gpPmVCGC

So based on the few tests I’ve just made, 6.7.0 seems to fix it.