Skip to content

mac80211: ath11k: some backports and reordered two patches - #20395

Merged
openwrt-bot merged 2 commits into
openwrt:mainfrom
AgustinLorenzo:main_ath11k
Oct 19, 2025
Merged

openwrt-bot merged 2 commits into
openwrt:mainfrom
AgustinLorenzo:main_ath11k

Conversation

@AgustinLorenzo

Copy link
Copy Markdown
Contributor

Hi boys,

I'm opening a PR with some interesting things for ath11k :)

mac80211: ath11k: reordered the patches 906 and 907 and refreshed, no functional changes
mac80211: ath11k: backport of the latest changes applied for ath11k in 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: #18705
Related: #9555
Related: #14117

The numbering of the added patches may not be correct. Please tell me how they should be numbered and I will move them. :)

Regards, Agustin

@github-actions github-actions Bot added the core packages pull request/issue for core (in-tree) packages label Oct 13, 2025
AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 13, 2025
AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 13, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
@Djfe

Djfe commented Oct 13, 2025

Copy link
Copy Markdown
Contributor

please use git mv for patch 940 so git doesn't mark this as deletion and adding a new file :)

@lorand-horvath

Copy link
Copy Markdown

@AgustinLorenzo Thanks for putting together this PR, very much appreciated!

@AgustinLorenzo

Copy link
Copy Markdown
Contributor Author

please use git mv for patch 940 so git doesn't mark this as deletion and adding a new file :)

Hi @Djfe,

The current patch 940 has nothing to do with the old one.

The 940 (old) was a workaround; the solution from QCA arrived in patch 945.

Regards, Agustin

AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 13, 2025
AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 13, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
robimarko pushed a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 15, 2025
robimarko pushed a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 15, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
@hauke

hauke commented Oct 15, 2025

Copy link
Copy Markdown
Member

This is not compiling:

../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_set_group_keys':
../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c:4329:33: error: passing argument 1 of 'ath11k_peer_find' from incompatible pointer type [-Wincompatible-pointer-types]
 4329 |         peer = ath11k_peer_find(ar, arvif->vdev_id, addr);
      |                                 ^~
      |                                 |
      |                                 struct ath11k *
In file included from ../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c:23:
../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/peer.h:44:58: note: expected 'struct ath11k_base *' but argument is of type 'struct ath11k *'
   44 | struct ath11k_peer *ath11k_peer_find(struct ath11k_base *ab, int vdev_id,
      |                                      ~~~~~~~~~~~~~~~~~~~~^~
make[11]: *** [scripts/Makefile.build:229: /__w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.o] Error 1
make[10]: *** [scripts/Makefile.build:478: /__w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k] Error 2
make[10]: *** Waiting for unfinished jobs....

@robimarko

Copy link
Copy Markdown
Contributor

It looks like something else needs to be backported as well, as builds are failling

@AgustinLorenzo

Copy link
Copy Markdown
Contributor Author

It looks like something else needs to be backported as well, as builds are failling

Yes... my mistake, give me a moment and I'll correct it.

@AgustinLorenzo

AgustinLorenzo commented Oct 16, 2025 •

Copy link
Copy Markdown
Contributor Author

This is not compiling:

../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c: In function 'ath11k_set_group_keys':
../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c:4329:33: error: passing argument 1 of 'ath11k_peer_find' from incompatible pointer type [-Wincompatible-pointer-types]
 4329 |         peer = ath11k_peer_find(ar, arvif->vdev_id, addr);
      |                                 ^~
      |                                 |
      |                                 struct ath11k *
In file included from ../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.c:23:
../mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/peer.h:44:58: note: expected 'struct ath11k_base *' but argument is of type 'struct ath11k *'
   44 | struct ath11k_peer *ath11k_peer_find(struct ath11k_base *ab, int vdev_id,
      |                                      ~~~~~~~~~~~~~~~~~~~~^~
make[11]: *** [scripts/Makefile.build:229: /__w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k/mac.o] Error 1
make[10]: *** [scripts/Makefile.build:478: /__w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/mac80211-regular/backports-6.16/drivers/net/wireless/ath/ath11k] Error 2
make[10]: *** Waiting for unfinished jobs....

The correct is ab (original patch)...ar is for NSS.

Sorry for the mistake

AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 16, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 16, 2025
AgustinLorenzo added a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 16, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
@AgustinLorenzo

Copy link
Copy Markdown
Contributor Author

Fixed

hauke pushed a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 19, 2025
… functional changes

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
hauke pushed a commit to AgustinLorenzo/openwrt that referenced this pull request Oct 19, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
@openwrt-bot
openwrt-bot merged commit ea2c2ca into openwrt:main Oct 19, 2025
@AgustinLorenzo

Copy link
Copy Markdown
Contributor Author

Thanks @hauke :)

danpawlik pushed a commit to danpawlik/openwrt that referenced this pull request Oct 20, 2025
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
danpawlik pushed a commit to danpawlik/openwrt that referenced this pull request Oct 20, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Oct 20, 2025
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt/openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Oct 20, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt/openwrt#18705
Related: openwrt/openwrt#9555
Related: openwrt/openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt/openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 22, 2025
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 22, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 26, 2025
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 26, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
simsasss pushed a commit to simsasss/openwrt that referenced this pull request Oct 26, 2025
… functional changes

Remove leading 0 from filename.

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
simsasss pushed a commit to simsasss/openwrt that referenced this pull request Oct 26, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
Signed-off-by: Hauke Mehrtens <[email protected]>
@AgustinLorenzo
AgustinLorenzo deleted the main_ath11k branch November 3, 2025 01:33
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Nov 3, 2025
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Nov 3, 2025
…n 6.16.12

This includes the following commits from upstream Linux between 6.16 and 6.16.12:

wifi: ath11k: clear initialized flag for deinit-ed srng lists
wifi: ath11k: fix sleeping-in-atomic in ath11k_mac_op_set_bitrate_mask()
wifi: ath11k: fix dest ring-buffer corruption
wifi: ath11k: fix source ring-buffer corruption
wifi: ath11k: fix dest ring-buffer corruption when ring is full
wifi: ath11k: fix group data packet drops during rekey [1]
wifi: ath11k: fix NULL dereference in ath11k_qmi_m3_load()

[1] The patch "940-ath11k-Revert-clear-the-keys-properly-when-DISABLE_K.patch" has been removed, as it has been fixed upstream in "wifi: ath11k: fix group data packet drops during rekey" and is added in 945 patch.
Related: openwrt#18705
Related: openwrt#9555
Related: openwrt#14117

Signed-off-by: Agustin Lorenzo <[email protected]>
Link: openwrt#20395
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants