You are not logged in.

#1 2024-01-19 21:36:30

Iriomote
Member
Registered: 2013-11-10
Posts: 29

[SOLVED] Newer Versions of netctl won't connect to wifi

Hi all,

since March 2022 I could not update netctl.

If I did update my laptop won't connect to my wifi anymore.
Downgrading to Version 1.27 lets me connect.

The service seems to be runnig normally

root@laptop ~# systemctl status netctl-auto@wlan0
● netctl-auto@wlan0.service - Automatic wireless network connection using netctl profiles
     Loaded: loaded (/usr/lib/systemd/system/netctl-auto@.service; enabled; preset: disabled)
     Active: active (running) since Fri 2024-01-19 21:53:28 CET; 7min ago
       Docs: man:netctl.special(7)
    Process: 861 ExecStart=/usr/bin/netctl-auto start wlan0 (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 9118)
     Memory: 9.9M (peak: 10.9M)
        CPU: 1.392s
     CGroup: /system.slice/system-netctl\x2dauto.slice/netctl-auto@wlan0.service
             ├─1190 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlan0.conf -W
             └─1197 wpa_cli -i wlan0 -p /run/wpa_supplicant -B -a /usr/lib/netctl/auto.action

Jan 19 21:53:27 laptop netctl-auto[1098]: Included profile 'whome'
Jan 19 21:53:27 laptop netctl-auto[1105]: Included profile 'wparents'
Jan 19 21:53:27 laptop netctl-auto[1112]: Included profile 'wfriend'
...
Jan 19 21:53:28 laptop systemd[1]: Started Automatic wireless network connection using netctl profiles.

If I try to connect manually it just gives me this generic error:

root@laptop ~# netctl-auto switch-to whome
WPA association/authentication failed for interface 'wlan0'

I am at my wits end.

~edit~
This problem has been solved.

Last edited by Iriomote (2024-02-11 17:52:02)

Offline

#2 2024-01-19 22:48:56

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Is it *only* netctl that you're not updating?
Stop all netctl services, can you still connect w/ wifi-menu (ie. not using netctl-auto)?

Offline

#3 2024-01-20 11:43:37

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Is it *only* netctl that you're not updating?
Stop all netctl services, can you still connect w/ wifi-menu (ie. not using netctl-auto)?

The only other package i'm not updating is ttf-inconsolata.

With the new version it connects for a brief moment, then disconnects and fails.

If I downgrade netctl it works again.

Offline

#4 2024-01-20 14:06:13

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

https://man.archlinux.org/man/extra/net … NVIRONMENT
Enable debug output and check the system journal for what's going on.
https://gitlab.archlinux.org/archlinux/ … type=HEADS looks boring but apparently it's not wpa_supplicant nor dhcpcd that's causing the disconnect…

Offline

#5 2024-01-20 20:59:13

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Jan 20 21:52:39 arschipad kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 20 21:52:39 arschipad kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 20 21:52:39 arschipad kernel: wlan0: authenticated
Jan 20 21:52:39 arschipad kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 20 21:52:39 arschipad kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 20 21:52:39 arschipad kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=32)
Jan 20 21:52:40 arschipad kernel: wlan0: associated
Jan 20 21:52:40 arschipad kernel: wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 20 21:52:41 arschipad kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)

Last edited by Iriomote (2024-01-21 09:34:49)

Offline

#6 2024-01-20 21:18:39

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Please use [code][/code] tags. Edit your post in this regard.
The log just says that you associated and then voluntarily disconnected, but I don't think that "NETCTL_DEBUG=yes" was exported to netctl and in any event that would not show up as a kernel message.

Offline

#7 2024-01-21 10:00:51

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.
The log just says that you associated and then voluntarily disconnected, but I don't think that "NETCTL_DEBUG=yes" was exported to netctl and in any event that would not show up as a kernel message.

Sorry, I edited the post.


For the debug flag I created a file in /etc/profile.d/

root@laptop ~# touch /etc/profile.d/netctl.sh

and just added this and made is executable:

root@laptop ~# cat /etc/profile.d/netctl.sh 
#!/bin/bash

export NETCTL_DEBUG=yes

When I test it after a reboot it seems to work.

root@laptop ~# echo $NETCTL_DEBUG
yes

Then I use journalctl

journalctl -b
Jan 21 10:48:00 laptop systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop rtkit-daemon[1331]: Supervising 7 threads of 4 processes of 1 users.
Jan 21 10:48:04 laptop rtkit-daemon[1331]: Supervising 7 threads of 4 processes of 1 users.
Jan 21 10:48:04 laptop systemd[1]: netctl-auto@wlan0.service: Deactivated successfully.
Jan 21 10:48:04 laptop systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
Jan 21 10:48:04 laptop systemd[1]: Starting Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop netctl-auto[10055]: Included profile 'whome'
...
Jan 21 10:48:05 laptop netctl-auto[10184]: Included profile 'wparents'
Jan 21 10:48:05 laptop kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 21 10:48:05 laptop kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 21 10:48:05 laptop systemd[1]: Started Automatic wireless network connection using netctl profiles.
Jan 21 10:48:09 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:09 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:09 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: authenticated
Jan 21 10:48:09 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 21 10:48:09 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=24)
Jan 21 10:48:09 laptop kernel: wlan0: associated
Jan 21 10:48:09 laptop kernel: wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:09 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:09 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:09 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: authenticated
Jan 21 10:48:09 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:db
Jan 21 10:48:09 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 10:48:09 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:db (capab=0x1411 status=0 aid=27)
Jan 21 10:48:09 laptop kernel: wlan0: associated
Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: authenticate with 04:b4:fe:73:54:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:10 laptop kernel: wlan0: send auth to 04:b4:fe:73:54:dc (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: authenticate with 04:b4:fe:73:54:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:10 laptop kernel: wlan0: send auth to 04:b4:fe:73:54:dc (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: authenticated
Jan 21 10:48:10 laptop kernel: wlan0: waiting for beacon from 04:b4:fe:73:54:dc
Jan 21 10:48:10 laptop kernel: wlan0: associate with 04:b4:fe:73:54:dc (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: RX AssocResp from 04:b4:fe:73:54:dc (capab=0x1511 status=0 aid=1)
Jan 21 10:48:10 laptop kernel: wlan0: associated
Jan 21 10:48:10 laptop kernel: wlan0: Limiting TX power to 27 (30 - 3) dBm as advertised by 04:b4:fe:73:54:dc
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: authenticate with 04:b4:fe:73:54:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:10 laptop kernel: wlan0: send auth to 04:b4:fe:73:54:db (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: authenticate with 04:b4:fe:73:54:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:10 laptop kernel: wlan0: send auth to 04:b4:fe:73:54:db (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: authenticated
Jan 21 10:48:10 laptop kernel: wlan0: waiting for beacon from 04:b4:fe:73:54:db
Jan 21 10:48:10 laptop kernel: wlan0: associate with 04:b4:fe:73:54:db (try 1/3)
Jan 21 10:48:10 laptop kernel: wlan0: RX AssocResp from 04:b4:fe:73:54:db (capab=0x1431 status=0 aid=1)
Jan 21 10:48:10 laptop kernel: wlan0: associated
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:22 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:22 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:22 laptop kernel: wlan0: authenticated
Jan 21 10:48:22 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 21 10:48:22 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:22 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=23)
Jan 21 10:48:22 laptop kernel: wlan0: associated
Jan 21 10:48:22 laptop kernel: wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 21 10:48:22 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:47 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:48:47 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:47 laptop kernel: wlan0: authenticated
Jan 21 10:48:47 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 21 10:48:47 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:48:47 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=29)
Jan 21 10:48:47 laptop kernel: wlan0: associated
Jan 21 10:48:47 laptop kernel: wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 21 10:48:47 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:49:20 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:49:20 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:49:20 laptop kernel: wlan0: authenticated
Jan 21 10:49:20 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 21 10:49:20 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:49:20 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=32)
Jan 21 10:49:20 laptop kernel: wlan0: associated
Jan 21 10:49:20 laptop kernel: wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 21 10:49:20 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:50:09 laptop rtkit-daemon[1331]: Supervising 7 threads of 4 processes of 1 users.
Jan 21 10:50:09 laptop rtkit-daemon[1331]: Supervising 7 threads of 4 processes of 1 users.
Jan 21 10:50:17 laptop kernel: sysrq: This sysrq operation is disabled.
Jan 21 10:50:25 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:dc (local address=a4:4e:31:cb:f8:a8)
Jan 21 10:50:25 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:50:25 laptop kernel: wlan0: authenticated
Jan 21 10:50:25 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:dc
Jan 21 10:50:25 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:dc (try 1/3)
Jan 21 10:50:25 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:dc (capab=0x1011 status=0 aid=33)
Jan 21 10:50:25 laptop kernel: wlan0: associated
Jan 21 10:50:25 laptop kernel: wlan0: Limiting TX power to 23 (23 - 0) dBm as advertised by 1c:ed:6f:ea:8d:dc
Jan 21 10:50:25 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)

Please let me know if I did something wrong, and thank you for bearing with me.

Offline

#8 2024-01-21 10:39:17

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Jan 21 10:48:00 laptop systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop systemd[1]: netctl-auto@wlan0.service: Deactivated successfully.
Jan 21 10:48:04 laptop systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
Jan 21 10:48:04 laptop systemd[1]: Starting Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop netctl-auto[10055]: Included profile 'whome'
...
Jan 21 10:48:05 laptop netctl-auto[10184]: Included profile 'wparents'

This looks like you disabled netctl-auto and it(?) immediately restarted?

systemctl status netctl-auto@wlan0.service

Offline

#9 2024-01-21 12:17:32

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:
Jan 21 10:48:00 laptop systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop systemd[1]: netctl-auto@wlan0.service: Deactivated successfully.
Jan 21 10:48:04 laptop systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
Jan 21 10:48:04 laptop systemd[1]: Starting Automatic wireless network connection using netctl profiles...
Jan 21 10:48:04 laptop netctl-auto[10055]: Included profile 'whome'
...
Jan 21 10:48:05 laptop netctl-auto[10184]: Included profile 'wparents'

This looks like you disabled netctl-auto and it(?) immediately restarted?

systemctl status netctl-auto@wlan0.service

Yes, for testing I install the newer broken package and then restart with

root@laptop ~# systemctl restart netctl-auto@wlan0.service
root@laptop ~# systemctl status netctl-auto@wlan0.service
● netctl-auto@wlan0.service - Automatic wireless network connection using netctl profiles
     Loaded: loaded (/usr/lib/systemd/system/netctl-auto@.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-01-21 13:11:43 CET; 13s ago
       Docs: man:netctl.special(7)
    Process: 93414 ExecStart=/usr/bin/netctl-auto start wlan0 (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 9118)
     Memory: 2.0M (peak: 6.4M)
        CPU: 791ms
     CGroup: /system.slice/system-netctl\x2dauto.slice/netctl-auto@wlan0.service
             ├─93582 wpa_supplicant -q -B -P /run/wpa_supplicant-wlan0.pid -i wlan0 -D nl80211,wext -c/run/netctl/wpa_supplicant-wlan0.conf -W
             └─93586 wpa_cli -i wlan0 -p /run/wpa_supplicant -B -a /usr/lib/netctl/auto.action

Jan 21 13:11:43 laptop netctl-auto[93498]: Included profile 'wparents'
...
Jan 21 13:11:43 laptop netctl-auto[93554]: Included profile 'whome'
Jan 21 13:11:43 laptop systemd[1]: Started Automatic wireless network connection using netctl profiles.

Offline

#10 2024-01-21 13:52:41

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Ok, but the idea was to *not* use the netctl-auto.target here.

As for the auto part:

Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:22 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:47 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:49:20 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:50:25 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)

It first seems to want to switch from 8d:dc to 8d:db and then keeps deauthenticating from 8d:dc - there's probably something "irritating" about the signal quality of those two APs. What are they?
Same band (2.4/5GHz) or same AP on different bands?

Offline

#11 2024-01-21 16:04:16

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Ok, but the idea was to *not* use the netctl-auto.target here.

As for the auto part:

Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:09 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:10 laptop kernel: wlan0: deauthenticating from 04:b4:fe:73:54:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:22 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:48:47 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:49:20 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)
Jan 21 10:50:25 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:dc by local choice (Reason: 1=UNSPECIFIED)

It first seems to want to switch from 8d:dc to 8d:db and then keeps deauthenticating from 8d:dc - there's probably something "irritating" about the signal quality of those two APs. What are they?
Same band (2.4/5GHz) or same AP on different bands?

Oh then I misunderstood.

These are my APs.  One in the living room and one other in the kitchen. They are connected through cable.
Both APs are dual Band. (2.4 and 5 GHz)

For testing I unplugged one AP completely  and disabled the 5GHz Band on the other. But it still didn't work. It just kept disconnecting.

Then I used

systemctl stop netctl-auto@wlan0.service
netctl start whome

to not use netctl-auto and got this

Jan 21 16:43:09 laptop network[230228]: Starting network profile 'whome'...
Jan 21 16:43:10 laptop kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 21 16:43:10 laptop kernel: iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
Jan 21 16:43:10 laptop systemd[1]: Started Networking for netctl profile whome.
Jan 21 16:43:13 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 16:43:13 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:13 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 16:43:13 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:13 laptop kernel: wlan0: authenticated
Jan 21 16:43:13 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:db
Jan 21 16:43:13 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:13 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 2/3)
Jan 21 16:43:13 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:db (capab=0x1411 status=0 aid=34)
Jan 21 16:43:13 laptop kernel: wlan0: associated
Jan 21 16:43:14 laptop kernel: wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 1c:ed:6f:ea:8d:db
Jan 21 16:43:14 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 16:43:18 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 16:43:18 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:18 laptop kernel: wlan0: authenticated
Jan 21 16:43:18 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:db
Jan 21 16:43:18 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:18 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 2/3)
Jan 21 16:43:18 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:db (capab=0x1411 status=0 aid=25)
Jan 21 16:43:18 laptop kernel: wlan0: associated
Jan 21 16:43:19 laptop kernel: wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 1c:ed:6f:ea:8d:db
Jan 21 16:43:20 laptop kernel: wlan0: deauthenticated from 1c:ed:6f:ea:8d:db (Reason: 7=CLASS3_FRAME_FROM_NONASSOC_STA)
Jan 21 16:43:24 laptop kernel: wlan0: authenticate with 1c:ed:6f:ea:8d:db (local address=a4:4e:31:cb:f8:a8)
Jan 21 16:43:24 laptop kernel: wlan0: send auth to 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:24 laptop kernel: wlan0: authenticated
Jan 21 16:43:24 laptop kernel: wlan0: waiting for beacon from 1c:ed:6f:ea:8d:db
Jan 21 16:43:24 laptop kernel: wlan0: associate with 1c:ed:6f:ea:8d:db (try 1/3)
Jan 21 16:43:24 laptop kernel: wlan0: RX AssocResp from 1c:ed:6f:ea:8d:db (capab=0x1411 status=0 aid=28)
Jan 21 16:43:24 laptop kernel: wlan0: associated
Jan 21 16:43:24 laptop kernel: wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 1c:ed:6f:ea:8d:db
Jan 21 16:43:25 laptop kernel: wlan0: deauthenticating from 1c:ed:6f:ea:8d:db by local choice (Reason: 1=UNSPECIFIED)
Jan 21 16:43:26 laptop network[230228]: WPA association/authentication failed for interface 'wlan0'
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Error sending REPLY_SCAN_ABORT_CMD: time out after 2000ms.
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Current CMD queue read_ptr 160 write_ptr 161
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Loaded firmware version: 18.168.6.1 6000g2a-6.ucode
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: HCMD_ACTIVE already clear for command REPLY_SCAN_ABORT_CMD
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | OK                          
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | uPc
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | branchlink1
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | branchlink2
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | interruptlink1
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | interruptlink2
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | data1
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | data2
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | line
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | beacon time
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | tsf low
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | tsf hi
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | time gp1
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | time gp2
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | time gp3
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | uCode version
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | hw version
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | board version
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | hcmd
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr0
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr1
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr2
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr3
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr4
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | isr_pref
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | wait_event
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | l2p_control
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | l2p_duration
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | l2p_mhvalid
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | l2p_addr_match
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | lmpm_pmg_sel
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | timestamp
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: 0x00000000 | flow_handler
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Start IWL Event Log Dump: nothing in log
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Command REPLY_RXON failed: FW Error
Jan 21 16:43:28 laptop kernel: iwlwifi 0000:03:00.0: Error clearing ASSOC_MSK on BSS (-5)
Jan 21 16:43:28 laptop kernel: ieee80211 phy0: Hardware restart was requested
Jan 21 16:43:28 laptop network[230228]: Failed to bring the network up for profile 'whome'
Jan 21 16:43:28 laptop systemd[1]: netctl@whome.service: Main process exited, code=exited, status=1/FAILURE
Jan 21 16:43:28 laptop systemd[1]: netctl@whome.service: Failed with result 'exit-code'.
Jan 21 16:43:28 laptop systemd[1]: netctl@whome.service: Consumed 1.772s CPU time.

Offline

#12 2024-01-21 16:26:26

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

The iwlwifi module collapses under pressure after the client tried to end packages to a non-connected STA (likely race condition because of the heavy flicker)
But don't re-use the existing profile, connect w/ wifi-menu (you don't even have to store that connection)

The only tow changes between the last two releases were https://gitlab.archlinux.org/archlinux/ … 20d5c19fb5 (and I don't assume this to be a PPPoE connection and you probably don't even have ppp installed?) and https://gitlab.archlinux.org/archlinux/ … 78aff178ae
The latter one is a shell script, you could try to update but restore the version of /usr/lib/netctl/globals from the older release - do you use fish or OMZ or something like that?

type printf

Offline

#13 2024-01-22 15:53:02

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

The iwlwifi module collapses under pressure after the client tried to end packages to a non-connected STA (likely race condition because of the heavy flicker)
But don't re-use the existing profile, connect w/ wifi-menu (you don't even have to store that connection)

The only tow changes between the last two releases were https://gitlab.archlinux.org/archlinux/ … 20d5c19fb5 (and I don't assume this to be a PPPoE connection and you probably don't even have ppp installed?) and https://gitlab.archlinux.org/archlinux/ … 78aff178ae
The latter one is a shell script, you could try to update but restore the version of /usr/lib/netctl/globals from the older release - do you use fish or OMZ or something like that?

type printf

I deleted the wifi profile and backed up the globals file.

Then I updated and restored the globals file.

First I tried it with wifi-menu. It created a new profile, but it couldn't connect.
Same with netctl.

journalctl shows the same errors, it just connects for a brief moment then instantly disconnects.

Last edited by Iriomote (2024-01-22 18:23:03)

Offline

#14 2024-01-22 16:03:47

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Did you check on the second part of my post?

Offline

#15 2024-01-22 18:22:36

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Did you check on the second part of my post?

Oh sorry.

ppp is not installed.

My shell is plain old bash.

root@laptop ~# type printf
printf is a shell builtin

Offline

#16 2024-01-22 20:53:52

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Did you also try to replace the /usr/lib/netctl/globals script with the previous version?
(If we can pin it on that commit, it should be easy enough to debug the script)

Offline

#17 2024-01-22 21:46:53

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Did you also try to replace the /usr/lib/netctl/globals script with the previous version?
(If we can pin it on that commit, it should be easy enough to debug the script)

Yes, I have replaced the new Version with the old one.

But it regrettably changed nothing.

I switch between Version  1.27 and 1.29. Is there a way to get my hands on Version 1.28? Maybe this will help further in finding the error.

Offline

#18 2024-01-22 22:15:41

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Ok, that explains a lot…
https://archive.archlinux.org/packages/n/netctl/

Edit: the only change is btw https://gitlab.archlinux.org/archlinux/ … bd08ce6e3f
The critical file is going to be /usr/lib/netctl/wpa, try to add "WPA-PSK-SHA256" to the key_mgmt list

Last edited by seth (2024-01-22 22:23:27)

Offline

#19 2024-01-23 20:31:36

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Ok, that explains a lot…
https://archive.archlinux.org/packages/n/netctl/

Edit: the only change is btw https://gitlab.archlinux.org/archlinux/ … bd08ce6e3f
The critical file is going to be /usr/lib/netctl/wpa, try to add "WPA-PSK-SHA256" to the key_mgmt list

I edited the /usr/lib/netctl/wpa like this:

## /usr/lib/netctl/globals needs to be sourced before this file


## Wrapper around wpa_cli to deal with supplicant configurations that set a
## non-standard control path
# $1: interface name
# $2...: call to the supplicant
wpa_call() {
    local args=( "-i" "$1" )
    shift

    if [[ $WPA_CTRL_DIR ]]; then
        args+=("-p" "$WPA_CTRL_DIR")
    elif [[ $WPAConfigFile ]] && grep -q '^[[:space:]]*ctrl_interface=' "$WPAConfigFile"; then
        WPA_CTRL_DIR=$(sed -n '0,/^[[:space:]]*ctrl_interface=/s///p' "$WPAConfigFile")
        if [[ $WPA_CTRL_DIR == DIR=* ]]; then
            WPA_CTRL_DIR=${WPA_CTRL_DIR:4}
            WPA_CTRL_DIR=${WPA_CTRL_DIR%% GROUP=*}
        fi
        args+=( "-p" "$WPA_CTRL_DIR" )
    fi
    do_debug wpa_cli "${args[@]}" "$@"
}

