You are not logged in.

#26 2022-01-10 10:14:42

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,080

Re: iwd frequent disconnects (iwlwifi 0000:02:00.0: Unhandled alg)

Testing more today I got a connection loss that re-established itself - the journal entries relevant are:

Jan 10 10:02:16 lenovo2 kernel: wlan0: AP xx:xx:xx:xx:xx:xx changed bandwidth, new config is 2437.000 MHz, width 2 (2427.000/0 MHz)
Jan 10 10:03:06 lenovo2 systemd-networkd[701]: wlan0: Lost carrier
Jan 10 10:03:06 lenovo2 systemd-networkd[701]: wlan0: Failed to send DHCP RELEASE, ignoring: Operation not permitted
Jan 10 10:03:06 lenovo2 systemd-networkd[701]: wlan0: DHCP lease lost
Jan 10 10:03:07 lenovo2 iwd[700]: Received Deauthentication event, reason: 4, from_ap: false
Jan 10 10:03:07 lenovo2 dbus-daemon[664]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.3' (uid=193 pid=701 comm="/usr/lib/systemd/systemd-networkd " label="kernel")
Jan 10 10:03:07 lenovo2 audit: BPF prog-id=51 op=LOAD
Jan 10 10:03:07 lenovo2 audit: BPF prog-id=52 op=LOAD
Jan 10 10:03:07 lenovo2 audit: BPF prog-id=53 op=LOAD
Jan 10 10:03:07 lenovo2 kernel: audit: type=1334 audit(1641808987.022:234): prog-id=51 op=LOAD
Jan 10 10:03:07 lenovo2 kernel: audit: type=1334 audit(1641808987.022:235): prog-id=52 op=LOAD
Jan 10 10:03:07 lenovo2 kernel: audit: type=1334 audit(1641808987.022:236): prog-id=53 op=LOAD
Jan 10 10:03:07 lenovo2 systemd[1]: Starting Hostname Service...
Jan 10 10:03:07 lenovo2 systemd-networkd[701]: wlan0: DHCPv6 lease lost
Jan 10 10:03:07 lenovo2 systemd-timesyncd[509]: No network connectivity, watching for changes.
Jan 10 10:03:07 lenovo2 dbus-daemon[664]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 10 10:03:07 lenovo2 systemd[1]: Started Hostname Service.
Jan 10 10:03:07 lenovo2 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 10 10:03:07 lenovo2 kernel: audit: type=1130 audit(1641808987.064:237): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 10 10:03:07 lenovo2 systemd-hostnamed[3032]: Hostname set to <lenovo2> (static)
Jan 10 10:03:07 lenovo2 kernel: wlan0: authenticate with xx:xx:xx:xx:xx:xx
Jan 10 10:03:07 lenovo2 kernel: wlan0: send auth to xx:xx:xx:xx:xx:xx (try 1/3)
Jan 10 10:03:07 lenovo2 kernel: wlan0: authenticated
Jan 10 10:03:07 lenovo2 kernel: wlan0: associate with xx:xx:xx:xx:xx:xx (try 1/3)
Jan 10 10:03:07 lenovo2 kernel: wlan0: RX AssocResp from 1xx:xx:xx:xx:xx:xx (capab=0x1431 status=0 aid=7)
Jan 10 10:03:07 lenovo2 systemd-networkd[701]: wlan0: Connected WiFi access point: mike-guest (xx:xx:xx:xx:xx:xx)
Jan 10 10:03:07 lenovo2 kernel: wlan0: associated
Jan 10 10:03:07 lenovo2 systemd-networkd[701]: wlan0: Gained carrier

Mike C

Offline

#27 2022-01-11 18:19:04

jprestwo
Member
Registered: 2022-01-06
Posts: 4

Re: iwd frequent disconnects (iwlwifi 0000:02:00.0: Unhandled alg)

mcloaked,

Thank you for the logs, but I don't see any deauths for IWD at least in those logs... There was a bunch of roaming which all was fine (some failed but this is due to no better BSS candidates, totally normal). Nothing really seems wrong from what I can tell.

One thing to note is wpa_supplicant never roamed in those logs you posted so that could be the differentiating factor as far as how both supplicants are interacting with the card. The fact you were seeing those strange "Unhandled Alg" prints tells me the firmware is not behaving right. No idea if roaming could have something to do with it or not. I would at least let linux-wireless know about this behavior with iwlwifi and maybe someone on the driver/FW team could give some insight.

If you happen to get iwmon logs when IWD deauths I'm happy to take another look.

Offline

#28 2022-01-12 11:25:57

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,080

Re: iwd frequent disconnects (iwlwifi 0000:02:00.0: Unhandled alg)

I wonder if there are any parameters for iwd itself that might help - there is a good list of options in the output of 'man iwd.config' including some concerning roaming thresholds. such a 'RoamThreshold'


Mike C

Offline

#29 2022-01-12 21:49:12

jprestwo
Member
Registered: 2022-01-06
Posts: 4

Re: iwd frequent disconnects (iwlwifi 0000:02:00.0: Unhandled alg)

mcloaked wrote:

I wonder if there are any parameters for iwd itself that might help - there is a good list of options in the output of 'man iwd.config' including some concerning roaming thresholds. such a 'RoamThreshold'

You can play with RoamThreshold[5G] to make roaming initiated by IWD less sensitive. Problem is this won't effect roaming if the AP requests it. Currently IWD has no switches to turn this off or alter the behavior. IWD assumes if the AP wants us to roam its for a good reason (high load, low signal, AP going down, etc.).

Offline

Board footer

Powered by FluxBB