Mt7921e Wireless Issues

I’m having instability with my WiFi on my system running NixOS 24.05 where my wireless connection will drop out, die, or disappear randomly. So far I have tracked it down to the mt7921e kernel module for the Mediatek MT7922 on my desktop motherboard, as reloading it with modprobe -r mt7921e && modprobe mt7921e invariably fixes the issue. From the logs any failures that are occurring appear to be silent, only showing when the module was reloaded.

$ sudo dmesg | grep mt7921e
[  +0.002464] mt7921e 0000:0d:00.0: enabling device (0000 -> 0002)
[  +0.005937] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.056347] mt7921e 0000:0d:00.0: HW/

SW Version: 0x8a108a10, Build Time: 20240409163301a
[  +0.005344] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +0.003793] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[Jul22 20:30] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.075066] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a
[  +0.014700] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.083997] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[  +5.898849] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.068585] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a
[  +0.014885] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.082748] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[Jul22 22:11] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.075599] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a
[  +0.014769] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.083644] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0

The downstream symptoms with the wireless device wlp13s0, wpa_supplicant, and NetworkManager are variable. Sometimes a connection will still be reported despite loss of internet. Other times it will show an empty scanned SSID list when trying to connect to a network. Here are some logs from this boot:

wpa_supplicant logs
Jul 22 20:28:06 kobold-desktop systemd[1]: Starting WPA supplicant...
Jul 22 20:28:06 kobold-desktop wpa_supplicant[1292]: Successfully initialized wpa_supplicant
Jul 22 20:28:06 kobold-desktop systemd[1]: Started WPA supplicant.
Jul 22 20:28:07 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:28:08 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:28:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:28:13 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-CANCEL
Jul 22 20:28:18 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-CANCEL
Jul 22 20:28:18 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:28:18 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:28:24 kobold-desktop wpa_supplicant[1292]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:28:38 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:28:44 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DISCONNECTED bssid=42:0f:c1:48:de:44 reason=3 locally_generated=1
Jul 22 20:28:44 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:28:48 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-PBC-ACTIVE
Jul 22 20:28:48 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-CANCEL
Jul 22 20:29:02 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:29:05 kobold-desktop wpa_supplicant[1292]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:29:23 kobold-desktop wpa_supplicant[1292]: wlp13s0: Reject scan trigger since one is already pending
Jul 22 20:29:27 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-CANCEL
Jul 22 20:29:53 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:29:55 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:29:55 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:29:55 kobold-desktop wpa_supplicant[1292]: nl80211: deinit ifname=wlp13s0 disabled_11b_rates=0
Jul 22 20:30:06 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-PBC-ACTIVE
Jul 22 20:30:06 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPS-CANCEL
Jul 22 20:30:06 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: PMKSA-CACHE-ADDED 42:0f:c1:48:de:44 0
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: Trying to associate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: Associated with 42:0f:c1:48:de:44
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 20:30:11 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul 22 20:30:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:30:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 42:0f:c1:48:de:44 completed [id=0 id_str=]
Jul 22 20:30:14 kobold-desktop wpa_supplicant[1292]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 20:30:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:30:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:30:28 kobold-desktop wpa_supplicant[1292]: wlp13s0: Reject scan trigger since one is already pending
Jul 22 20:34:18 kobold-desktop wpa_supplicant[1292]: wlp13s0: Reject scan trigger since one is already pending
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DISCONNECTED bssid=42:0f:c1:48:de:44 reason=3 locally_generated=1
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: PMKSA-CACHE-REMOVED 42:0f:c1:48:de:44 0
Jul 22 20:35:14 kobold-desktop systemd[1]: Stopping WPA supplicant...
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: nl80211: deinit ifname=wlp13s0 disabled_11b_rates=0
Jul 22 20:35:14 kobold-desktop wpa_supplicant[1292]: wlp13s0: CTRL-EVENT-TERMINATING
Jul 22 20:35:14 kobold-desktop systemd[1]: wpa_supplicant.service: Deactivated successfully.
Jul 22 20:35:14 kobold-desktop systemd[1]: Stopped WPA supplicant.
Jul 22 20:35:16 kobold-desktop systemd[1]: Starting WPA supplicant...
Jul 22 20:35:16 kobold-desktop wpa_supplicant[26731]: Successfully initialized wpa_supplicant
Jul 22 20:35:16 kobold-desktop systemd[1]: Started WPA supplicant.
Jul 22 20:35:18 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:35:19 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-CANCEL
Jul 22 20:35:19 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:35:19 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:35:24 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:35:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 20:35:31 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:35:31 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-ADDED 42:0f:c1:48:de:44 0
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: Associated with 42:0f:c1:48:de:44
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 20:35:33 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul 22 20:35:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:35:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 42:0f:c1:48:de:44 completed [id=0 id_str=]
Jul 22 20:35:35 kobold-desktop wpa_supplicant[26731]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 20:35:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:35:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:55:25 kobold-desktop wpa_supplicant[26731]: wlp13s0: WNM: Preferred List Available
Jul 22 20:55:25 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 40:0f:c1:4f:de:45 (SSID='EKesselWireless' freq=6295 MHz)
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 40:0f:c1:4f:de:45 (SSID='EKesselWireless' freq=6295 MHz)
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Authentication request to the driver failed
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: BSSID 40:0f:c1:4f:de:45 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:55:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:27 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:27 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DISCONNECTED bssid=42:0f:c1:48:de:44 reason=17
Jul 22 20:55:27 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:55:28 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 20:55:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:55:35 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 20:55:36 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:37 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 20:55:37 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="EKesselWireless" auth_failures=1 duration=10 reason=CONN_FAILED
Jul 22 20:55:41 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-REMOVED 42:0f:c1:48:de:44 0
Jul 22 20:55:41 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 20:55:44 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-PBC-ACTIVE
Jul 22 20:55:44 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-CANCEL
Jul 22 20:55:44 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-ADDED 42:0f:c1:48:de:44 0
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: Associated with 42:0f:c1:48:de:44
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 20:55:46 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul 22 20:55:49 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:55:49 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 42:0f:c1:48:de:44 completed [id=0 id_str=]
Jul 22 20:55:49 kobold-desktop wpa_supplicant[26731]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 20:55:49 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 20:55:49 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Failed to send SA Query Request
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DISCONNECTED bssid=42:0f:c1:48:de:44 reason=3 locally_generated=1
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-REMOVED 42:0f:c1:48:de:44 0
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 21:59:26 kobold-desktop wpa_supplicant[26731]: nl80211: deinit ifname=wlp13s0 disabled_11b_rates=0
Jul 22 21:59:39 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-PBC-ACTIVE
Jul 22 21:59:39 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-CANCEL
Jul 22 21:59:39 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 21:59:39 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 21:59:44 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 40:0f:c1:4f:de:45 (SSID='EKesselWireless' freq=6295 MHz)
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 40:0f:c1:4f:de:45 (SSID='EKesselWireless' freq=6295 MHz)
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-ADDED 40:0f:c1:4f:de:45 0
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 40:0f:c1:4f:de:45 (SSID='EKesselWireless' freq=6295 MHz)
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: Associated with 40:0f:c1:4f:de:45
Jul 22 21:59:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 21:59:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 40:0f:c1:4f:de:45 [PTK=CCMP GTK=CCMP]
Jul 22 21:59:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 40:0f:c1:4f:de:45 completed [id=0 id_str=]
Jul 22 21:59:48 kobold-desktop wpa_supplicant[26731]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 21:59:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 40:0f:c1:4f:de:45 [PTK=CCMP GTK=CCMP]
Jul 22 21:59:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 40:0f:c1:4f:de:45 [PTK=CCMP GTK=CCMP]
Jul 22 22:10:25 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:10:25 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul 22 22:10:32 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 3, ignoring for 60 seconds
Jul 22 22:10:32 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:10:45 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:10:47 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DISCONNECTED bssid=42:0f:c1:48:de:44 reason=3 locally_generated=1
Jul 22 22:10:47 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-REMOVED 40:0f:c1:4f:de:45 0
Jul 22 22:10:56 kobold-desktop wpa_supplicant[26731]: wlp13s0: Reject scan trigger since one is already pending
Jul 22 22:10:56 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-CANCEL
Jul 22 22:10:56 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:10:59 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 22:11:00 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
Jul 22 22:11:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: Reject scan trigger since one is already pending
Jul 22 22:11:37 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 22:11:37 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-DSCP-POLICY clear_all
Jul 22 22:11:37 kobold-desktop wpa_supplicant[26731]: nl80211: deinit ifname=wlp13s0 disabled_11b_rates=0
Jul 22 22:11:40 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:11:40 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:11:42 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-PBC-ACTIVE
Jul 22 22:11:42 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPS-CANCEL
Jul 22 22:11:42 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:11:42 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:11:47 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-ADDED 42:0f:c1:41:de:43 0
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: Associated with 42:0f:c1:41:de:43
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:41:de:43 [PTK=CCMP GTK=CCMP]
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 42:0f:c1:41:de:43 completed [id=0 id_str=]
Jul 22 22:11:48 kobold-desktop wpa_supplicant[26731]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 22:17:07 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:17:07 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jul 22 22:17:12 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:48:de:44 ignore list count incremented to 3, ignoring for 60 seconds
Jul 22 22:17:13 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:17:13 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:17:15 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jul 22 22:17:15 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:41:de:43 (SSID='EKesselWireless' freq=2462 MHz)
Jul 22 22:17:15 kobold-desktop wpa_supplicant[26731]: BSSID 42:0f:c1:41:de:43 ignore list count incremented to 2, ignoring for 10 seconds
Jul 22 22:17:16 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SCAN-FAILED ret=-22 retry=1
Jul 22 22:17:19 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: SME: Trying to authenticate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: PMKSA-CACHE-ADDED 42:0f:c1:48:de:44 0
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: Trying to associate with 42:0f:c1:48:de:44 (SSID='EKesselWireless' freq=5785 MHz)
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: Associated with 42:0f:c1:48:de:44
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jul 22 22:17:21 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=US
Jul 22 22:17:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 22:17:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: CTRL-EVENT-CONNECTED - Connection to 42:0f:c1:48:de:44 completed [id=0 id_str=]
Jul 22 22:17:24 kobold-desktop wpa_supplicant[26731]: bgscan simple: Failed to enable signal strength monitoring
Jul 22 22:17:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
Jul 22 22:17:24 kobold-desktop wpa_supplicant[26731]: wlp13s0: WPA: Key negotiation completed with 42:0f:c1:48:de:44 [PTK=CCMP GTK=CCMP]
NetworkManager logs
Jul 22 20:28:05 kobold-desktop systemd[1]: Starting Network Manager...
Jul 22 20:28:06 kobold-desktop systemd[1]: Started Network Manager.
Jul 22 20:28:13 kobold-desktop NetworkManager[1186]: <warn>  [1721694493.4674] device (wlp13s0): no secrets: No agents were available for this request.
Jul 22 20:28:13 kobold-desktop NetworkManager[1186]: <warn>  [1721694493.4676] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 20:28:43 kobold-desktop NetworkManager[1186]: <warn>  [1721694523.5796] device (wlp13s0): Activation: (wifi) association took too long, failing activation
Jul 22 20:28:44 kobold-desktop NetworkManager[1186]: <warn>  [1721694524.7417] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 20:29:14 kobold-desktop NetworkManager[1186]: <warn>  [1721694554.5797] device (wlp13s0): Activation: (wifi) association took too long, failing activation
Jul 22 20:29:14 kobold-desktop NetworkManager[1186]: <warn>  [1721694554.6545] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 20:29:53 kobold-desktop NetworkManager[1186]: <warn>  [1721694593.5798] device (wlp13s0): Activation: (wifi) association took too long, failing activation
Jul 22 20:29:53 kobold-desktop NetworkManager[1186]: <warn>  [1721694593.6484] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 20:35:14 kobold-desktop systemd[1]: Stopping Network Manager...
Jul 22 20:35:14 kobold-desktop systemd[1]: NetworkManager.service: Deactivated successfully.
Jul 22 20:35:14 kobold-desktop systemd[1]: Stopped Network Manager.
Jul 22 20:35:14 kobold-desktop systemd[1]: NetworkManager.service: Consumed 587ms CPU time, 18.8M memory peak, 0B memory swap peak, received 15.5K IP traffic, sent 182B IP traffic.
Jul 22 20:35:16 kobold-desktop systemd[1]: Starting Network Manager...
Jul 22 20:35:16 kobold-desktop systemd[1]: Started Network Manager.
Jul 22 20:55:41 kobold-desktop NetworkManager[26535]: <warn>  [1721696141.4474] device (wlp13s0): link timed out.
Jul 22 20:55:41 kobold-desktop NetworkManager[26535]: <warn>  [1721696141.7060] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 22:10:47 kobold-desktop NetworkManager[26535]: <warn>  [1721700647.4475] device (wlp13s0): link timed out.
Jul 22 22:10:47 kobold-desktop NetworkManager[26535]: <warn>  [1721700647.5755] device (wlp13s0): Activation: failed for connection 'EKesselWireless'
Jul 22 22:11:22 kobold-desktop NetworkManager[26535]: <warn>  [1721700682.4478] device (wlp13s0): Activation: (wifi) association took too long, failing activation
Jul 22 22:11:22 kobold-desktop NetworkManager[26535]: <warn>  [1721700682.5338] device (wlp13s0): Activation: failed for connection 'EKesselWireless'

I am new to NixOS and have just started building my config. It is pushed to GitHub - eqkessel/nix-config: NixOS System Configuration. I never had issues with this on my previous Linux install (Arch Linux, ran it for a little over a year with no wireless issues).

How should I progress to fix this?

Excerpt from full dmesg log:

More dmesg logs
[  +0.002464] mt7921e 0000:0d:00.0: enabling device (0000 -> 0002)
[  +0.005937] mt7921e 0000:0d:00.0: ASIC revision: 79220010
...
[  +0.056347] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a
...
[  +0.005344] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
...
[  +0.080538] systemd[1]: Finished Firewall.
[  +0.003793] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[  +0.020159] systemd[1]: Starting Load/Save RF Kill Switch Status...
[  +0.002511] systemd[1]: Started Load/Save RF Kill Switch Status.
...
[  +0.169936] RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-e00:00: attached PHY driver (mii_bus:phy_addr=r8169-0-e00:00, irq=MAC)
[  +0.178375] r8169 0000:0e:00.0 enp14s0: Link is Down
...
[  +2.076996] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.492884] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.028356] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009199] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +3.084571] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +1.920507] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
...
[  +1.356807] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +1.064126] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
...
[  +1.613326] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +1.325263] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[Jul22 20:29] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +1.048048] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +1.024005] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +1.023749] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.011969] wlp13s0: authentication with 42:0f:c1:48:de:44 timed out
[Jul22 20:30] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.075066] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a

