Bug 218733 - ath12k: doesn't work with iwd
Summary: ath12k: doesn't work with iwd
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_network-wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 09:44 UTC by GreyXor
Modified: 2025-03-26 22:12 UTC (History)
3 users (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description GreyXor 2024-04-16 09:44:18 UTC
Hello, this is a follow-up to that answer:
https://lists.infradead.org/pipermail/ath12k/2024-April/002005.html

I need to set this option in /etc/iwd/main.conf
[General]
ControlPortOverNL80211=false

Otherwise I can't connect to certain wi-fi networks (especially those with wpa2 security).
Comment 1 Johan Hovold 2024-12-10 14:06:33 UTC
I'm also seeing iwd repeatedly failing to connect with reason PREV_AUTH_NOT_VALID with WCN7850 on the Lenovo ThinkPad T14s (and the Snapdragon X1E CRD reference design).

Adding ControlPortOverNL80211=false allows iwd to connect.
Comment 2 Kalle Valo 2024-12-12 08:02:15 UTC
Is this a regression? I assume not and ath12k has been always broken with iwd.

The title said "some secure wifi network". Does that mean that ath12k works with iwd in certain cases? If so, what cases exactly?

The discussion on the list:

https://lore.kernel.org/all/AS8P190MB12051DDBD84CD88E71C40AD7873F2@AS8P190MB1205.EURP190.PROD.OUTLOOK.COM/
Comment 3 GreyXor 2024-12-12 10:39:21 UTC
No, ath12k has been always broken with iwd.

For my tests, I connect to my Android access point and configure its security settings. When the security is set to "open," the connection works without requiring any additional configuration in iwd. However, if I change the security to "WPA2-Personal," the connection fails unless I set ControlPortOverNL80211 to false.

Linux 6.13.0-rc2
iwd 3.2

dmesg:
[30952.600539] wlan0: deauthenticated from c0:56:27:d4:b3:4c (Reason: 2=PREV_AUTH_NOT_VALID)
[30953.807635] wlan0: authenticate with c0:56:27:d4:b3:4c (local address=4c:82:a9:50:54:5d)
[30953.807643] wlan0: send auth to c0:56:27:d4:b3:4c (try 1/3)
[30953.846464] wlan0: authenticated
[30953.849603] wlan0: associate with c0:56:27:d4:b3:4c (try 1/3)
[30953.876863] wlan0: RX AssocResp from c0:56:27:d4:b3:4c (capab=0x511 status=0 aid=8)
[30953.894899] wlan0: associated
[30957.907067] wlan0: deauthenticated from c0:56:27:d4:b3:4c (Reason: 2=PREV_AUTH_NOT_VALID)
[30958.063476] ath12k_pci 0000:01:00.0: failed to send HAL_REO_CMD_FLUSH_CACHE, tid 10 (-105)
[30959.121975] wlan0: authenticate with c0:56:27:d4:b3:4c (local address=4c:82:a9:50:54:5d)
[30959.121991] wlan0: send auth to c0:56:27:d4:b3:4c (try 1/3)

iwd:
déc. 12 11:30:49 gregoire-laptop iwd[144951]: event: connect-info, ssid: FBI Surveillance Van 🥸, bss: 86:d7:8f:1b:ac:ee, signal: -42, load: 0/255
déc. 12 11:30:49 gregoire-laptop iwd[144951]: event: state, old: autoconnect_quick, new: connecting (auto)
déc. 12 11:30:49 gregoire-laptop iwd[144951]: event: state, old: connecting (auto), new: connected
déc. 12 11:30:53 gregoire-laptop iwd[144951]: unprotected disconnect event, src=86:d7:8f:1b:ac:ee dest=4c:82:a9:50:54:5d bssid=86:d7:8f:1b:ac:ee reason=15
déc. 12 11:30:53 gregoire-laptop iwd[144951]: unprotected disconnect event, src=86:d7:8f:1b:ac:ee dest=4c:82:a9:50:54:5d bssid=86:d7:8f:1b:ac:ee reason=15
déc. 12 11:30:54 gregoire-laptop iwd[144951]: unprotected disconnect event, src=86:d7:8f:1b:ac:ee dest=4c:82:a9:50:54:5d bssid=86:d7:8f:1b:ac:ee reason=7
déc. 12 11:30:57 gregoire-laptop iwd[144951]: SA Query timed out, connection is invalid.  Disconnecting...
déc. 12 11:30:58 gregoire-laptop iwd[144951]: event: disconnect-info, reason: 2
déc. 12 11:30:58 gregoire-laptop iwd[144951]: event: state, old: connected, new: disconnected
déc. 12 11:30:58 gregoire-laptop iwd[144951]: event: state, old: disconnected, new: autoconnect_quick
déc. 12 11:30:58 gregoire-laptop iwd[144951]: invalid HE capabilities for 86:d7:8f:1b:ac:ee

I'm not sure how I can debug more to help you. Let me know, thanks
Comment 4 archlinuxusr 2025-03-26 22:12:07 UTC
Hi there! I was wondering if there’s any update on the status of this bug. Also, are there any other threads where I can follow this issue?

Note You need to log in before you can comment on or make changes to this bug.