WiFi suddenly stopped connecting

Basically getting Activation of Network Connection Failed error.

I am a complete linux noob using Manjaro on an HP Elitebook. Please help me out. It was all working fine but suddenly the wifi tripped and didn’t connect at all since then. I tried using another wifi and the hotspot from my phone. Nothing works.

lspci shows the following devices:

Wireless Controller [0d40]: Intel Corporation XMM7560 LTE Advanced Pro Modem (rev 01)
Network Controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)

using sudo dmesg -w I get the following error:

ath11k_pci: Failed to set the requested Country regulatory setting

twice and some wlp2s0 authentication logs.

Please let me know what else I could add here to get the help I need. Thanks in advance.

Hi @generic_linux_n00b, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Also, please provide the output of:

rfkill

…as per the below instructions on how to provide terminal output.

Hope you manage!


:bangbang: Tip: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Hi Mirdarthos, thanks for your response!

I am currently using my cellphone for this since laptop won’t connect.

‘rfkill’ shows both wlan and bluetooth as ‘unblocked’ (both SOFT and HARD)

Before diving into this, which I’m not sure as to how to go about it, in any case, have you tried with a different kernel? That might be it. If not that and the driver is installed, then I think it points to a hardware problem…

It’s going to be tricky trying stuff without any connection …

Does tethering your phone via bluetooth or USB work?

What about this one?

ath11k_pci: Failed to set the requested Country regulatory setting

I can’t imagine the driver to be the issue, as I’ve never had this problem since I got the laptop. The problem started suddenly while I was working, during which I didn’t do any system updates.

Could you please tell me how I can try a different kernel?

:man_shrugging:

Don’t use it, so don’t know. But I think it would…

Try checking if the driver for your device is loaded with:

sudo inxi -N

Mine, as example:

$ sudoi inxi -N
[sudo] password for mirdarthos:
Network:
Device-1: Intel Ethernet I219-V driver: e1000e

For a different kernel, you need some sort of internet connection…

For the wireless Network Adapter ‘ath11k_pci’ and for Ethernet Adapter ‘r8152’ drivers are installed.

If you have synced updates without restarting your system - modules may have been updated and only loadable until after restart.

But that is a guess - the wifi suddenly stopped indicates a restart may be necessary.

2 Likes

On my phone, I connect the USB cable, say yes to share data, then go to Settings, scroll down to Connectivity, Tethering, USB tethering,

And Manjaro sees it as a wired connection

You could always try USB tethering for internet connection with your phone. And do the sync/update/kernel installation that way…

please use the package manager and update “linux-firmware”
may you post the output of

iw reg get
➜  ~ iw reg get
global
country 00: DFS-UNSET
	(755 - 928 @ 2), (N/A, 20), (N/A), PASSIVE-SCAN
	(2402 - 2472 @ 40), (N/A, 20), (N/A)
	(2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, PASSIVE-SCAN
	(5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN
	(5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, PASSIVE-SCAN
	(5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, PASSIVE-SCAN
	(5735 - 5835 @ 80), (N/A, 20), (N/A), PASSIVE-SCAN
	(57240 - 63720 @ 2160), (N/A, 0), (N/A)

phy#0 (self-managed)
country US: DFS-FCC
	(2402 - 2472 @ 40), (6, 30), (N/A)
	(5170 - 5250 @ 80), (N/A, 24), (N/A), AUTO-BW
	(5250 - 5330 @ 80), (N/A, 24), (0 ms), DFS, AUTO-BW
	(5490 - 5730 @ 160), (N/A, 24), (0 ms), DFS, AUTO-BW
	(5735 - 5895 @ 160), (N/A, 30), (N/A), AUTO-BW
	(5945 - 7125 @ 160), (N/A, 24), (N/A), AUTO-BW

@Olli it seems everything is up-to-date:

➜  ~ pamac install fwupd
Preparing...
Warning: fwupd-1.8.14-1 is up to date -- skipping
Nothing to do.
Transaction successfully finished.
➜  ~ pamac install fwupd-efi
Preparing...
Warning: fwupd-efi-1.4-1 is up to date -- skipping
Nothing to do.
Transaction successfully finished.
➜  ~ pamac install gnome-firmware 
Preparing...
Warning: gnome-firmware-43.0-1 is up to date -- skipping
Nothing to do.
Transaction successfully finished.

He specifically mentioned “linux-firmware”, in quotes. so that’s literally:

So try

pamac install linux-firmware

I have done several restarts since then. Didn’t help.

➜  ~ pamac install linux-firmware        
Preparing...
Warning: linux-firmware-20230310.588dd07-1 is up to date -- skipping
Nothing to do.
Transaction successfully finished.

@Mirdarthos also sudo pacman -Syu is up to date, nothing to do

OK, so try

pamac install linux-firmware --overwite='/usr/*'

Note:

The --overwrite= argument can wreck your system, so use with care!

If this doesn’t help, I’m all out of ideas. Sorry.

may you post the output of

inxi --admin --verbosity=7 --filter --width

to get the basic infos of your system. i can remember that there had been issues with wifi-card “drivers” and regional restrictions in the past, but this should be solved for longer now. i wonder that your system seems to be still affected by this but the atheros-chipsets (it seems you run them) do have some traps from time to time.

System:
  Kernel: 6.1.25-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-6.1-x86_64
    root=UUID=0b1156b1-5836-42f1-afd2-bd03700dd772 rw rootflags=subvol=@ quiet
    cryptdevice=UUID=2dc2da8c-2ab8-4ee9-92c9-f25baefbd259:luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259
    root=/dev/mapper/luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 splash
    apparmor=1 security=apparmor udev.log_priority=3 amd_pstate=passive
  Desktop: GNOME v: 43.4 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP EliteBook 845 14 inch G9 Notebook PC
    v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8990 v: KBC Version 09.48.00 serial: <superuser required>
    UEFI: HP v: U82 Ver. 01.03.01 date: 10/19/2022
Battery:
  ID-1: BAT0 charge: 19.4 Wh (37.3%) condition: 52.0/51.3 Wh (101.4%)
    volts: 12.1 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: charging cycles: 42
Memory:
  RAM: total: 22.8 GiB used: 3.08 GiB (13.5%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: AMD Ryzen 7 PRO 6850U with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 3+ gen: 4 level: v3 note: check built: 2022 process: TSMC n6 (7nm)
    family: 0x19 (25) model-id: 0x44 (68) stepping: 1 microcode: 0xA404102
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB
    desc: 1x16 MiB
  Speed (MHz): avg: 863 high: 2662 min/max: 400/4768 boost: enabled scaling:
    driver: amd-pstate governor: schedutil cores: 1: 2570 2: 400 3: 400 4: 400
    5: 531 6: 1185 7: 2662 8: 400 9: 1469 10: 400 11: 400 12: 400 13: 400
    14: 400 15: 618 16: 1186 bogomips: 86282
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists erms extapic
    extd_apicid f16c flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht
    hw_pstate ibpb ibrs ibs invpcid irperf lahf_lm lbrv lm mba mca mce
    misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl npt
    nrip_save nx ospke osvw overflow_recov pae pat pausefilter pclmulqdq
    pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt
    pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sha_ni
    skinit smap smca smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor
    svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl
    v_vmsave_vmload vaes vgif vmcb_clean vme vmmcall vpclmulqdq wbnoinvd wdt
    x2apic xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Rembrandt [Radeon 680M] vendor: Hewlett-Packard driver: amdgpu
    v: kernel arch: RDNA-2 code: Navi-2x process: TSMC n7 (7nm) built: 2020-22
    pcie: gen: 4 speed: 16 GT/s lanes: 16 ports: active: DP-8,eDP-1 empty: DP-1,
    DP-10, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-9, HDMI-A-1 bus-ID: e4:00.0
    chip-ID: 1002:1681 class-ID: 0300 temp: 38.0 C
  Device-2: Quanta HP 5MP Camera type: USB driver: uvcvideo bus-ID: 5-1:2
    chip-ID: 0408:545a class-ID: fe01 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell driver: X: loaded: amdgpu
    unloaded: modesetting,radeon alternate: fbdev,vesa dri: radeonsi
    gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1200 s-size: <missing: xdpyinfo>
  Monitor-1: DP-8 mapped: DisplayPort-7 pos: right model: Dell U2414H
    serial: <filter> built: 2016 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 mapped: eDP pos: primary,left model: InfoVision
    Optronics/Kunshan 0x8cbe serial: <filter> built: 2021 res: 1920x1200 hz: 60
    dpi: 161 gamma: 1.2 size: 302x189mm (11.89x7.44") diag: 356mm (14")
    ratio: 16:10 modes: max: 1920x1200 min: 640x480
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: AMD Radeon Graphics (rembrandt
    LLVM 15.0.7 DRM 3.49 6.1.25-1-MANJARO) direct-render: Yes
Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 9-1.5:10 pcie: gen: 4 chip-ID: 0bda:4014 speed: 16 GT/s
    class-ID: 0102 lanes: 16 serial: <filter> bus-ID: e4:00.1
    chip-ID: 1002:1640 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
    driver: snd_pci_acp6x v: kernel alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
    snd_pci_acp5x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 4 speed: 16 GT/s
    lanes: 16 bus-ID: e4:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: e4:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-4: Realtek USB Audio type: USB driver: snd-usb-audio
  API: ALSA v: k6.1.25-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: off tools: pw-cli
  Server-3: PulseAudio v: 16.1 status: active tools: pacat,pactl
Network:
  Device-1: Qualcomm QCNFA765 Wireless Network Adapter vendor: Foxconn
    driver: ath11k_pci v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 17cb:1103 class-ID: 0280
  IF: wlp2s0 state: down mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 10-1.2:9 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enp229s0f4u1u2 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-2: enp228s0f4u1 state: unknown speed: -1 duplex: half mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-3: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
  Message: Output throttled. IPs: 3; Limit: 10; Override: --limit [1-x;-1
    all]
  IF-ID-4: wwan0 state: down mac: N/A
  WAN IP: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai type: USB driver: btusb v: 0.8 bus-ID: 1-3:2
    chip-ID: 0489:e0d6 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 maj-min: 254:0
    type: LUKS dm: dm-0 size: 476.64 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:2 size: 476.64 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 52.27 GiB (11.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVL4512HBLU-00BH1
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: HPS3NHAV temp: 28.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 52.27 GiB (11.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 label: N/A
    uuid: 0b1156b1-5836-42f1-afd2-bd03700dd772
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 3.1 MiB (1.0%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 6615-EE3D
  ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 52.27 GiB (11.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 label: N/A
    uuid: 0b1156b1-5836-42f1-afd2-bd03700dd772
  ID-4: /var/cache raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 52.27 GiB (11.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 label: N/A
    uuid: 0b1156b1-5836-42f1-afd2-bd03700dd772
  ID-5: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
    used: 52.27 GiB (11.0%) fs: btrfs dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-2dc2da8c-2ab8-4ee9-92c9-f25baefbd259 label: N/A
    uuid: 0b1156b1-5836-42f1-afd2-bd03700dd772
Swap:
  Alert: No swap data was found.
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: Foxconn / Hon Hai type: Bluetooth driver: btusb
    interfaces: 2 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 0489:e0d6
    class-ID: e001
  Device-2: 1-4:3 info: Synaptics type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 06cb:00f0
    class-ID: ff00 serial: <filter>
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 3 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-1:6 info: Qualcomm Fairphone 4 5G type: CDC-Data
    driver: rndis_host interfaces: 2 rev: 2.1 speed: 480 Mb/s power: 500mA
    chip-ID: 05c6:f00e class-ID: 0a00 serial: <filter>
  Device-2: 3-2:2 info: MosArt Wireless Mouse type: Mouse
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 100mA
    chip-ID: 062a:4102 class-ID: 0301
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-5: 5-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 5-1:2 info: Quanta HP 5MP Camera type: Video driver: uvcvideo
    interfaces: 5 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 0408:545a
    class-ID: fe01 serial: <filter>
  Hub-6: 6-0:1 info: Linux Foundation 3.0 root hub ports: N/A rev: 3.0
    speed: 5 Gb/s chip-ID: 1d6b:0003 class-ID: 0900
  Hub-7: 7-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-8: 8-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-9: 9-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-10: 9-1:8 info: Microchip (formerly SMSC) Hub ports: 7 rev: 2.1
    speed: 480 Mb/s chip-ID: 0424:2807 class-ID: 0900
  Device-1: 9-1.5:10 info: Realtek USB Audio type: Audio
    driver: snd-usb-audio interfaces: 4 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0bda:4014 class-ID: 0102 serial: <filter>
  Hub-11: 10-0:1 info: Super-speed hub ports: 1 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-12: 10-1:8 info: Microchip (formerly SMSC) Hub ports: 7 rev: 3.1
    speed: 5 Gb/s chip-ID: 0424:5807 class-ID: 0900
  Device-1: 10-1.2:9 info: Realtek RTL8153 Gigabit Ethernet Adapter
    type: Network driver: r8152 interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 256mA
    chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
Sensors:
  System Temperatures: cpu: 43.6 C mobo: N/A gpu: amdgpu temp: 39.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 448 Uptime: 3h 18m wakeups: 2632 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1372 libs: 341 tools: gnome-software,pamac,yay
  pm: flatpak pkgs: 0 Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.26