Skip to content

[24.10] mac80211: ath11k: fix broadcast failures during GTK rekeying - #18754

Merged
openwrt-bot merged 1 commit into
openwrt:openwrt-24.10from
henryptung:24.10/18705
May 15, 2025
Merged

openwrt-bot merged 1 commit into
openwrt:openwrt-24.10from
henryptung:24.10/18705

Conversation

@henryptung

Copy link
Copy Markdown
Contributor

@henryptung henryptung changed the title mac80211: ath11k: fix broadcast failures during GTK rekeying [24.10] mac80211: ath11k: fix broadcast failures during GTK rekeying May 9, 2025
@github-actions github-actions Bot added core packages pull request/issue for core (in-tree) packages release/24.10 pull request/issue targeted (also) for OpenWrt 24.10 release labels May 9, 2025
@henryptung

Copy link
Copy Markdown
Contributor Author

@McGiverGim Hm, I have an MX4300 which isn't on stable release, so I can't test this cherry-pick myself. If you can test it, that would be awesome (if you don't have a build environment, I can build the kmod-ath11k opkg for you).

@McGiverGim

Copy link
Copy Markdown

@McGiverGim Hm, I have an MX4300 which isn't on stable release, so I can't test this cherry-pick myself. If you can test it, that would be awesome (if you don't have a build environment, I can build the kmod-ath11k opkg for you).

I don't know too much about this, but if you build the opkg, I suppose is only install it and test. I have two Xiaomi AX3600 if it matters.

@henryptung

henryptung commented May 9, 2025 •

Copy link
Copy Markdown
Contributor Author

@McGiverGim Note: This has a chance of rendering OpenWRT unable to boot, so don't test on a primary/critical device and make sure you're comfortable with debricking if necessary.

Suggested prep:

  • Use a wired connection for testing
  • Install luci-app-advanced-reboot for easier recovery
  • Use attended sysupgrade to upgrade to latest 24.10.1, download image, then upgrade
  • After upgrade, backup configuration too
  • If there are any new issues here, stop and reboot to other partition to restore old setup

Patched kernel module: https://github.com/henryptung/openwrt/blob/24.10/test/kmod-ath11k_6.6.89.6.12.6-r1_aarch64_cortex-a53/lib/modules/6.6.89/ath11k.ko Nevermind - I have to build the patched module directly off of the 24.10.1 release build commit. Will update this once that's done.

Patched kernel module, based on 0425664679: https://github.com/henryptung/openwrt/blob/24.10/test/kmod-ath11k_6.6.86.6.12.6-r1_aarch64_cortex-a53/lib/modules/6.6.86/ath11k.ko

The ipk is also in tree, but I think the dependency checks will prevent you from installing it. Monkey-patching the .ko should have the same effect anyway.

If you need to debrick, TFTP recovery should get you back to OEM and the saved image and config should let you restore your OpenWRT setup.

@McGiverGim

Copy link
Copy Markdown

Finally I used the ipk file with opkg install --force-reinstall option and it seems it installed without problem.
I can confirm that at least wifi is working and I can't see any error so it seems it does not break anything so it can be merged.

About if this fixes the problem with broadcast, I can't say at this moment. I was affected by the need to enable the option multicast_to_unicast_all '1' workaround to not lost IPv6 connectivity, in theory with this patch is not necessary anymore, but the problem appears after some hours/days, so I will kept an eye on it. I don't know if there is a way to test the patch in other way.

Regards and thanks for your work!!!

@McGiverGim

Copy link
Copy Markdown

After 5 days all remains stable, so this patch seems ok. I will report if things change, but I think it can be safely merged.

Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- openwrt#9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <[email protected]>
Link: openwrt#18705
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 94e04a4)
Link: openwrt#18754
Signed-off-by: Hauke Mehrtens <[email protected]>
@openwrt-bot
openwrt-bot merged commit d2d9b1e into openwrt:openwrt-24.10 May 15, 2025
gigibox pushed a commit to liudf0716/chawrt that referenced this pull request May 16, 2025
Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- openwrt/openwrt#9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <[email protected]>
Link: openwrt/openwrt#18705
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 94e04a4)
Link: openwrt/openwrt#18754
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit d2d9b1e)
indraAsLesmana pushed a commit to indraAsLesmana/openwrt that referenced this pull request Sep 13, 2025
Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- openwrt/openwrt#9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <[email protected]>
Link: openwrt/openwrt#18705
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 94e04a4513b6697160a852ee353e57647560bdca)
Link: openwrt/openwrt#18754
Signed-off-by: Hauke Mehrtens <[email protected]>
indraAsLesmana pushed a commit to indraAsLesmana/openwrt that referenced this pull request Sep 23, 2025
Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- openwrt/openwrt#9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <[email protected]>
Link: openwrt/openwrt#18705
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 94e04a4513b6697160a852ee353e57647560bdca)
Link: openwrt/openwrt#18754
Signed-off-by: Hauke Mehrtens <[email protected]>
AaronElijah pushed a commit to botblox/openwrt that referenced this pull request Mar 3, 2026
Revert key_cipher change to NONE when clearing key.
Setting to NONE triggers asserts in the firmware and causes broadcast
drops with ath11k firmware 2.9.0.1, so until a future blob
fixes this, revert this as a workaround.

Imported from
https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/win.wlan_host_opensource.3.0.r24/patches/ath11k/350-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch

Related discussion links:

- openwrt#9555
- https://lore.kernel.org/linux-wireless/Z2Q9POuV-6MIdzRf@pilgrim/T/#t

Signed-off-by: Henry Tung <[email protected]>
Link: openwrt#18705
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 94e04a4)
Link: openwrt#18754
Signed-off-by: Hauke Mehrtens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages release/24.10 pull request/issue targeted (also) for OpenWrt 24.10 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants