This feels like a semi-recent issue that’s been causing NetworkManager to take 20+ seconds to reconnect to WiFi after sleep (S0ix).
[wakeup from sleep]
Jan 19 12:38:03 localhost systemd[1]: Stopping WPA Supplicant instance...
Jan 19 12:38:03 localhost systemd[1]: wpa_supplicant.service: Deactivated successfully.
Jan 19 12:38:03 localhost systemd[1]: Stopped WPA Supplicant instance.
Jan 19 12:38:03 localhost systemd[1]: Starting WPA Supplicant instance...
Jan 19 12:38:03 localhost systemd[1]: Started WPA Supplicant instance.
Jan 19 12:38:03 localhost wpa_supplicant[5163]: Successfully initialized wpa_supplicant
Jan 19 12:38:04 localhost NetworkManager[1049]: <warn> [1768844284.0586] device (XX:XX:XX:XX:XX:XX): error setting IPv4 forwarding to '1': Resource temporarily unavailable
Jan 19 12:38:04 localhost NetworkManager[1049]: <warn> [1768844284.0589] device (p2p-dev-wlo1): error setting IPv4 forwarding to '1': Resource temporarily unavailable
Jan 19 12:38:04 localhost NetworkManager[1049]: <error> [1768844284.0594] device (wlo1): Couldn't initialize supplicant interface: Name owner lost
Jan 19 12:38:14 localhost NetworkManager[1049]: <warn> [1768844294.2038] device (wlo1): re-acquiring supplicant interface (#1).
Jan 19 12:38:14 localhost NetworkManager[1049]: <warn> [1768844294.2567] device (p2p-dev-wlo1): error setting IPv4 forwarding to '1': Resource temporarily unavailable
Jan 19 12:38:20 localhost wpa_supplicant[5163]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
Jan 19 12:38:20 localhost wpa_supplicant[5163]: p2p-dev-wlo1: Channel list changed: 6 GHz was enabled
Jan 19 12:38:20 localhost wpa_supplicant[5163]: wlo1: Channel list changed: 6 GHz was enabled
Jan 19 12:38:20 localhost wpa_supplicant[5163]: wlo1: CTRL-EVENT-REGDOM-CHANGE init=DRIVER type=COUNTRY alpha2=US
Jan 19 12:38:26 localhost wpa_supplicant[5163]: wlo1: SME: Trying to authenticate with XX:XX:XX:XX:XX:XX (SSID='x' freq=5320 MHz)
Jan 19 12:38:26 localhost wpa_supplicant[5163]: wlo1: Trying to associate with XX:XX:XX:XX:XX:XX (SSID='x' freq=5320 MHz)
Jan 19 12:38:26 localhost wpa_supplicant[5163]: wlo1: Associated with XX:XX:XX:XX:XX:XX
Despite wpa_supplicant being ready in less than a second after wakeup, NetworkManager takes until 11 seconds after to re-acquire the interface (which it shouldn’t lose at all) and then then another 12 seconds to re-associate. Any ideas for how to fix this situation?