## Check if an instance of the WPA supplicant is active on an interface
# $1: interface name
wpa_is_active() {
    [[ $(wpa_call "$1" ping 2> /dev/null) == "PONG" ]]
}

## Retrieve the state of an instance of the WPA supplicant
## Displays one of: DISCONNECTED, INTERFACE_DISABLED, INACTIVE, SCANNING,
##                  AUTHENTICATING, ASSOCIATING, ASSOCIATED, 4WAY_HANDSHAKE,
##                  GROUP_HANDSHAKE, COMPLETED
# $1: interface name
wpa_get_state() {
    local state
    state=$(wpa_call "$1" status | grep -m1 '^wpa_state=') || return 1
    echo "${state#wpa_state=}"
}

## Wait until the WPA supplicant reaches a listed state
# $1: timeout
# $2: interface name
# $3...: accepted states
wpa_wait_until_state() {
    local timeout=$1 interface=$2 states=( "${@:3}" )
    timeout_wait "$timeout" \
                 'in_array "$(wpa_get_state "$interface")" "${states[@]}"'
}

## Wait while the WPA supplicant is in a listed state
# $1: timeout
# $2: interface name
# $3...: rejected states
wpa_wait_while_state() {
    local timeout=$1 interface=$2 states=( "${@:3}" )
    timeout_wait "$timeout" \
                 '! in_array "$(wpa_get_state "$interface")" "${states[@]}"'
}

## Wait for the WPA supplicant to finish association and authentication
# $1: timeout
# $2: interface name
# $3...: additional accepted states
wpa_wait_until_completed() {
    local timeout=$1 interface=$2
    shift 2
    if ! wpa_wait_until_state "$timeout" "$interface" "COMPLETED" "$@"; then
        report_error "WPA association/authentication failed for interface '$interface'"
        report_debug "WPA state for interface '$interface': $(wpa_get_state "$interface")"
        return 1
    fi
}

## Start an instance of the WPA supplicant
# $1: interface name
# $2: interface driver(s)
# $3: configuration file
wpa_start() {
    local interface=$1 driver=$2 configuration
    local pidfile="/run/wpa_supplicant-$interface.pid"
    if [[ $3 ]]; then
        configuration="-c$3"
    else
        WPA_CTRL_DIR="/run/wpa_supplicant"
        configuration="-C$WPA_CTRL_DIR"
    fi

    if ! type wpa_supplicant &> /dev/null; then
        report_error "You need to install 'wpa_supplicant'"
        return 127
    fi

    do_debug wpa_supplicant -q -B -P "$pidfile" -i "$interface" -D "$driver" \
                            "$configuration" $WPAOptions >&2

    # Wait up to one second for the pid file to appear
    timeout_wait 1 '[[ -f $pidfile ]]'
}

## Stop an instance of the WPA supplicant
# $1: interface name
wpa_stop() {
    local interface=$1 pidfile="/run/wpa_supplicant-$1.pid"
    # We need this as long as wpa_cli has a different default than netctl
    if [[ -z $WPA_CTRL_DIR && -z $WPAConfigFile ]]; then
        WPA_CTRL_DIR="/run/wpa_supplicant"
    fi

    # Done if wpa_supplicant is already terminated for this interface
    [[ -z $WPA_CTRL_DIR || -e "$WPA_CTRL_DIR/$interface" ]] || return 0

    wpa_call "$interface" terminate > /dev/null
    # Wait up to one second for the pid file to be removed
    if ! timeout_wait 1 '[[ ! -f $pidfile ]]'; then
        kill "$(< "$pidfile")" &> /dev/null
    fi
}

## Scan for networks within range
# $1: interface name
# $2: fields of the wpa_supplicant scan_results
#     1: bssid  2: frequency  3: signal level  4: flags  5: ssid
wpa_supplicant_scan() {
    local interface=$1 fields=$2 spawned_wpa=no essids
    # temp file used, as keeping ESSID's with spaces in their name in arrays
    # is hard, obscure and kinda nasty. This is simpler and clearer.

    [[ $interface ]] || return 1
    essids=$(mktemp --tmpdir essid.XXXXXXXX)

    if ! wpa_is_active "$interface"; then
        wpa_start "$interface" "${WPADriver:-nl80211,wext}" || return 1
        spawned_wpa=yes
    fi

    wpa_call "$interface" scan > /dev/null
    # Wait at least 3 seconds for scan results
    sleep 3
    # Sometimes, that is not enough
    wpa_wait_while_state 7 "$interface" "SCANNING"
    wpa_call "$interface" scan_results |
        tail -n+2 |     # Remove extraneous output
        sort -rn -k3 |  # Sort by signal strength
        sort -u -k5 |   # Remove duplicates
        sort -rn -k3 |  # Re-sort as the removal disorders the list
        cut -f"$fields"  > "$essids"

    if is_yes "$spawned_wpa"; then
        wpa_stop "$interface"
    fi

    # File of 0 length: no ssid's
    if [[ ! -s $essids ]]; then
        rm -f "$essids"
        return 1
    fi

    echo "$essids"
}

## Print a string within quotes, unless it starts with the "-modifier
## Quoted:     string   "string"   '""string"'
## Non-quoted: \"string "\"string" '"string'
# $1: string
wpa_quote() {
    local string=$1
    if [[ $string == \"* ]]; then
        printf '%s' "${string:1}"
    else
        printf '"%s"' "$string"
    fi
}

## Unquote a string returned by wpa_call
## Possible representations of string: "string" 737472696e67 string
# $1: string
wpa_unquote() {
    local string="$1"
    if [[ $string == \"*\" ]]; then
        printf '%s' "${string:1:-1}"
    elif [[ $string == +([[:xdigit:]][[:xdigit:]]) ]]; then
        while [[ $string ]]; do
            printf "\\x${string:0:2}"
            string=${string:2}
        done
    else
        printf '%s' "${string}"
    fi
}

## Create a configuration file for wpa_supplicant without any network blocks
# $1: interface name
wpa_make_config_file() {
    local config_file="$STATE_DIR/wpa_supplicant-$1.conf"

    if [[ -e $config_file ]]; then
        report_debug "The anticipated filename '$config_file' is not available"
        return 1
    fi
    mkdir -p "$STATE_DIR" /run/wpa_supplicant
    if ! : > "$config_file"; then
        report_debug "Could not create the configuration file '$config_file'"
        return 1
    fi

    echo "ctrl_interface=/run/wpa_supplicant" >> "$config_file"
    echo "ctrl_interface_group=${WPAGroup:-wheel}" >> "$config_file"
    [[ $Country ]] && echo "country=$Country" >> "$config_file"
    if is_yes "${AdHoc:-no}"; then
        echo "ap_scan=2" >> "$config_file"
    fi
    echo "$config_file"
}

## Generate a network block for wpa_supplicant
# $Security: type of wireless security
wpa_make_config_block() {
    case $Security in
      none)
        echo "key_mgmt=NONE"
      ;;
      wep)
        echo "key_mgmt=NONE"
        echo "wep_tx_keyidx=0"
        if [[ $Key == +([[:xdigit:]][[:xdigit:]]) ]]; then
            echo "wep_key0=$Key"
        else
            echo "wep_key0=$(wpa_quote "$Key")"
        fi
      ;;
      wpa)
        echo "key_mgmt=WPA-PSK SAE WPA-PSK-SHA256"
        echo "ieee80211w=1"
        if [[ "${#Key}" -eq 64 && $Key == +([[:xdigit:]]) ]]; then
            echo "psk=$Key"
        else
            echo "psk=$(wpa_quote "$Key")"
        fi
      ;;
      wpa-configsection)
        printf '%s\n' "${WPAConfigSection[@]}"
        return
      ;;
      *)
        report_error "Unsupported security setting: '$Security'"
        return 1
      ;;
    esac

    echo "ssid=$(wpa_quote "$ESSID")"
    [[ $AP ]] && echo "bssid=${AP,,}"
    is_yes "${Hidden:-no}" && echo "scan_ssid=1"
    is_yes "${AdHoc:-no}" && echo "mode=1"
    [[ $ScanFrequencies ]] && echo "scan_freq=$ScanFrequencies"
    [[ $Frequency ]] && echo "frequency=$Frequency"
    [[ $Priority ]] && echo "priority=$Priority"
}