[  +0.014700] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.083997] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[  +2.923344] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.490247] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.011665] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +2.052852] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.005298] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009027] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.008319] wlp13s0: authenticated
[  +0.000470] wlp13s0: associate with 42:0f:c1:48:de:44 (try 1/3)
[  +0.019656] wlp13s0: RX AssocResp from 42:0f:c1:48:de:44 (capab=0x1011 status=0 aid=13)
[  +0.028557] wlp13s0: associated
[  +0.198351] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 42:0f:c1:48:de:44
...
[Jul22 20:35] wlp13s0: deauthenticating from 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
...
[  +2.991901] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.032843] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.030892] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009130] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.012810] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +2.054590] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.938106] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +0.342510] wlp13s0: authenticate with 42:0f:c1:41:de:43
[  +0.177527] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 1/3)
[  +2.059130] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 2/3)
[  +2.053235] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 3/3)
[  +0.891250] wlp13s0: aborting authentication with 42:0f:c1:41:de:43 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +3.154835] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.032134] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.010147] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009280] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.009052] wlp13s0: authenticated
[  +0.001281] wlp13s0: associate with 42:0f:c1:48:de:44 (try 1/3)
[  +0.018390] wlp13s0: RX AssocResp from 42:0f:c1:48:de:44 (capab=0x1011 status=0 aid=14)
[  +0.027644] wlp13s0: associated
[  +0.000024] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 42:0f:c1:48:de:44
[Jul22 20:37] warning: `ThreadPoolForeg' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[Jul22 20:55] wlp13s0: disconnect from AP 42:0f:c1:48:de:44 for new auth to 40:0f:c1:4f:de:45
[  +0.116936] wlp13s0: authenticate with 40:0f:c1:4f:de:45
[  +0.509209] wlp13s0: send auth to 40:0f:c1:4f:de:45 (try 1/3)
[  +0.430284] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.034078] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.107557] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +0.005534] wlp13s0: authenticated
[  +0.000289] wlp13s0: associate with 42:0f:c1:48:de:44 (try 1/3)
[  +0.015835] wlp13s0: deauthenticated from 42:0f:c1:48:de:44 while associating (Reason: 17=IE_DIFFERENT)
[  +1.178898] wlp13s0: authenticate with 42:0f:c1:41:de:43
[  +0.030009] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 1/3)
[  +2.024645] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 2/3)
[  +2.053608] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 3/3)
[  +0.926042] wlp13s0: aborting authentication with 42:0f:c1:41:de:43 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +3.621617] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.032218] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.102941] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +0.103987] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.103999] wlp13s0: authentication with 42:0f:c1:48:de:44 timed out
[  +4.495671] IPv6: ipv6_create_tempaddr: regeneration time exceeded - disabled temporary address support
[  +2.904432] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.169191] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.010376] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +0.022746] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009103] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.007893] wlp13s0: authenticated
[  +0.012394] wlp13s0: associate with 42:0f:c1:48:de:44 (try 1/3)
[  +0.013704] wlp13s0: RX AssocResp from 42:0f:c1:48:de:44 (capab=0x1011 status=0 aid=16)
[  +0.027172] wlp13s0: associated
[  +0.213462] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 42:0f:c1:48:de:44
[Jul22 21:59] wlp13s0: deauthenticating from 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +5.898849] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.068585] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a

[  +0.014885] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.082748] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[  +5.934064] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.492012] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.031334] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.009084] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.032001] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +2.048105] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.920571] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +0.596932] wlp13s0: authenticate with 40:0f:c1:4f:de:45
[  +0.507529] wlp13s0: send auth to 40:0f:c1:4f:de:45 (try 1/3)
[  +0.012698] wlp13s0: authenticate with 40:0f:c1:4f:de:45
[  +0.009196] wlp13s0: send auth to 40:0f:c1:4f:de:45 (try 1/3)
[  +0.007235] wlp13s0: authenticated
[  +0.000730] wlp13s0: associate with 40:0f:c1:4f:de:45 (try 1/3)
[  +0.022375] wlp13s0: RX AssocResp from 40:0f:c1:4f:de:45 (capab=0x1011 status=0 aid=15)
[  +0.027352] wlp13s0: associated
[Jul22 22:10] wlp13s0: disconnect from AP 40:0f:c1:4f:de:45 for new auth to 42:0f:c1:48:de:44
[  +0.090576] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.034499] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +3.025732] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +1.974358] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[ +14.304884] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +1.064298] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +1.277068] IPv6: ipv6_create_tempaddr: regeneration time exceeded - disabled temporary address support
[  +9.280901] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +1.025699] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +1.023983] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +1.024957] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.012310] wlp13s0: authentication with 42:0f:c1:48:de:44 timed out
[Jul22 22:11] mt7921e 0000:0d:00.0: ASIC revision: 79220010
[  +0.075599] mt7921e 0000:0d:00.0: HW/SW Version: 0x8a108a10, Build Time: 20240409163301a

[  +0.014769] mt7921e 0000:0d:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  +1.083644] mt7921e 0000:0d:00.0 wlp13s0: renamed from wlan0
[  +2.969174] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.492384] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.011141] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.008581] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.029510] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +2.052757] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.922649] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +0.331679] wlp13s0: authenticate with 42:0f:c1:41:de:43
[  +0.172060] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 1/3)
[  +0.023994] wlp13s0: authenticate with 42:0f:c1:41:de:43
[  +0.009064] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 1/3)
[  +0.009825] wlp13s0: authenticated
[  +0.000872] wlp13s0: associate with 42:0f:c1:41:de:43 (try 1/3)
[  +0.028818] wlp13s0: RX AssocResp from 42:0f:c1:41:de:43 (capab=0x1411 status=0 aid=17)
[  +0.023970] wlp13s0: associated
[  +0.063956] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 42:0f:c1:41:de:43
[Jul22 22:17] wlp13s0: disconnect from AP 42:0f:c1:41:de:43 for new auth to 42:0f:c1:48:de:44
[  +0.080743] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.035194] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.025956] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +2.052926] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 3/3)
[  +0.921235] wlp13s0: aborting authentication with 42:0f:c1:48:de:44 by local choice (Reason: 3=DEAUTH_LEAVING)
[  +2.712567] wlp13s0: authenticate with 42:0f:c1:41:de:43
[  +0.031202] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 1/3)
[  +0.106057] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 2/3)
[  +0.103847] wlp13s0: send auth to 42:0f:c1:41:de:43 (try 3/3)
[  +0.103974] wlp13s0: authentication with 42:0f:c1:41:de:43 timed out
[  +4.103737] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.032474] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +2.049456] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 2/3)
[  +0.007535] wlp13s0: authenticate with 42:0f:c1:48:de:44
[  +0.008638] wlp13s0: send auth to 42:0f:c1:48:de:44 (try 1/3)
[  +0.007466] wlp13s0: authenticated
[  +0.000517] wlp13s0: associate with 42:0f:c1:48:de:44 (try 1/3)
[  +0.016708] wlp13s0: RX AssocResp from 42:0f:c1:48:de:44 (capab=0x1011 status=0 aid=17)
[  +0.032996] wlp13s0: associated
[  +0.232808] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by 42:0f:c1:48:de:44

I have had more success with that chip using the stable kernel (set boot.kernelPackages = pkgs.linuxPackages_latest), but that may be problematic given that you seem to use the proprietary NVIDIA driver. Alternatively, you may try limiting the connection to the 2.4 GHz band by selecting the corresponding BSSID in the settings, since part of the problems seems to be the constant jumping between (presumably) the two bands.

Funny, I just put this card in a rock5b and cannot get it to connect to my parents wifi network at all. And of course its the same config deployed with nixos to my other machines.

[  434.720835] mt7921e 0002:01:00.0: WM Firmware Version: ____000000, Build Time: 20240409163347
[  460.594107] wlan1: authenticate with e0:63:da:38:70:39 (local address=e8:fb:1c:3f:88:ed)
[  461.092184] wlan1: send auth to e0:63:da:38:70:39 (try 1/3)
[  461.102935] wlan1: send auth to e0:63:da:38:70:39 (try 2/3)
[  461.114039] wlan1: send auth to e0:63:da:38:70:39 (try 3/3)

But of course it happily connects to my phone’s wifi hotspot.

I suspect the firmware is buggy (still) and that there’s some variables in network config that affects things.

Really glad I took this out of my daily driver laptop and put an Intel card in it…

(EDIT: I use iwd, not sure if there’s something special about how it interogates stations and then chooses how to connect to the AP. I have this weird hunch that NM might show me different results, but not going to try.)