TP-Link Archer C7 with wpa-supplicant error "Unknown event 37"

Hi all,
I have a TP-Link Archer C7 v5. I managed to properly install OpenWRT v23.05.02.
I would like this router to connect to the wireless network of our offices and share connectivity with LAN devices. The Wi-Fi is protected with WPA2 Enterprise.
I did remove wpad and replace it by wpa_supplicant. I configure everything in LuCI but I can"t manage to establish a connection. It seems that the router is able to reach for the AP but the authentication is failing.

In the system logs, this is what I get.

Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: SME: Trying to authenticate with be:15:54:a8:8d:c2 (SSID='WOJO' freq=5260 MHz)
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.359768] phy0-sta0: authenticate with be:15:54:a8:8d:c2
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.374646] phy0-sta0: send auth to be:15:54:a8:8d:c2 (try 1/3)
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.382785] phy0-sta0: authenticated
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: Trying to associate with be:15:54:a8:8d:c2 (SSID='WOJO' freq=5260 MHz)
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.407131] phy0-sta0: associate with be:15:54:a8:8d:c2 (try 1/3)
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.415092] phy0-sta0: RX AssocResp from be:15:54:a8:8d:c2 (capab=0x1511 status=0 aid=4)
Thu Apr 11 16:46:26 2024 kern.warn kernel: [   52.425948] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Thu Apr 11 16:46:26 2024 kern.warn kernel: [   52.433263] ath10k_pci 0000:00:00.0: failed to enable peer stats info: -122
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.440624] phy0-sta0: associated
Thu Apr 11 16:46:26 2024 daemon.notice netifd: Network device 'phy0-sta0' link is up
Thu Apr 11 16:46:26 2024 daemon.notice netifd: Interface 'wwan' has link connectivity
Thu Apr 11 16:46:26 2024 daemon.notice netifd: Interface 'wwan' is setting up now
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: Associated with be:15:54:a8:8d:c2
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-EAP-STARTED EAP authentication started
Thu Apr 11 16:46:26 2024 kern.debug kernel: [   52.476302] phy0-sta0: Limiting TX power to 20 (23 - 3) dBm as advertised by be:15:54:a8:8d:c2
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: Unknown event 37
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: Unknown event 37
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-EAP-FAILURE EAP authentication failed
Thu Apr 11 16:46:26 2024 daemon.notice netifd: wwan (2679): udhcpc: started, v1.36.1
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.640879] phy0-sta0: deauthenticated from be:15:54:a8:8d:c2 (Reason: 23=IEEE8021X_FAILED)
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.649604] ath10k_pci 0000:00:00.0: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0  arvif->paused: 0x0
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-DISCONNECTED bssid=be:15:54:a8:8d:c2 reason=23
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: phy0-sta0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WOJO" auth_failures=1 duration=10 reason=AUTH_FAILED
Thu Apr 11 16:46:26 2024 daemon.notice wpa_supplicant[1495]: BSSID be:15:54:a8:8d:c2 ignore list count incremented to 2, ignoring for 10 seconds
Thu Apr 11 16:46:26 2024 kern.info kernel: [   52.689090] ath10k_pci 0000:00:00.0: mac flush null vif, drop 0 queues 0xffff
Thu Apr 11 16:46:26 2024 daemon.notice netifd: wwan (2679): udhcpc: broadcasting discover
Thu Apr 11 16:46:27 2024 daemon.notice netifd: Network device 'phy0-sta0' link is down
Thu Apr 11 16:46:27 2024 daemon.notice netifd: Interface 'wwan' has link connectivity loss

I can't find nor understand what "Unknown Event 37" means.

Does anyone has an idea?
Thanks in advance.

Event 37 means channel survey is in progress.
Particular Wave1 ath10k does not support background surveys, so it blocks wwan for that minute. One way out is to use fixed non-dfs channel in 5ghz or use 2.4ghz ath9k for wwan. Swapping -ct to non-ct kmod and firmware both at once may or may not help.

1 Like

Hi brada4,
Thanks a lot for your feedback.
I followed you until "Swapping -ct to non-ct..." :wink:
Does it mean I need to replace the Wireless driver? Removing the "-ct" one and replacing with the "normal" one?

I'll try this right away :slight_smile:

Cheers.

It's a bad idea, doing it that way, you'll lose flash space.

Build a new image using https://firmware-selector.openwrt.org/, with the packages swapped out.

Very good point, I'm doing this right now :wink:

Or install attended sysupgrade and reclaim flash space with next major release using firmware selector :wink:

1 Like

Not only kmod but also ath10k-firmware-?????-ct -> no ct

1 Like

I'm currently travelling abroad. I'll test this when I'll be back at the office this Friday and keep you posted. Thanks :slight_smile:

I'm actually having this problem on a Comfast E314N running 23.05.1 in STA mode talking to an access point also running OpenWRT (unknown version, older). That hardware is 2.4 GHz. only, with Ath9K driver. Any thoughts?