## Remove a configuration file for wpa_supplicant
# $1: interface name
wpa_destroy_config_file() {
    local config_file="$STATE_DIR/wpa_supplicant-$1.conf"
    if [[ -f $config_file && -O $config_file ]]; then
        do_debug rm -f "$config_file"
    fi
}


# vim: ft=sh ts=4 et sw=4:

Is this right? Because with this it does not work.

Last edited by Iriomote (2024-01-24 15:02:26)

Offline

#20 2024-01-23 22:29:12

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

The first test would be to restore the previous file to see whether it's the cause.
Then try

        echo "key_mgmt=WPA-PSK-SHA256"
        echo "ieee80211w=2"

Offline

#21 2024-01-24 18:01:04

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

The first test would be to restore the previous file to see whether it's the cause.
Then try

        echo "key_mgmt=WPA-PSK-SHA256"
        echo "ieee80211w=2"

Okay, so updating to Version 1.29 and using the /usr/lib/netctl/wpa from Version 1.27 did the trick.

But I'm still struggling understanding what the issue was, and why it seems nobody else was affected.

root@laptpop /usr/lib/netctl# diff -Naur wpa.1.29 wpa.1.27
--- wpa.1.29    2024-01-24 18:49:28.965770947 +0100
+++ wpa.1.27    2024-01-24 18:47:11.575774757 +0100
@@ -231,8 +231,7 @@
         fi
       ;;
       wpa)
-        echo "key_mgmt=WPA-PSK SAE"
-        echo "ieee80211w=1"
+        echo "proto=RSN WPA"
         if [[ "${#Key}" -eq 64 && $Key == +([[:xdigit:]]) ]]; then
             echo "psk=$Key"
         else

Anyway, thank you very much for bearing with me and helping me so competently.

Offline

#22 2024-01-24 20:24:40

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

Your AP doesn't like something about that configuration.
You might have to manually connect w/ the debug flag enabled to see what specifically*

But it would seem that the AP doesn't support WPA2?? (Is it really old?)
For a quick test, just add the

echo "proto=RSN WPA"

line to the 1.29 version - you'd have to file a bug against https://gitlab.archlinux.org/archlinux/netctl/-/issues - not sure what the response is gonna be hmm

*https://wiki.archlinux.org/title/Wpa_supplicant#Manual
https://wiki.archlinux.org/title/Wpa_su … n_failures

Offline

#23 2024-01-24 21:32:23

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:

Your AP doesn't like something about that configuration.
You might have to manually connect w/ the debug flag enabled to see what specifically*

But it would seem that the AP doesn't support WPA2?? (Is it really old?)
For a quick test, just add the

echo "proto=RSN WPA"

line to the 1.29 version - you'd have to file a bug against https://gitlab.archlinux.org/archlinux/netctl/-/issues - not sure what the response is gonna be hmm

*https://wiki.archlinux.org/title/Wpa_supplicant#Manual
https://wiki.archlinux.org/title/Wpa_su … n_failures

When I create a wpa_supplicant config and manually connect it works. This is the debug output:

wpa_supplicant v2.10
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf 'whome' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'whome' -> '/etc/wpa_supplicant/whome'
Reading configuration file '/etc/wpa_supplicant/whome'
country='DE'
update_config=1
ctrl_interface='/var/run/wpa_supplicant'
Priority group 0
   id=0 ssid='arschibox'
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) - hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: key_mgmt=0x1ff0f enc=0xef auth=0x7 flags=0x840005105b03d0e0 rrm_flags=0x10 probe_resp_offloads=0x0 max_stations=0 max_remain_on_chan=5000 max_scan_ssids=20
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x5f39f4058640
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0104 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=040a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=040b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=040c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=040d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=090a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=090b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=090c multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=090d multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0409506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=7f506f9a09 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0409506f9a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0800 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0801 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=12 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=06 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0a07 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0a11 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0a0b multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0a1a multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=1101 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=1102 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0505 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=0500 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=1301 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=1305 multicast=0
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x5f39f4058640 match=7e506f9a1a multicast=0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR]
nl80211: Mode IEEE 802.11a: 5180[NO_IR] 5200[NO_IR] 5220[NO_IR] 5240[NO_IR] 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[NO_IR] 2472[NO_IR]
wlan0: Own MAC address: a4:4e:31:cb:f8:a8
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
nl80211: set_key failed; err=-22 Invalid argument
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 key_flag=0x10
nl80211: DEL_KEY
   broadcast key
