You are not logged in.

#1 2021-10-10 23:01:14

itaranto
Member
Registered: 2020-08-28
Posts: 5

Wireless network interfaces not showing up frequently (iwlwifi)

I would say that more than half of my boots don't have the "wlan0" interface.
When the interface is missing, in most cases (but not all), I see the following error in dmesg:

$ journalctl -b -1 -k
...
Oct 10 19:07:03 itaranto-laptop kernel: ------------[ cut here ]------------
Oct 10 19:07:03 itaranto-laptop kernel: WARNING: CPU: 4 PID: 457 at net/wireless/nl80211.c:7771 nl80211_get_reg_do+0x23c/0x2b0 [cfg80211]
Oct 10 19:07:03 itaranto-laptop kernel: Modules linked in: dell_rbtn ccm algif_aead snd_hda_codec_hdmi des_generic libdes ecb algif_skcipher snd_ctl_led cmac md4 algif_hash af_alg snd_soc_skl snd_hda_codec_realtek snd_hda_codec_generic snd_soc_hdac_hda iptable_filter snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match snd_soc_acpi snd_soc_core intel_tcc_cooling dell_laptop(+) x86_pkg_temp_thermal snd_compress intel_powerclamp dell_wmi iwlmvm coretemp iTCO_wdt intel_pmc_bxt ledtrig_audio ac97_bus ee1004 mei_wdt mei_hdcp dell_smbios iTCO_vendor_support snd_pcm_dmaengine intel_rapl_msr kvm_intel mac80211 intel_wmi_thunderbolt i915 snd_hda_intel dell_wmi_sysman(+) snd_intel_dspcfg firmware_attributes_class wmi_bmof libarc4 dell_wmi_descriptor snd_intel_sdw_acpi dcdbas vfat dell_smm_hwmon i2c_algo_bit fat kvm snd_hda_codec iwlwifi ttm snd_hda_core irqbypass rapl snd_hwdep intel_cstate drm_kms_helper intel_uncore snd_pcm processor_thermal_device_pci_legacy cfg80211 cec processor_thermal_device
Oct 10 19:07:03 itaranto-laptop kernel:  snd_timer snd processor_thermal_rfim i2c_i801 intel_gtt processor_thermal_mbox agpgart processor_thermal_rapl pcspkr e1000e soundcore rfkill syscopyarea mei_me intel_rapl_common sysfillrect i2c_smbus intel_lpss_pci intel_lpss ucsi_acpi sysimgblt mei intel_soc_dts_iosf fb_sys_fops idma64 intel_xhci_usb_role_switch intel_pch_thermal typec_ucsi tpm_crb typec roles i2c_hid_acpi i2c_hid wmi tpm_tis tpm_tis_core dell_smo8800 video int3400_thermal int3403_thermal int340x_thermal_zone acpi_thermal_rel intel_hid mac_hid sparse_keymap acpi_pad pkcs8_key_parser crypto_user drm fuse bpf_preload ip_tables x_tables xfs libcrc32c crc32c_generic usbhid dm_crypt cbc encrypted_keys dm_mod trusted asn1_encoder tee tpm rng_core rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel crypto_simd cryptd i8042 xhci_pci rtsx_pci xhci_pci_renesas serio
Oct 10 19:07:03 itaranto-laptop kernel: CPU: 4 PID: 457 Comm: iwd Not tainted 5.14.9-zen2-1-zen #1 812b4cdd502ee3a0db71beab30e2d7813f7016a4
Oct 10 19:07:03 itaranto-laptop kernel: Hardware name: Dell Inc. Latitude 5590/0MM81M, BIOS 1.17.0 06/02/2021
Oct 10 19:07:03 itaranto-laptop kernel: RIP: 0010:nl80211_get_reg_do+0x23c/0x2b0 [cfg80211]
Oct 10 19:07:03 itaranto-laptop kernel: Code: 0c 01 00 00 00 e8 e4 71 e4 d5 85 c0 74 cc e9 f5 fe ff ff 48 89 ef 48 89 04 24 e8 ff 6a 22 d6 e8 da a6 25 d6 48 8b 04 24 eb 84 <0f> 0b 48 89 ef e8 ea 6a 22 d6 e8 c5 a6 25 d6 b8 ea ff ff ff e9 6b
Oct 10 19:07:03 itaranto-laptop kernel: RSP: 0018:ffffb985c0913b00 EFLAGS: 00010202
Oct 10 19:07:03 itaranto-laptop kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
Oct 10 19:07:03 itaranto-laptop kernel: RDX: ffff9dacc3c40008 RSI: 0000000000000000 RDI: ffff9dacc3c402e0
Oct 10 19:07:03 itaranto-laptop kernel: RBP: ffff9dacc2a6e000 R08: 0000000000000004 R09: ffff9dacc32f7014
Oct 10 19:07:03 itaranto-laptop kernel: R10: 0000000000000021 R11: 0000000000000004 R12: ffffb985c0913c10
Oct 10 19:07:03 itaranto-laptop kernel: R13: ffff9dacc32f7014 R14: 0000000000000000 R15: ffff9dacc3c402e0
Oct 10 19:07:03 itaranto-laptop kernel: FS:  00007f13b7591740(0000) GS:ffff9dafde500000(0000) knlGS:0000000000000000
Oct 10 19:07:03 itaranto-laptop kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 10 19:07:03 itaranto-laptop kernel: CR2: 000055dbe898c560 CR3: 00000001028a4006 CR4: 00000000003706e0
Oct 10 19:07:03 itaranto-laptop kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Oct 10 19:07:03 itaranto-laptop kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Oct 10 19:07:03 itaranto-laptop kernel: Call Trace:
Oct 10 19:07:03 itaranto-laptop kernel:  genl_rcv_msg+0x1d1/0x440
Oct 10 19:07:03 itaranto-laptop kernel:  ? __cfg80211_rdev_from_attrs+0x1d0/0x1d0 [cfg80211 de3c859027658e2197242dbb15f0955eedc28c2f]
Oct 10 19:07:03 itaranto-laptop kernel:  ? nl80211_send_regdom.constprop.0+0x1b0/0x1b0 [cfg80211 de3c859027658e2197242dbb15f0955eedc28c2f]
Oct 10 19:07:03 itaranto-laptop kernel:  ? netlink_recvmsg+0x39d/0x470
Oct 10 19:07:03 itaranto-laptop kernel:  ? genl_get_cmd+0x130/0x130
Oct 10 19:07:03 itaranto-laptop kernel:  netlink_rcv_skb+0x5b/0x100
Oct 10 19:07:03 itaranto-laptop kernel:  genl_rcv+0x24/0x40
Oct 10 19:07:03 itaranto-laptop kernel:  netlink_unicast+0x270/0x410
Oct 10 19:07:03 itaranto-laptop kernel:  netlink_sendmsg+0x23b/0x480
Oct 10 19:07:03 itaranto-laptop kernel:  sock_sendmsg+0x5e/0x60
Oct 10 19:07:03 itaranto-laptop kernel:  __sys_sendto+0x181/0x1b0
Oct 10 19:07:03 itaranto-laptop kernel:  __x64_sys_sendto+0x20/0x30
Oct 10 19:07:03 itaranto-laptop kernel:  do_syscall_64+0x5c/0x80
Oct 10 19:07:03 itaranto-laptop kernel:  ? do_syscall_64+0x69/0x80
Oct 10 19:07:03 itaranto-laptop kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xae
Oct 10 19:07:03 itaranto-laptop kernel: RIP: 0033:0x7f13b7693c10
Oct 10 19:07:03 itaranto-laptop kernel: Code: c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 55 48 83 ec 20 48
Oct 10 19:07:03 itaranto-laptop kernel: RSP: 002b:00007ffd26e4b298 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
Oct 10 19:07:03 itaranto-laptop kernel: RAX: ffffffffffffffda RBX: 000055dbe8c1b870 RCX: 00007f13b7693c10
Oct 10 19:07:03 itaranto-laptop kernel: RDX: 000000000000001c RSI: 000055dbe8c27090 RDI: 0000000000000004
Oct 10 19:07:03 itaranto-laptop kernel: RBP: 000055dbe8c2dab0 R08: 0000000000000000 R09: 0000000000000000
Oct 10 19:07:03 itaranto-laptop kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd26e4b300
Oct 10 19:07:03 itaranto-laptop kernel: R13: 00007ffd26e4b2fc R14: 000055dbe8c25500 R15: 000055dbe897d3fd
Oct 10 19:07:03 itaranto-laptop kernel: ---[ end trace 4a42f4c6dfe3a0d9 ]---
...

