Wifi connection with "key-mgmt=sae"

I was in the need to move all my /etc/NetworkManager/system-connections (see here Move from one (broken) L5 to a new one step #6) to another L5 and all worked fine with one exceptionn: one connection to a Wifi AP where the owner months ago gave me the PSK of the connection. With the new L5 device it did not connect anymore. The small lock picture in the overview of all Wifi AP have had on click a small exclamation mark. I removed the file /etc/NetworkManager/system-connections/MagentaWLAN-TDUZ.nmconnection and restarted the NetworkManager with systemctl restart NetworkManager . It created the file again with a value key-mgmt=sae which I have never seen before. That’s why I changed it with an editor to key-mgmt=wpa-psk and with this at the end it connected. The diff of both versions of the file is

$ cat MagentaWLAN-TDUZ.nmconnection.diff
3c3
< uuid=4b0c7c7e-21bf-4df3-b388-8ec1def766fc
---
> uuid=7c1fe2f3-039a-424a-9686-82e8726d94ed
9d8
< mac-address=00:0E:8E:B1:B7:3C
16c15
< key-mgmt=wpa-psk
---
> key-mgmt=sae

I have here as well the /var/log/syslog of such failling try to connect. Any ideas what caused this and why it worked before with key-mgmt=sae? Did the Wifi router knew something about my L5 which was not there anymore due to the move to the new device?

/var/log/syslog:
...
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0483] device (wlan0): supplicant interface state: inactive -> scanning
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0484] device (p2p-dev-wlan0): supplicant management interface state: inactive -> scanning
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0557] device (wlan0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0577] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0590] device (wlan0): Activation: (wifi) connection 'MagentaWLAN-TDUZ' has security, and secrets exist.  No new secrets needed.
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0591] Config: added 'ssid' value 'MagentaWLAN-TDUZ'
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0592] Config: added 'scan_ssid' value '1'
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0592] Config: added 'bgscan' value 'simple:30:-70:86400'
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0593] Config: added 'key_mgmt' value 'SAE FT-SAE'
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0593] Config: added 'auth_alg' value 'OPEN'
May 30 14:13:04 pureos NetworkManager[594]: <info>  [1717071184.0594] Config: added 'psk' value '<hidden>'
May 30 14:13:04 pureos dbus-daemon[584]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.137' (uid=1000 pid=3715 comm="gnome-control-center ")
May 30 14:13:04 pureos systemd[1]: Starting Hostname Service...
May 30 14:13:04 pureos dbus-daemon[584]: [system] Successfully activated service 'org.freedesktop.hostname1'
May 30 14:13:04 pureos systemd[1]: Started Hostname Service.
May 30 14:13:06 pureos wpa_supplicant[632]: wlan0: Trying to associate with SSID 'MagentaWLAN-TDUZ'
May 30 14:13:06 pureos wpa_supplicant[632]: wlan0: WPA: Failed to select authenticated key management type
May 30 14:13:06 pureos wpa_supplicant[632]: wlan0: WPA: Failed to set WPA key management and encryption suites
May 30 14:13:09 pureos NetworkManager[594]: <info>  [1717071189.0846] device (wlan0): state change: config -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
May 30 14:13:09 pureos NetworkManager[594]: <info>  [1717071189.0896] device (wlan0): disconnecting for new activation request.
May 30 14:13:09 pureos NetworkManager[594]: <info>  [1717071189.0901] audit: op="connection-activate" uuid="7c1fe2f3-039a-424a-9686-82e8726d94ed" name="MagentaWLAN-TDUZ" pid=3715 uid=1000 result="success"
May 30 14:13:09 pureos dbus-daemon[584]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=594 comm="/usr/sbin/NetworkManager --no-daemon ")
May 30 14:13:09 pureos systemd[1]: Starting Network Manager Script Dispatcher Service...
May 30 14:13:09 pureos dbus-daemon[584]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 30 14:13:09 pureos systemd[1]: Started Network Manager Script Dispatcher Service.
May 30 14:13:09 pureos NetworkManager[594]: <info>  [1717071189.1835] device (wlan0): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
May 30 14:13:09 pureos systemd-networkd[469]: wlan0: Link DOWN

1 Like