nl80211: set_key failed; err=-22 Invalid argument
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
TDLS: TDLS operation not supported by driver
TDLS: Driver uses internal link setup
TDLS: Driver does not support TDLS channel switching
wlan0: WPS: UUID based on MAC address: c20f6eaf-78ae-571a-9920-3350727df653
ENGINE: Loading builtin engines
ENGINE: Loading builtin engines
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
MBO: Update non-preferred channels, non_pref_chan=N/A
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x5f39f40ca180
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x5f39f40ca180 after 0.000011 second wait
wlan0: nl80211: scan request
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (47) received
wlan0: Own scan request started a scan in 0.000049 seconds
EAPOL: disable timer tick
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x1003 ([UP])
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 3.127822 seconds
nl80211: Received scan results (13 BSSes)
wlan0: BSS: Start scan result update 1
wlan0: BSS: Add new id 0 BSSID 1c:ed:6f:ea:8d:dc SSID 'arschibox' freq 5500
wlan0: BSS: Add new id 1 BSSID e4:fb:5d:5d:cb:e3 SSID 'WLAN-WZK9DA' freq 5260
wlan0: BSS: Add new id 2 BSSID 1c:ed:6f:ea:8d:db SSID 'arschibox' freq 2462
wlan0: BSS: Add new id 3 BSSID e4:fb:5d:5d:cb:e0 SSID 'WLAN-WZK9DA' freq 2462
wlan0: BSS: Add new id 4 BSSID e8:61:7e:1d:e5:af SSID 'PS4-B5799A3CA799' freq 2437
wlan0: BSS: Add new id 5 BSSID 0a:96:d7:1a:a9:fc SSID 'eb24-Stemmerich-Gast' freq 2437
wlan0: BSS: Add new id 6 BSSID 08:96:d7:1a:a9:fc SSID 'eb24-Stemmerich' freq 2437
wlan0: BSS: Add new id 7 BSSID 04:b4:fe:a9:28:5d SSID 'FRITZ!Box 7530 CO' freq 5180
wlan0: BSS: Add new id 8 BSSID 4c:1b:86:e4:5a:90 SSID 'WLAN-864969' freq 2412
wlan0: BSS: Add new id 9 BSSID 04:b4:fe:a9:28:5c SSID 'FRITZ!Box 7530 CO' freq 2412
wlan0: BSS: Add new id 10 BSSID 04:b4:fe:73:54:db SSID 'arschibox' freq 2412
wlan0: BSS: Add new id 11 BSSID b0:f2:08:9e:97:f6 SSID 'FRITZ!Box 7530 OQ' freq 5500
wlan0: BSS: Add new id 12 BSSID 04:b4:fe:73:54:dc SSID 'arschibox' freq 5180
BSS: last_scan_res_used=13/32
wlan0: New scan results available (own=1 ext=0)
WPS: AP 1c:ed:6f:ea:8d:dc type 0 added
WPS: AP e4:fb:5d:5d:cb:e3 type 0 added
WPS: AP 1c:ed:6f:ea:8d:db type 0 added
WPS: AP e4:fb:5d:5d:cb:e0 type 0 added
WPS: AP 0a:96:d7:1a:a9:fc type 0 added
WPS: AP 08:96:d7:1a:a9:fc type 0 added
WPS: AP 04:b4:fe:a9:28:5d type 0 added
WPS: AP 4c:1b:86:e4:5a:90 type 0 added
WPS: AP 04:b4:fe:a9:28:5c type 0 added
WPS: AP 04:b4:fe:73:54:db type 0 added
WPS: AP b0:f2:08:9e:97:f6 type 0 added
WPS: AP 04:b4:fe:73:54:dc type 0 added
WPS: AP[0] 1c:ed:6f:ea:8d:dc type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[1] e4:fb:5d:5d:cb:e3 type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[2] 1c:ed:6f:ea:8d:db type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[3] e4:fb:5d:5d:cb:e0 type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[4] 0a:96:d7:1a:a9:fc type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[5] 08:96:d7:1a:a9:fc type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[6] 04:b4:fe:a9:28:5d type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[7] 4c:1b:86:e4:5a:90 type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[8] 04:b4:fe:a9:28:5c type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[9] 04:b4:fe:73:54:db type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[10] b0:f2:08:9e:97:f6 type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
WPS: AP[11] 04:b4:fe:73:54:dc type=0 tries=0 last_attempt=-1 sec ago bssid_ignore=0
wlan0: Radio work 'scan'@0x5f39f40ca180 done in 3.129602 seconds
wlan0: radio_work_free('scan'@0x5f39f40ca180): num_active_works --> 0
wlan0: Selecting BSS from priority group 0
wlan0: 0: 1c:ed:6f:ea:8d:dc ssid='arschibox' wpa_ie_len=0 rsn_ie_len=24 caps=0x1111 level=-35 freq=5500  wps
wlan0:    selected based on RSN IE
wlan0:    selected BSS 1c:ed:6f:ea:8d:dc ssid='arschibox'
wlan0: Considering connect request: reassociate: 0  selected: 1c:ed:6f:ea:8d:dc  bssid: 00:00:00:00:00:00  pending: 00:00:00:00:00:00  wpa_state: SCANNING  ssid=0x5f39f4058700  current_ssid=(nil)
wlan0: Request association with 1c:ed:6f:ea:8d:dc
TDLS: TDLS is allowed in the target BSS
TDLS: TDLS channel switch allowed in the target BSS
MBO: Disable MBO/OCE due to misbehaving AP not having enabled PMF
wlan0: No ongoing scan/p2p-scan found to abort
wlan0: Add radio work 'sme-connect'@0x5f39f40ca180
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'sme-connect'@0x5f39f40ca180 after 0.000011 second wait
wlan0: WPA: clearing own WPA/RSN IE
wlan0: RSN: clearing own RSNXE
wlan0: Automatic auth_alg selection: 0x1
RSN: PMKSA cache search - network_ctx=(nil) try_opportunistic=0 akmp=0x0
RSN: Search for BSSID 1c:ed:6f:ea:8d:dc
RSN: No PMKSA cache entry found
wlan0: RSN: using IEEE 802.11i/D9.0
wlan0: WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 1026 proto 2
wlan0: WPA: Selected mgmt group cipher 32
wlan0: WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f ac 02 00 0f ac 08 8c 00
wlan0: WPA: clearing AP RSNXE
wlan0: WPA: AP group 0x10 network profile group 0x18; available group 0x10
wlan0: WPA: using GTK CCMP
wlan0: WPA: AP pairwise 0x10 network profile pairwise 0x18; available pairwise 0x10
wlan0: WPA: using PTK CCMP
wlan0: WPA: AP key_mgmt 0x402 network profile key_mgmt 0x2; available key_mgmt 0x2
wlan0: WPA: using KEY_MGMT WPA-PSK
wlan0: WPA: AP mgmt_group_cipher 0x20 network profile mgmt_group_cipher 0x0; available mgmt_group_cipher 0x0
wlan0: WPA: not using MGMT group cipher
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
RSN: Set own RSNXE default - hexdump(len=0):
WPA: Set PMK based on external data - hexdump(len=32): [REMOVED]
RRM: Determining whether RRM can be used - device support: 0x10
RRM: Adding RRM IE to Association Request
Added supported operating classes IE - hexdump(len=19): 3b 11 80 51 53 54 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
wlan0: Cancelling scan request
wlan0: SME: Trying to authenticate with 1c:ed:6f:ea:8d:dc (SSID='arschibox' freq=5500 MHz)
EAPOL: External notification - portValid=0
wlan0: State: SCANNING -> AUTHENTICATING
Not configuring frame filtering - BSS 00:00:00:00:00:00 is not a Hotspot 2.0 network
wlan0: Determining shared radio frequencies (max len 1)
wlan0: Shared frequencies (len=0): completed iteration
nl80211: Authenticate (ifindex=3)
  * bssid=1c:ed:6f:ea:8d:dc
  * freq=5500
  * SSID=arschibox
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 0
nl80211: Authentication request send successfully
nl80211: Drv Event 19 (NL80211_CMD_NEW_STATION) received for wlan0
nl80211: New station 1c:ed:6f:ea:8d:dc
nl80211: Drv Event 37 (NL80211_CMD_AUTHENTICATE) received for wlan0
nl80211: Authenticate event
wlan0: Event AUTH (10) received
wlan0: SME: Authentication response: peer=1c:ed:6f:ea:8d:dc auth_type=0 auth_transaction=2 status_code=0
SME: Association Request IEs - hexdump(len=61): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 7f 0b 00 00 02 02 01 40 40 40 00 01 20 46 05 70 00 00 00 00 3b 11 80 51 53 54 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
wlan0: Trying to associate with 1c:ed:6f:ea:8d:dc (SSID='arschibox' freq=5500 MHz)
wlan0: State: AUTHENTICATING -> ASSOCIATING
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
WPA: set own WPA/RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlan0: RSN: clearing own RSNXE
nl80211: Associate (ifindex=3)
  * bssid=1c:ed:6f:ea:8d:dc
  * freq=5500
  * SSID=arschibox
  * IEs - hexdump(len=61): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 7f 0b 00 00 02 02 01 40 40 40 00 01 20 46 05 70 00 00 00 00 3b 11 80 51 53 54 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f
  * WPA Versions 0x2
  * pairwise=0xfac04
  * group=0xfac04
  * akm=0xfac02
  * htcaps - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * htcaps_mask - hexdump(len=26): 63 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
  * vhtcaps_mask - hexdump(len=12): 00 00 00 00 00 00 00 00 00 00 00 00
nl80211: Association request send successfully
nl80211: Drv Event 38 (NL80211_CMD_ASSOCIATE) received for wlan0
nl80211: Associate event
nl80211: Associated on 5500 MHz
nl80211: Associated with 1c:ed:6f:ea:8d:dc
nl80211: Set drv->ssid based on scan res info to 'arschibox'
wlan0: Event ASSOC (0) received
wlan0: Association info event
req_ies - hexdump(len=173): 00 09 61 72 73 63 68 69 62 6f 78 01 08 0c 12 18 24 30 48 60 6c 21 02 00 0f 24 30 24 01 28 01 2c 01 30 01 34 01 38 01 3c 01 40 01 64 01 68 01 6c 01 70 01 74 01 78 01 7c 01 80 01 84 01 88 01 8c 01 95 01 99 01 9d 01 a1 01 a5 01 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00 2d 1a 7e 10 17 ff ff 00 00 00 00 00 00 00 00 2c 01 01 00 00 00 00 00 00 00 00 00 00 7f 0b 00 00 02 02 01 40 40 40 00 01 20 46 05 70 00 00 00 00 3b 11 80 51 53 54 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f dd 07 00 50 f2 02 00 01 00
resp_ies - hexdump(len=167): 01 08 8c 12 98 24 b0 48 60 6c 46 05 73 00 00 00 00 2d 1a ef 09 17 ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3d 16 64 05 16 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 0a 84 00 08 80 00 00 00 c0 01 40 dd 0c 00 04 0e 01 01 02 03 00 00 00 00 00 dd 18 00 50 f2 04 10 4a 00 01 10 10 3b 00 01 03 10 49 00 06 00 37 2a 00 01 20 dd 09 00 10 18 02 06 00 9c 00 00 dd 18 00 50 f2 02 01 01 84 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00 dd 07 50 6f 9a 16 01 01 00
wlan0: freq=5500 MHz
WPA: set own WPA/RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
wlan0: RSN: clearing own RSNXE
wlan0: State: ASSOCIATING -> ASSOCIATED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: Associated to a new BSS: BSSID=1c:ed:6f:ea:8d:dc
wlan0: Associated with 1c:ed:6f:ea:8d:dc
wlan0: WPA: Association event - clear replay counter
wlan0: WPA: Clear old PTK
TDLS: Remove peers on association
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: enable timer tick
EAPOL: SUPP_BE entering state IDLE
wlan0: Setting authentication timeout: 10 sec 0 usec
wlan0: Cancelling scan request
WMM AC: AC mandatory: AC_BE=0 AC_BK=0 AC_VI=0 AC_VO=0
WMM AC: U-APSD queues=0x0
WMM AC: Valid WMM association, WMM AC is enabled
MBO: Disable MBO/OCE due to misbehaving AP not having enabled PMF
wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 wext ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=5 linkmode=1 ifi_family=0 ifi_flags=0x11003 ([UP][LOWER_UP])
nl80211: Drv Event 46 (NL80211_CMD_CONNECT) received for wlan0
nl80211: Ignore connect event (cmd=46) when using userspace SME
nl80211: BSS Event 129 (NL80211_CMD_CONTROL_PORT_FRAME) received for wlan0
wlan0: Event EAPOL_RX (23) received
wlan0: RX EAPOL from 1c:ed:6f:ea:8d:dc
wlan0: Setting authentication timeout: 10 sec 0 usec
wlan0: IEEE 802.1X RX: version=2 type=3 length=95
wlan0:   EAPOL-Key type=2
wlan0:   key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
wlan0:   key_length=16 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): 99 df 8a 69 d9 2a a4 1a da 92 29 99 e5 4b 5e a2 84 d8 3b e1 54 17 e5 bb 3f a5 ae af cd 5f 7a 30
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
wlan0: State: ASSOCIATED -> 4WAY_HANDSHAKE
wlan0: WPA: RX message 1 of 4-Way Handshake from 1c:ed:6f:ea:8d:dc (ver=2)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: Renewed SNonce - hexdump(len=32): 7b c3 ac 36 c6 b0 48 69 ee e7 ce 1f 38 cc 14 0c 90 02 ef 06 c8 9a ca 37 b4 00 37 d5 eb 9c c2 01
WPA: PTK derivation using PRF(SHA1)
WPA: PTK derivation - A1=a4:4e:31:cb:f8:a8 A2=1c:ed:6f:ea:8d:dc
WPA: Nonce1 - hexdump(len=32): 7b c3 ac 36 c6 b0 48 69 ee e7 ce 1f 38 cc 14 0c 90 02 ef 06 c8 9a ca 37 b4 00 37 d5 eb 9c c2 01
WPA: Nonce2 - hexdump(len=32): 99 df 8a 69 d9 2a a4 1a da 92 29 99 e5 4b 5e a2 84 d8 3b e1 54 17 e5 bb 3f a5 ae af cd 5f 7a 30
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: KEK - hexdump(len=16): [REMOVED]
WPA: TK - hexdump(len=16): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Replay Counter - hexdump(len=8): 00 00 00 00 00 00 00 02
wlan0: WPA: Sending EAPOL-Key 2/4
WPA: Send EAPOL-Key frame to 1c:ed:6f:ea:8d:dc ver=2 mic_len=16 key_mgmt=0x2
WPA: EAPOL-Key MIC using HMAC-SHA1
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 4e c4 03 58 08 65 29 dc 3d a5 04 5d 6f cb bd 99
nl80211: Send over control port dest=1c:ed:6f:ea:8d:dc proto=0x888e len=121 no_encrypt=1
nl80211: tx_control_port cookie=0x72
nl80211: Drv Event 139 (NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS) received for wlan0
nl80211: Control port TX status (ack=1), cookie=114
wlan0: Event EAPOL_TX_STATUS (37) received
nl80211: BSS Event 129 (NL80211_CMD_CONTROL_PORT_FRAME) received for wlan0
wlan0: Event EAPOL_RX (23) received
wlan0: RX EAPOL from 1c:ed:6f:ea:8d:dc
wlan0: IEEE 802.1X RX: version=2 type=3 length=159
wlan0:   EAPOL-Key type=2
wlan0:   key_info 0x13ca (ver=2 keyidx=0 rsvd=0 Pairwise Install Ack MIC Secure Encr)
wlan0:   key_length=16 key_data_length=64
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03
  key_nonce - hexdump(len=32): 99 df 8a 69 d9 2a a4 1a da 92 29 99 e5 4b 5e a2 84 d8 3b e1 54 17 e5 bb 3f a5 ae af cd 5f 7a 30
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): ad 75 14 b0 01 35 67 a2 e5 c2 b5 6f 29 2f 7e 60
WPA: EAPOL-Key MIC using HMAC-SHA1
RSN: encrypted key data - hexdump(len=64): 7a 74 10 36 76 cb 5d c5 fb 9f 20 6b b7 e5 1d 6d 10 4b 4d da 82 74 b2 da b6 ac 01 5b 1a 7b 12 5b 7f 4b 7a f7 c9 64 4e e1 f0 77 8e 5a 91 18 cf de f6 3e 8e 45 fc 68 8f da 74 63 ff b2 1d b1 08 b7
WPA: Decrypt Key Data using AES-UNWRAP (KEK length 16)
WPA: decrypted EAPOL-Key key data - hexdump(len=56): [REMOVED]
wlan0: State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
wlan0: WPA: RX message 3 of 4-Way Handshake from 1c:ed:6f:ea:8d:dc (ver=2)
WPA: IE KeyData - hexdump(len=56): 30 18 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f ac 02 00 0f ac 08 8c 00 dd 16 00 0f ac 01 01 00 49 d4 f3 ec 60 b7 f2 b4 6c 10 6a 02 35 92 67 4f dd 00 00 00 00 00
WPA: RSN IE in EAPOL-Key - hexdump(len=26): 30 18 01 00 00 0f ac 04 01 00 00 0f ac 04 02 00 00 0f ac 02 00 0f ac 08 8c 00
WPA: GTK in EAPOL-Key - hexdump(len=24): [REMOVED]
wlan0: WPA: Sending EAPOL-Key 4/4
WPA: Send EAPOL-Key frame to 1c:ed:6f:ea:8d:dc ver=2 mic_len=16 key_mgmt=0x2
WPA: EAPOL-Key MIC using HMAC-SHA1
WPA: KCK - hexdump(len=16): [REMOVED]
WPA: Derived Key MIC - hexdump(len=16): 6a 54 90 27 72 d1 b9 bc ac b5 9e b0 71 c0 f2 9f
nl80211: Send over control port dest=1c:ed:6f:ea:8d:dc proto=0x888e len=99 no_encrypt=1
nl80211: tx_control_port cookie=0x73
wlan0: WPA: Installing PTK to the driver
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x5f39f40816c0 key_idx=0 set_tx=1 seq_len=6 key_len=16 key_flag=0x2c
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
nl80211: KEY_SEQ - hexdump(len=6): 00 00 00 00 00 00
   addr=1c:ed:6f:ea:8d:dc
   pairwise key
