NetworkManager failing to connect after seeing printer setup network

Hello,

I keep having this issue with NetworkManager on Manjaro KDE. I have a HP Deskjet printer, which upon restart opens a setup WiFi Network, whose name is something like: “setup=xx> DeskJet 2700 Series”.

I discovered this problem when I had to do some configuration on the printer, normally that network is not on and the printer is connected to my home network.

The issue is that after discovering the setup network, NetworkManager is not capable to connect to my home network until I restart the NetworkManager service through systemctl.

This is my system info:

System:
  Kernel: 5.10.59-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=00a9e317-ba7b-47ba-b833-d95a652fc1ac rw quiet 
  cryptdevice=UUID=afd10076-88aa-49ad-9a95-fe0b596324b8:luks-afd10076-88aa-49ad-9a95-fe0b596324b8 
  root=/dev/mapper/luks-afd10076-88aa-49ad-9a95-fe0b596324b8 apparmor=1 
  security=apparmor 
  resume=/dev/mapper/luks-84eeaf18-1a2f-4578-93e8-bb21c6a37787 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 81F5 v: Lenovo ideapad 330S-15IKB 
  serial: <filter> Chassis: type: 10 v: Lenovo ideapad 330S-15IKB 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <filter> 
  UEFI: LENOVO v: 7SCN36WW date: 10/09/2019 
Battery:
  ID-1: BAT0 charge: 15.8 Wh (56.6%) condition: 27.9/30.0 Wh (92.9%) 
  volts: 8.0 min: 7.4 model: LENOVO BASE-BAT type: Li-poly serial: <filter> 
  status: Charging 
Memory:
  RAM: total: 7.68 GiB used: 3.42 GiB (44.5%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10) 
  microcode: EA cache: L2: 8 MiB bogomips: 32012 
  Speed: 600 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 600 2: 600 3: 600 
  4: 600 5: 600 6: 600 7: 600 8: 600 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
  avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
  cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
  f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
  mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
  pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
  rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
  sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
  tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
  xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Lenovo driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300 
  Device-2: Syntek Integrated Camera type: USB driver: uvcvideo bus-ID: 1-7:3 
  chip-ID: 174f:2426 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: intel unloaded: modesetting alternate: fbdev,vesa display-ID: :0 
  screens: 1 
  Screen-1: 0 s-res: 1280x720 s-dpi: 96 s-size: 338x190mm (13.3x7.5") 
  s-diag: 388mm (15.3") 
  Monitor-1: eDP1 res: 1280x720 dpi: 96 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 21.1.6 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d71 class-ID: 0403 
  Sound Server-1: ALSA v: k5.10.59-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 1.9.19 running: no 
  Sound Server-4: PulseAudio v: 15.0 running: yes 
  Sound Server-5: PipeWire v: 0.3.33 running: yes 
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: Lenovo driver: ath10k_pci v: kernel port: 3040 bus-ID: 01:00.0 
  chip-ID: 168c:0042 class-ID: 0280 
  IF: wlp1s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-4:2 
  chip-ID: 0cf3:e500 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 7 state: up address: see --recommends 
Logical:
  Message: No logical block device data found. 
  Device-1: luks-afd10076-88aa-49ad-9a95-fe0b596324b8 maj-min: 254:0 
  type: LUKS dm: dm-0 size: 922.41 GiB 
  Components: 
  p-1: sda2 maj-min: 8:2 size: 922.42 GiB 
  Device-2: luks-84eeaf18-1a2f-4578-93e8-bb21c6a37787 maj-min: 254:1 
  type: LUKS dm: dm-1 size: 8.8 GiB 
  Components: 
  p-1: sda3 maj-min: 8:3 size: 8.8 GiB 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 3060 bus-ID: 00:17.0 chip-ID: 8086.282a rev: 21 class-ID: 0104 
Drives:
  Local Storage: total: 931.51 GiB used: 100.71 GiB (10.8%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 EVO 1TB 
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  type: SSD serial: <filter> rev: 1B6Q scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 922.41 GiB size: 906.86 GiB (98.31%) 
  used: 100.71 GiB (11.1%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-afd10076-88aa-49ad-9a95-fe0b596324b8 label: N/A 
  uuid: 00a9e317-ba7b-47ba-b833-d95a652fc1ac 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 440 KiB (0.1%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: NO_LABEL 
  uuid: 8947-776F 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/dm-1 maj-min: 254:1 
  mapped: luks-84eeaf18-1a2f-4578-93e8-bb21c6a37787 label: N/A 
  uuid: c03cf2b0-c90b-4974-8e99-e68670da6f0b 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-1:5 info: Logitech M105 Optical Mouse type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 046d:c077 class-ID: 0301 
  Device-2: 1-4:2 info: Qualcomm Atheros type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0cf3:e500 
  class-ID: e001 
  Device-3: 1-7:3 info: Syntek Integrated Camera type: Video driver: uvcvideo 
  interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 174f:2426 
  class-ID: 0e02 serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 39.0 C mobo: 0.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 280 Uptime: 7h 28m wakeups: 6 Init: systemd v: 248 
  tool: systemctl Compilers: gcc: 11.1.0 Packages: pacman: 1487 lib: 365 
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: yakuake inxi: 3.3.06 

Here are the dmesg logs I get when the laptop tries to connect to the network:

[  +4,902077] wlp1s0: authenticate with d8:b6:b7:01:11:ef
[  +0,037410] wlp1s0: send auth to d8:b6:b7:01:11:ef (try 1/3)
[  +0,001937] wlp1s0: authenticated
[  +0,002593] wlp1s0: associate with d8:b6:b7:01:11:ef (try 1/3)
[  +0,003708] wlp1s0: RX AssocResp from d8:b6:b7:01:11:ef (capab=0x411 status=0 aid=2)
[  +0,002844] wlp1s0: associated
[  +7,920592] wlp1s0: deauthenticated from d8:b6:b7:01:11:ef (Reason: 15=4WAY_HANDSHAKE_TIMEOUT)
[ +14,845599] wlp1s0: authenticate with d8:b6:b7:01:11:ef
[  +0,036917] wlp1s0: send auth to d8:b6:b7:01:11:ef (try 1/3)
[  +0,001898] wlp1s0: authenticated
[  +0,006012] wlp1s0: associate with d8:b6:b7:01:11:ef (try 1/3)
[  +0,003809] wlp1s0: RX AssocResp from d8:b6:b7:01:11:ef (capab=0x411 status=0 aid=2)
[  +0,003535] wlp1s0: associated
[  +7,922231] wlp1s0: deauthenticated from d8:b6:b7:01:11:ef (Reason: 15=4WAY_HANDSHAKE_TIMEOUT)
[ago25 17:20] wlp1s0: authenticate with d8:b6:b7:01:11:ef
[  +0,037186] wlp1s0: send auth to d8:b6:b7:01:11:ef (try 1/3)
[  +0,002028] wlp1s0: authenticated
[  +0,002318] wlp1s0: associate with d8:b6:b7:01:11:ef (try 1/3)
[  +0,003724] wlp1s0: RX AssocResp from d8:b6:b7:01:11:ef (capab=0x411 status=0 aid=2)
[  +0,003313] wlp1s0: associated
[  +7,922960] wlp1s0: deauthenticated from d8:b6:b7:01:11:ef (Reason: 15=4WAY_HANDSHAKE_TIMEOUT)
[ +14,856139] wlp1s0: authenticate with d8:b6:b7:01:11:ef
[  +0,037430] wlp1s0: send auth to d8:b6:b7:01:11:ef (try 1/3)
[  +0,001987] wlp1s0: authenticated
[  +0,002045] wlp1s0: associate with d8:b6:b7:01:11:ef (try 1/3)
[  +0,003955] wlp1s0: RX AssocResp from d8:b6:b7:01:11:ef (capab=0x411 status=0 aid=2)
[  +0,003053] wlp1s0: associated
[  +1,654437] wlp1s0: deauthenticating from d8:b6:b7:01:11:ef by local choice (Reason: 3=DEAUTH_LEAVING)

Has anyone experienced this? I’m pretty confident it has something to do with my printer since I reproduced the same situation some times with the same result.

Thanks in advance

I had the same in the past too and the problem went away once the HP printer was configured correctly and was not broadcasting its setup network any more but connected to the home WiFi network on a reserved IP address.

This only happened when I was closer to the printer than to the router while the printer network was not fully configured yet and the network was saved into my network list. Deleting the printer WiFi from my laptop’s network list made the problem go away too.

Nowadays it has an Ethernet cable and its WiFi is turned off because it’s too far away from the router so the speed got too low so I can’t help you more than share the above experience…

:crossed_fingers:

1 Like

Interesting. In my case I didn’t had the setup network saved, and I was much closer to the router than to the printer. The only explanation I can think off is that maybe both networks were using the same frequency bands and somehow that caused the authentication to fail, but I tried the same with my phone and a windows laptop and they had no problem.

Should I maybe report this to NetworkManager? If this happens with the printer maybe the same problem can appear with other device networks.

So did you either:

  • finish setting up the WiFi network of the printer so it’s a client instead of a server?
    XOR
  • turn its WiFi off if you connect to it through USB/Ethernet cable to print?

:thinking:

Oh yes sorry. I did the first. When it is connected to the home network it also provides another wifi network itself called “DIRECT-XX-HP Deskjet 2700 Series” for configuration purposes, but that one gives me zero problems. That’s why I first thought maybe it had something to do with the name of the network, which contained ‘=’ and ‘>’, but that seems dumb.