Using the fallback initramfs seems to produce this issue less often.

Additional information:

$ uname -a
Linux itaranto-laptop 5.14.9-zen2-1-zen #1 ZEN SMP PREEMPT Fri, 01 Oct 2021 19:03:23 +0000 x86_64 GNU/Linux
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether e4:b9:7a:16:3f:4d brd ff:ff:ff:ff:ff:

Any idea?

Thanks.

Last edited by itaranto (2021-10-10 23:08:01)

Offline

#2 2021-10-11 17:47:29

lopster
Member
Registered: 2021-10-11
Posts: 2

Re: Wireless network interfaces not showing up frequently (iwlwifi)

I've had this same issue for months on my ASRock DeskMini A300. I haven't been able to find a permanent solution.

My workaround when the network doesn't come up is this script:

#!/bin/bash
sudo systemctl restart iwd
sudo systemctl restart dhcpcd

I think it's this bug: https://bugzilla.kernel.org/show_bug.cgi?id=208599

I haven't tried patching the kernel as mentioned in that thread. I don't think the iwlwifi.conf workaround did anything for me but maybe it would help in your case.

Offline

#3 2021-10-11 18:53:56

itaranto
Member
Registered: 2020-08-28
Posts: 5

Re: Wireless network interfaces not showing up frequently (iwlwifi)

Thanks for the response!

sudo systemctl restart iwd

That fixed it for me.

systemctl restart dhcpcd

Wasn't necessary for me, are you sure that's absolutely required?

Anyway, it seems to be a known issue: https://wiki.archlinux.org/title/Iwd#Re … after_boot

There it's suggested to add a delay to the "iwd.service" unit file, but instead of doing that I followed what is suggested here.
I created a drop-in file "/etc/systemd/system/iwd.service.d/override.conf" with:

[Service]
ExecStartPre=ip link set wlan0 up

And so far it hasn't failed...

The "modprobe" workaround suggested here didn't work though.

Offline

#4 2021-10-11 23:50:53

lopster
Member
Registered: 2021-10-11
Posts: 2

Re: Wireless network interfaces not showing up frequently (iwlwifi)

itaranto wrote:
systemctl restart dhcpcd

Wasn't necessary for me, are you sure that's absolutely required?

Probably not required. I just found something that did the job for me and went with it. I think iwd can do dhcp on it's own so dhcpcd may not even be needed on your setup.

Anyway, it seems to be a known issue: https://wiki.archlinux.org/title/Iwd#Re … after_boot

There it's suggested to add a delay to the "iwd.service" unit file, but instead of doing that I followed what is suggested here.
I created a drop-in file "/etc/systemd/system/iwd.service.d/override.conf" with:

[Service]
ExecStartPre=ip link set wlan0 up

And so far it hasn't failed...

Thanks for pointing the override out. I'm giving it a try.

Offline

Board footer

Powered by FluxBB