EAPOL: External notification - portValid=1
wlan0: State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RSN: received GTK in pairwise handshake - hexdump(len=18): [REMOVED]
WPA: Group Key - hexdump(len=16): [REMOVED]
wlan0: WPA: Installing GTK to the driver (keyidx=1 tx=0 len=16)
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=3 addr=0x5f39f2f56f24 key_idx=1 set_tx=0 seq_len=6 key_len=16 key_flag=0x14
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
nl80211: KEY_SEQ - hexdump(len=6): 00 00 00 00 00 00
   broadcast key
wlan0: WPA: Key negotiation completed with 1c:ed:6f:ea:8d:dc [PTK=CCMP GTK=CCMP]
wlan0: Cancelling authentication timeout
wlan0: State: GROUP_HANDSHAKE -> COMPLETED
wlan0: Radio work 'sme-connect'@0x5f39f40ca180 done in 1.123521 seconds
wlan0: radio_work_free('sme-connect'@0x5f39f40ca180): num_active_works --> 0
wlan0: CTRL-EVENT-CONNECTED - Connection to 1c:ed:6f:ea:8d:dc completed [id=0 id_str=]
nl80211: Set wlan0 operstate 0->1 (UP)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=6 (IF_OPER_UP)
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: Supplicant port status: Authorized
nl80211: Set supplicant port authorized for 1c:ed:6f:ea:8d:dc
EAPOL: SUPP_BE entering state IDLE
EAPOL authentication completed - result=SUCCESS
nl80211: Set rekey offload
RTM_NEWLINK: ifi_index=3 ifname=wlan0 operstate=6 linkmode=1 ifi_family=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
nl80211: Drv Event 139 (NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS) received for wlan0
nl80211: Control port TX status (ack=1), cookie=115
wlan0: Event EAPOL_TX_STATUS (37) received
EAPOL: startWhen --> 0
EAPOL: disable timer tick

The APs are not that old. My Router, a FritzBox 7530 AX came out at the end of 2020, and my Repeater at the end of 2021. They even support wpa3.

I added the

echo "proto=RSN WPA"

to the /usr/lib/netctl/wpa conf for netctl. But it didn't connect again.

I am not sure if I would be helping with a bug report as I am not able to generate a proper debug output for netctl.

Offline

#24 2024-01-24 22:18:08

seth
Member
Registered: 2012-09-03
Posts: 51,355

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

wlan0: WPA: using KEY_MGMT WPA-PSK

I am not sure if I would be helping with a bug report as I am not able to generate a proper debug output for netctl.

We'll just crouch ourselves to a functional state and advertise that

Try

echo "key_mgmt=WPA-PSK"
echo "ieee80211w=2"

resp (the canonical mixed mode suggestion, SAE doesn't work w/ psk anyway; see #20)

echo "key_mgmt=WPA-PSK-SHA256"
echo "ieee80211w=2"

Offline

#25 2024-01-29 19:06:59

Iriomote
Member
Registered: 2013-11-10
Posts: 29

Re: [SOLVED] Newer Versions of netctl won't connect to wifi

seth wrote:
wlan0: WPA: using KEY_MGMT WPA-PSK

I am not sure if I would be helping with a bug report as I am not able to generate a proper debug output for netctl.

We'll just crouch ourselves to a functional state and advertise that

Try

echo "key_mgmt=WPA-PSK"
echo "ieee80211w=2"

resp (the canonical mixed mode suggestion, SAE doesn't work w/ psk anyway; see #20)

echo "key_mgmt=WPA-PSK-SHA256"
echo "ieee80211w=2"

Sorry for the late reply.

I tested both, but they did not work.

root@laptop /usr/lib/netctl# diff -Naur wpa wpa.1.29 
--- wpa 2024-01-29 19:59:25.371745198 +0100
+++ wpa.1.29    2024-01-24 18:49:28.965770947 +0100
@@ -231,8 +231,8 @@
         fi
       ;;
       wpa)
-        echo "key_mgmt=WPA-PSK"
-        echo "ieee80211w=2"
+        echo "key_mgmt=WPA-PSK SAE"
+        echo "ieee80211w=1"
         if [[ "${#Key}" -eq 64 && $Key == +([[:xdigit:]]) ]]; then
             echo "psk=$Key"
         else

--------------------------------------------------------------------------------
         
root@laptop /usr/lib/netctl# diff -Naur wpa wpa.1.29 
--- wpa 2024-01-29 20:02:09.695301469 +0100
+++ wpa.1.29    2024-01-24 18:49:28.965770947 +0100
@@ -231,8 +231,8 @@
         fi
       ;;
       wpa)
-        echo "key_mgmt=WPA-PSK-SHA256"
-        echo "ieee80211w=2"
+        echo "key_mgmt=WPA-PSK SAE"
+        echo "ieee80211w=1"
         if [[ "${#Key}" -eq 64 && $Key == +([[:xdigit:]]) ]]; then
             echo "psk=$Key"
         else

Offline

Board footer

Powered by FluxBB