The message says background radio survey by hostapd is running. Sometimes it is not that background... But message itself is harmless.

1 Like

I've tried to change the wpa software, moving back to 'wpad' full version, not the default one 'wpad-mbedtls'. I've also kept the non '-ct' version of the driver/firmware.
Please find below the custom packages selected for the FW 23.05.3.

ath10k-firmware-qca988x base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-ath10k kmod-ath9k kmod-gpio-button-hotplug kmod-nft-offload kmod-usb-ledtrig-usbport kmod-usb2 libc libgcc libustream-mbedtls logd luci mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wpad

Here is what I can in the system log:

Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: SME: Trying to authenticate with be:15:54:a8:8d:c2 (SSID='WOJO' freq=5260 MHz)
Mon May  6 18:36:37 2024 kern.info kernel: [  793.129934] phy0-sta0: authenticate with be:15:54:a8:8d:c2
Mon May  6 18:36:37 2024 kern.info kernel: [  793.140576] phy0-sta0: send auth to be:15:54:a8:8d:c2 (try 1/3)
Mon May  6 18:36:37 2024 kern.info kernel: [  793.148497] phy0-sta0: authenticated
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: Trying to associate with be:15:54:a8:8d:c2 (SSID='WOJO' freq=5260 MHz)
Mon May  6 18:36:37 2024 kern.info kernel: [  793.160944] phy0-sta0: associate with be:15:54:a8:8d:c2 (try 1/3)
Mon May  6 18:36:37 2024 kern.info kernel: [  793.183719] phy0-sta0: RX AssocResp from be:15:54:a8:8d:c2 (capab=0x1511 status=0 aid=6)
Mon May  6 18:36:37 2024 kern.warn kernel: [  793.193457] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
Mon May  6 18:36:37 2024 kern.warn kernel: [  793.200729] ath10k_pci 0000:00:00.0: failed to enable peer stats info: -122
Mon May  6 18:36:37 2024 kern.info kernel: [  793.208038] phy0-sta0: associated
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: Associated with be:15:54:a8:8d:c2
Mon May  6 18:36:37 2024 daemon.notice netifd: Network device 'phy0-sta0' link is up
Mon May  6 18:36:37 2024 daemon.notice netifd: Interface 'wwan' has link connectivity
Mon May  6 18:36:37 2024 daemon.notice netifd: Interface 'wwan' is setting up now
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-EAP-STARTED EAP authentication started
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: Unknown event 37
Mon May  6 18:36:37 2024 kern.debug kernel: [  793.259535] phy0-sta0: Limiting TX power to 20 (23 - 3) dBm as advertised by be:15:54:a8:8d:c2
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: Unknown event 37
Mon May  6 18:36:37 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-EAP-FAILURE EAP authentication failed
Mon May  6 18:36:38 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-DISCONNECTED bssid=be:15:54:a8:8d:c2 reason=23
Mon May  6 18:36:38 2024 daemon.notice wpa_supplicant[1360]: phy0-sta0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="WOJO" auth_failures=6 duration=109 reason=AUTH_FAILED
Mon May  6 18:36:38 2024 daemon.notice wpa_supplicant[1360]: BSSID be:15:54:a8:8d:c2 ignore list count incremented to 2, ignoring for 10 seconds
Mon May  6 18:36:38 2024 kern.info kernel: [  793.316010] phy0-sta0: deauthenticated from be:15:54:a8:8d:c2 (Reason: 23=IEEE8021X_FAILED)
Mon May  6 18:36:38 2024 daemon.notice netifd: wwan (4790): udhcpc: started, v1.36.1
Mon May  6 18:36:38 2024 daemon.notice netifd: wwan (4790): udhcpc: broadcasting discover
Mon May  6 18:36:38 2024 kern.warn kernel: [  793.492482] ath10k_pci 0000:00:00.0: Invalid peer id 255 in peer stats buffer
Mon May  6 18:36:38 2024 kern.warn kernel: [  793.792635] ath10k_pci 0000:00:00.0: Invalid peer id 255 in peer stats buffer
Mon May  6 18:36:38 2024 daemon.notice netifd: Network device 'phy0-sta0' link is down
Mon May  6 18:36:38 2024 daemon.notice netifd: Interface 'wwan' has link connectivity loss
Mon May  6 18:36:39 2024 daemon.notice netifd: wwan (4790): udhcpc: received SIGTERM
Mon May  6 18:36:39 2024 daemon.notice netifd: wwan (4790): udhcpc: entering released state
Mon May  6 18:36:39 2024 daemon.notice netifd: wwan (4790): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wwan" } (Permission denied)
Mon May  6 18:36:39 2024 daemon.notice netifd: Interface 'wwan' is now down

I can see that kind of error too in the system log:

ath10k_pci 0000:00:00.0: Invalid peer id 255 in peer stats buffer

If anyone has an idea, please :wink:
Thanks in advance.