Skip to content

ath11k: fix transmit queue flushing with flush_sta implementation - #20293

Merged
openwrt-bot merged 1 commit into
openwrt:mainfrom
maurerle:ath11k_flush_transmit_queue
Nov 4, 2025
Merged

openwrt-bot merged 1 commit into
openwrt:mainfrom
maurerle:ath11k_flush_transmit_queue

Conversation

@maurerle

@maurerle maurerle commented Oct 3, 2025 •

Copy link
Copy Markdown
Contributor

warning print ath11k c000000.wifi: failed to flush transmit queue 0 is observed during interface down.

The mac80211 fallback implementation of flush_sta does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

The patch is run-tested on a Xiaomi AX3600.
The error did not show up, during testing, but it might be that not everything is fixed with this yet.

This should be tested in affected installations.

Upstreamed RFC-patch:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

@github-actions github-actions Bot added the core packages pull request/issue for core (in-tree) packages label Oct 3, 2025
@maurerle maurerle changed the title ath11k: add patch to fix transmit queue flushing ath11k: fix transmit queue flushing with flush_sta implementation Oct 3, 2025
@maurerle

This comment was marked as outdated.

@maurerle
maurerle force-pushed the ath11k_flush_transmit_queue branch 2 times, most recently from fbb9e06 to 9f10d3c Compare October 3, 2025 22:01
@Ansuel

Ansuel commented Oct 3, 2025

Copy link
Copy Markdown
Member

Really interesting thing. Honestly I would merge this right away and call the community on forum to take care of it... Even considering making the "failed to flush" a critical error and see how many complain we get...

Did you also test this with moving an ssid from 2.4 to 5 with the same ssid (for example with wifi FT?)

@robimarko what do you think?

+ struct ath11k_vif *arvif = (void *)vif->drv_priv;
+ struct ath11k *ar = hw->priv;
+ struct peer_flush_params params = {
+ .peer_tid_bitmap = 0xFF,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine with 0xFF and with 0xFFFF, but not with 0xFFFFFFFF - so there probably is an undocumented mgmt bit which should not be set as it would issue Assertion !CHK_TID_FLG(ptid, WAL_TID_IN_SCHEDQ) failedparam0 :zero, param1 :zero, param2 :zero.
I don't quite know what the other bits do here.

For ath10k, the mgmt bit is WMI_MGMT_TID=17, which is not the case here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Management frame goes through a different path

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not really know what each bit means. So I would say that there is the theoretical chance that we might not actually be flushing everything. The obvious thing would be that the TIDs are mapped into the bottom bits, and then things should be fine as we only care about data frames.

Note that we don't even need the flush to complete from the driver perspective. All we really care about is that the FW flushes before processing the next command (which is the key deletion).

It would be good to have some kind of confirmation from someone who can inspect the FW. It might be that we technically need to wait for the flush to complete by waiting for the TX reports in the driver (same on ath10k).

@maurerle

maurerle commented Oct 4, 2025 •

Copy link
Copy Markdown
Contributor Author

@Ansuel I would test this first here for a few days, as I notified various issues.
Also to maybe get some advice on which peer_tid_bitmap we should use.

I tested this using gluon - which has dual radio mesh ifaces, dual radio client ifaces (with the same ssid/name) and a dual radio with an additional ssid.
Everything is well so far, it even works to move from 2.4GHz to 5GHz and vice-versa.
I did not check 802.11r/Fast Transition though.

@Flole998

Flole998 commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

I am going to pull this into my installation tomorrow and I will test it on 5 access points (all different models, IP8074 and IPQ50xx based) which all show this issue right now. That should provide a good indication if its fixed or not. Just saw this now, otherwise I would have pulled it in today already.

@Flole998

Flole998 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

It's been running for 12 hours now on all devices, the error seems to be gone from dmesg and this might have also fixed my iPad losing it's connection sometimes (not sure on that one yet). This PR doesn't seem to have any negative impact, so all good

@Flole998

Flole998 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

https://github.com/qosmio/openwrt-ipq/blob/main-nss/package/kernel/mac80211/patches/nss/ath11k/453-ath11k-flush-management-frames-to-firmware-before-wa.patch

What about this

That's for management traffic AFAIK. This PR is for data traffic.

@maurerle

maurerle commented Oct 7, 2025

Copy link
Copy Markdown
Contributor Author

@Flole998 ist it okay for you if I add Tested-by: Flole <[email protected]> to the Patch?

@maurerle

maurerle commented Oct 7, 2025

Copy link
Copy Markdown
Contributor Author

@larena1 so if you see failed to flush mgmt transmit queue in the logread - the PR you mentioned might help.
If you see failed to flush transmit queue 0, this PR helps.

@Djfe

Djfe commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

that's likely because your NSS fork is using several patches OpenWrt does not, I assume.
NSS has never been part of the official OpenWrt as you know. (just for everyone else reading)

@Flole998

Flole998 commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

@Flole998 ist it okay for you if I add Tested-by: Flole <[email protected]> to the Patch?

Sure :)

@maurerle
maurerle force-pushed the ath11k_flush_transmit_queue branch from 9f10d3c to ced9a66 Compare October 7, 2025 14:19
@maurerle
maurerle marked this pull request as ready for review October 7, 2025 20:16
@Flole998

Copy link
Copy Markdown
Contributor

Still not a single message logged since applying this patch. Unfortunately the wifi drops I was experiencing before are still there, I was hoping this might also fix those.

@hauke

hauke commented Oct 19, 2025

Copy link
Copy Markdown
Member

Please update the code based on the comments you got for the upstream submission.

@maurerle
maurerle force-pushed the ath11k_flush_transmit_queue branch 2 times, most recently from 2643bc7 to dc52363 Compare October 27, 2025 23:02
@maurerle

Copy link
Copy Markdown
Contributor Author

I updated the patch according to the cosmetic feedback in the upstream submission.
So this is ready.
If something happens upstream with my submission, I will take care of it as well, of course.

warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
@Ansuel
Ansuel force-pushed the ath11k_flush_transmit_queue branch from dc52363 to 8faa9de Compare November 4, 2025 19:12
@Ansuel

Ansuel commented Nov 6, 2025

Copy link
Copy Markdown
Member

@maurerle Can you send a v2 of the patch upstream with the TIDs fixed? Would really love to see this proceed upstream. If you have problem I can send it for you.

Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Nov 6, 2025
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
@maurerle
maurerle deleted the ath11k_flush_transmit_queue branch November 7, 2025 01:28
@maurerle

maurerle commented Nov 7, 2025

Copy link
Copy Markdown
Contributor Author

@Ansuel

Ansuel commented Nov 7, 2025

Copy link
Copy Markdown
Member

@maurerle sorry but why you are not using the mask it was suggested? Those warning can be ignored.

@maurerle

maurerle commented Nov 7, 2025 •

Copy link
Copy Markdown
Contributor Author

@Ansuel

I discussed this in private with Sebastian Gottschall and found that: bitmap = ~(1 << 17); does not work either and crashes.
By looking at the ath11k source, he came to the conclusion that it is correct to only set the first 8 bits.

@Ansuel

Ansuel commented Nov 7, 2025 •

Copy link
Copy Markdown
Member

ah ok would have been better to the finding public. You have no idea how much these info are useful after 1-2 years where the fw starts to explode.

Honestly speaking I would add a big comment up the peer_tid_bitmap documenting this. (just in case someone later notice this and say "why we don't flush all the bits!!!!")

@benzea

benzea commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

By looking at the ath11k source, he came to the conclusion that it is correct to only set the first 8 bits.

Have you tried setting bits 25, 26, 27, 28? I have reason to believe that these may be relevant when the interface is in station mode. And that could be relevant for the whole CVE where frames might be sent out unencrypted.

i.e. mask: 0x1e0000ff

@wang20150419

Copy link
Copy Markdown

My device is Xiaomi AX3600. I am using the latest version 24.10.4, The official report states that this bug has been fixed. I observed it for two days, and this bug still exists, but it occurs much less frequently compared to version 24.10.2.

root@AX3600:/etc# cat openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='24.10.4'
DISTRIB_REVISION='r28959-29397011cc'
DISTRIB_TARGET='qualcommax/ipq807x'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt 24.10.4 r28959-29397011cc'
DISTRIB_TAINTS=''

root@AX3600:/etc/config# logread |grep "failed to queue management frame -28"
Fri Nov 7 08:01:12 2025 kern.warn kernel: [10249.644445] ath11k c000000.wifi: failed to queue management frame -28
Fri Nov 7 20:33:18 2025 kern.warn kernel: [55375.628179] ath11k c000000.wifi: failed to queue management frame -28
Fri Nov 7 20:33:18 2025 kern.warn kernel: [55375.641637] ath11k c000000.wifi: failed to queue management frame -28
Fri Nov 7 20:33:18 2025 kern.warn kernel: [55375.656151] ath11k c000000.wifi: failed to queue management frame -28
Fri Nov 7 20:33:18 2025 kern.warn kernel: [55375.670632] ath11k c000000.wifi: failed to queue management frame -28
Fri Nov 7 20:33:18 2025 kern.warn kernel: [55375.685154] ath11k c000000.wifi: failed to queue management frame -28

@Ansuel

Ansuel commented Nov 7, 2025

Copy link
Copy Markdown
Member

those are management frame... they are different error...

@Ansuel

Ansuel commented Nov 7, 2025

Copy link
Copy Markdown
Member

EmreYavuzalp added a commit to EmreYavuzalp/openwrt that referenced this pull request Nov 7, 2025
* mediatek: filogic: TP-Link Archer AX80 v1 (EU) support

* odhcp6c: update to Git HEAD (2025-11-04)

b3e1db42b4db odhcp6c: fix safe interval processing to follow RFC 4862
63461f64d4c1 dhcpv6: always include IA_NA and IA_PD in Request message if requested
1051cabb4da3 dhcpv6: fix incorrect IA type being printed in syslog
c5237eabeb5c odhcp6c: prevent RELEASE at shutdown when -k is set
a01b1ff1e50f odhcp6c: fix client exiting if Renew and Rebind fails
4839bf6d0feb odhcp6c: implement RKAP: Reconfiguration Key Authentication Protocol
52a9a847def4 dhcpv6: fix solicit loop when server has no address available
7b1f67c23de6 ubus: implement ubus methods to force a Renew and Release
2b0e8f2d8541 ubus: implement retransmission configuration via ubus
8d89d373f360 odhcp6c: add failure when -E option is used without ubus support enabled
58f3c9eb1163 odhcp6c: add new argument option to disable script call
1048fc4fb622 reconfigure: move all configuration functions to a new file
93f056d3a1f2 reconfigure: implement DHCP reconfiguration
af669fb23cd3 dhcpv6: implement statistics for DHCPv6
3a1a599fecb7 ubus: implement UBus method to get state data immediately
44c50214997d ubus: emit UBus event on DHCP state changes
33b972bc526a ubus: connect to UBus backend
2f609f248faf odhcp6c: implement asynchronous handling for DHCPv6 State
6466314e7f62 odhcp6c: enable Non-Blocking DHCPv6 Socket
1df65f0caf46 dhcpv6: refactor dhcp_request Function
047c63a8156b dhcpv6: add t1 and t2 transmission
1b5f0c402bbf dscp: add option to set dscp value
96017df54d8f dhcpv6: fix wrong retransmission of DHCPv6 Solicit
b929fc8a1cfd odhcp6c: add a simple build script
adc651ffed55 cmake: make libubox mandatory
5182e2b696ef cmake: drop EXT_PREFIX_CLASS
8d052c52e18d cmake: disable pedantic
f2521b296b21 github: fix CI apt dependencies

openwrt/odhcp6c@77e1ae2...b3e1db4

Signed-off-by: Álvaro Fernández Rojas <[email protected]>

* odhcpd: update to Git HEAD (2025-11-04)

d44af6dd8f4e dhcpv6: create struct dhcpv6_lease
4df45c8c3722 dhcpv4: create struct dhcpv4_lease
a6dccae41b60 odhcpd: struct lease -> struct lease_cfg
fc0abb66f122 dhcpv4: use leasetime from a->lease
74eeff193848 router: always use link-local src address for RAs
b9a071b8341f router: Rewrite the ingress MTU to one configured for the interface
1ef9e0e610d5 router: utilize interface ra_mtu for RA
1480c09ee0aa config: clamp ra_mtu to interface MTU, and default ra_mtu to interface MTU
ee4f0df6bd68 netlink: Store interface MTU at link change
d174e25e85a1 github: fix CI apt dependencies
8f393d55a76e odhcpd: more fixes for IID calculations

openwrt/odhcpd@fc27940...d44af6d

Signed-off-by: Álvaro Fernández Rojas <[email protected]>

* I don't have a device, but I can help a little.
Remember: Do full backups!!

Signed-off-by: Sergey Shlukov <[email protected]>

* tools/liblzo: add cmake 4.x compatibility

Patch CMakeLists.txt to fulfill cmake 4.0 requirements
of cmake_minimum_required being at least 3.5 and in future 3.10.

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* treewide: edit local CMakeLists.txt to be compatible with cmake 4.x

Edit CMakeLists.txt to fulfill cmake 4.0 requirement that
cmake_minimum_required is now at least 3.5 and in future 3.10.

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* libjson-c: patch for cmake 4.x compatibility

Patch CMakeLists.txt in selected apps for cmake 4.x compatibility.
New cmake versions require at least 3.5 as 'cmake_minimum_required'
in CMakeLists.txt. In future 3.10 will be required.

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* jansson: adjust for cmake 4.x compatibility

Patch CMakeLists.txt in selected apps for cmake 4.x compatibility.
New cmake versions require at least 3.5 as 'cmake_minimum_required'
in CMakeLists.txt. In future 3.10 will be required.

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* libevent2: adjust for cmake 4.x compatibility

Patch CMakeLists.txt for cmake 4.x compatibility.
New cmake versions require at least 3.5 as 'cmake_minimum_required'
in CMakeLists.txt. In future 3.10 will be required.

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* tools/cmake: update to 4.1.2

Update cmake to 4.1.2.
Note that cmake 4.x requires at least 3.5 as 'cmake_minimum_required'
in CMakeLists.txt of each app to be compiled.

Future cmake versions will increase that requirement to 3.10
https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html

Signed-off-by: Hannu Nyman <[email protected]>
Link: openwrt#20265
Signed-off-by: Christian Marangi <[email protected]>

* ipq806x: 6.12: backport patch to handle CPUFreq with no SMEM

The Google OnHub doesn't init the SMEM in SBL causing the CPUFreq driver
to fail probe. This is caused by the fact that new CPUFreq driver makes
use of SMEM to identify the SoC variant and on Google OnHub this is not
available.

Backport patch to detect this state and fallback to compatible
matching fixing the CPUFreq driver.

Link: openwrt#20587
Signed-off-by: Christian Marangi <[email protected]>

* ipq806x: switch to kernel 6.12

Move the ipq806x target to kernel 6.12 by default as every kernel bump
problem has been handled.

Link: openwrt#20644
Signed-off-by: Christian Marangi <[email protected]>

* ipq806x: drop support for kernel 6.6

Drop support for kernel 6.6 as now kernel 6.12 is set as default kernel
version.

Link: openwrt#20644
Signed-off-by: Christian Marangi <[email protected]>

* ath11k: fix transmit queue flushing through flush_sta implementation

warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>

* airoha: replace PWM patch with upstream version

Replace Airoha AN7581 PWM patch with upstream version and add kernel
version tag.

Signed-off-by: Christian Marangi <[email protected]>

* mediatek: filogic: TP-Link Archer AX80 v1 (EU) support

* mediatek: filogic: TP-Link Archer AX80 v1 (EU) support

* mediatek: filogic: TP-Link Archer AX80 v1 (EU) support

* mediatek: filogic: TP-Link Archer AX80 v1 (EU) support

* fix

Signed-off-by: Sergey Shlukov <[email protected]>

* fix led's (#7)

* fix led's

* Delete router

Signed-off-by: Manti <[email protected]>

---------

Signed-off-by: Manti <[email protected]>

---------

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Signed-off-by: Sergey Shlukov <[email protected]>
Signed-off-by: Hannu Nyman <[email protected]>
Signed-off-by: Christian Marangi <[email protected]>
Signed-off-by: Florian Maurer <[email protected]>
Signed-off-by: EmreYavuzalp <[email protected]>
Signed-off-by: Manti <[email protected]>
Co-authored-by: Emre Yavuzalp <[email protected]>
Co-authored-by: Álvaro Fernández Rojas <[email protected]>
Co-authored-by: Hannu Nyman <[email protected]>
Co-authored-by: Christian Marangi <[email protected]>
Co-authored-by: Florian Maurer <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Co-authored-by: EmreYavuzalp <[email protected]>
Co-authored-by: Manti <[email protected]>
@maurerle

maurerle commented Nov 8, 2025

Copy link
Copy Markdown
Contributor Author

@benzea
Thanks for getting back to this.
Using mask 0x1e0000ff, I get the following kernel errors:

Errors for 0x1e0000ff
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test hostapd: Remove bss 'client1' on phy 'phy1'
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850]
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] wal_peer_control.c:11907 Assertion !CHK_TID_FLG(ptid, WAL_TID_IN_SCHEDQ) failedparam0 :zero, param1 :zero, param2 :zero.
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] Thread ID      : 0x00000062  Thread name    : WLAN RT1  Process ID     : 0
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] Register:
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] SP : 0x4bfd6000
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] FP : 0x4bfd6008
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] PC : 0x4b107f58
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] SSR : 0x00000008
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] BADVA : 0x00020000
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] LR : 0x4b1076f4
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850]
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] Stack Dump
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] from : 0x4bfd6000
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850] to   : 0x4bfd62c0
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.861850]
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.912248] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.934487] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.942806] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.975465] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.975725] ath11k c000000.wifi: Found peer entry 56:36:77:9d:de:bc n vdev 0 after it was supposedly removed
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.982444] ath11k c000000.wifi: failed to send WMI_PEER_FLUSH_TIDS cmd
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.991598] ath11k c000000.wifi: failed to flush sta (sta 60:ff:9e:71:f5:40)
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   63.997967] ath11k c000000.wifi: failed to send WMI_PEER_DELETE cmd
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.005220] ath11k c000000.wifi: failed to delete peer vdev_id 0 addr 60:ff:9e:71:f5:40 ret -108
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.011215] ath11k c000000.wifi: Failed to delete peer: 60:ff:9e:71:f5:40 for VDEV: 0
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.020238] ath11k c000000.wifi: Failed to remove station: 60:ff:9e:71:f5:40 for VDEV: 0
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.027949] ath11k c000000.wifi: Found peer entry 56:36:77:9d:de:bc n vdev 0 after it was supposedly removed
2025-11-08T01:32:01+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.036174] ------------[ cut here ]------------
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.045908] WARNING: CPU: 1 PID: 2189 at backports-6.12.52/net/mac80211/sta_info.c:1473 sta_set_sinfo+0xc30/0xc54 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.050527] Modules linked in: iptable_nat batman_adv(O) ath11k_ahb(O) ath11k(O) xt_state xt_nat xt_conntrack xt_REDIRECT xt_MASQUERADE xt_CT wireguard smsc95xx rndis_host pl2303 nf_nat nf_conntrack mcs7830 mac80211(O) libchacha20poly1305 ipt_REJECT ftdi_sio ebtable_nat ebtable_filter ebtable_broute dm9601 chacha_neon cfg80211(O) cdc_subset cdc_ncm cdc_ether cdc_eem ax88179_178a asix xt_time xt_tcpudp xt_quota xt_pkttype xt_owner xt_multiport xt_mark xt_mac xt_limit xt_comment xt_addrtype xt_TCPMSS xt_LOG usbserial usbnet ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda smsc r8152 qrtr_smd qrtr qmi_helpers(O) poly1305_neon pegasus nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c libchacha iptable_mangle iptable_filter ipheth ip_tables hso ebtables ebt_vlan ebt_stp ebt_snat ebt_redirect ebt_pkttype ebt_mark_m ebt_mark ebt_limit ebt_ip6 ebt_ip ebt_dnat ebt_arpreply ebt_arp ebt_among ebt_802_3 compat(O) cdc_acm
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.050767]  ax88796b sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow act_skbedit act_mirred act_gact ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 dummy ip_tunnel veth ntfs nls_utf8 nls_iso8859_2 nls_iso8859_15 nls_iso8859_13 nls_iso8859_1 nls_cp852 nls_cp850 nls_cp437 nls_cp1250 vxlan udp_tunnel ip6_udp_tunnel sha512_generic sha512_arm64 sha2_ce sha256_arm64 seqiv sha3_generic jitterentropy_rng drbg michael_mic kpp hmac geniv cmac uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd fsl_mph_dr_of ehci_platform ehci_fsl ehci_hcd qca_nss_dp(O) qca_ssdk(O) act_police cls_basic sch_tbf sch_ingress gpio_button_hotplug(O) vfat fat ext4 mbcache jbd2 aquantia hwmon crc_ccitt mii crc32c_generic
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.198238] CPU: 1 PID: 2189 Comm: hostapd Tainted: G           O       6.6.110 #0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.220481] Hardware name: Xiaomi AX3600 (DT)
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.228110] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.232541] pc : sta_set_sinfo+0xc30/0xc54 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.239308] lr : sta_set_sinfo+0xc2c/0xc54 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.244516] sp : ffffffc0851836d0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.249548] x29: ffffffc0851836d0 x28: 0000000000000000 x27: ffffff8010b76200
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.252854] x26: 0000000000000001 x25: 0000000000000000 x24: 0000000000000002
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.259971] x23: ffffff8006c88f08 x22: ffffff800fdd0940 x21: ffffff8006c888c0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.267089] x20: 0000000000000000 x19: ffffff8008e53000 x18: 00000000000001df
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.274207] x17: 302076656476206e x16: 2063623a65643a64 x15: ffffffc080c0a070
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.281325] x14: 000000000000059d x13: 00000000000001df x12: 00000000ffffffea
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.288443] x11: 00000000ffffefff x10: ffffffc080c62070 x9 : ffffffc080c0a018
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.295562] x8 : 0000000000000024 x7 : ffffff8008e57000 x6 : 0000000000008de8
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.302679] x5 : ffffffbf9f3ca000 x4 : 0000000000000000 x3 : ffffff8002ecdc00
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.309798] x2 : 0000000000000000 x1 : ffffff8002ecdc00 x0 : 00000000ffffff94
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.316917] Call trace:
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.324026]  sta_set_sinfo+0xc30/0xc54 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.324081] remoteproc remoteproc0: remote processor cd00000.q6v5_wcss is now up
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.326286]  __sta_info_flush+0x150/0x230 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.338614]  ieee80211_nan_func_terminated+0x1344/0x49d4 [mac80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.343565]  cfg80211_leave_mesh+0x170/0x210 [cfg80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.349552]  cfg80211_stop_ap+0xb0/0xcc [cfg80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.354758]  nl80211_send_chandef+0x1010/0x11b0 [cfg80211]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.359622]  genl_family_rcv_msg_doit+0xb0/0x118
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.365088]  genl_rcv_msg+0x1b4/0x24c
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.368933] ath11k c000000.wifi: qmi ignore invalid mem req type 3
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.369859]  netlink_rcv_skb+0x60/0x130
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.369865]  genl_rcv+0x38/0x50
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.369871]  netlink_unicast+0x204/0x2f0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.369876]  netlink_sendmsg+0x19c/0x3d0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.378902] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.379495]  ____sys_sendmsg+0x1cc/0x27c
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.379506]  ___sys_sendmsg+0x80/0xc8
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.379514]  __sys_sendmsg+0x48/0xa8
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.383230] ath11k c000000.wifi: fw_version 0x290b84a5 fw_build_timestamp 2024-09-23 11:32 fw_build_id WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.386353]  __arm64_sys_sendmsg+0x24/0x30
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.426894]  invoke_syscall.constprop.0+0x5c/0x108
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.430888]  do_el0_svc+0x40/0xc4
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.435659]  el0_svc+0x28/0xdc
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.439043]  el0t_64_sync_handler+0x120/0x12c
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.441998]  el0t_64_sync+0x178/0x17c
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.446425] ---[ end trace 0000000000000000 ]---
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.9.0.1-02146-QCAHKSWPL_SILICONZ-1
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696]     :Excep  :0 Exception detectedparam0 :zero, param1 :zero, param2 :zero.
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] Thread ID      : 0x00000062  Thread name    : WLAN RT1  Process ID     : 0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] Register:
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] SP : 0x4bfd5d80
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] FP : 0x4bfd5d88
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] PC : 0x4b14ca5c
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] SSR : 0x00000003
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] BADVA : 0x0000013f
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] LR : 0x4b14bad0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] Stack Dump
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] from : 0x4bfd5d80
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696] to   : 0x4bfd62c0
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.459696]
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.506237] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.528581] remoteproc remoteproc0: handling crash #2 in cd00000.q6v5_wcss
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.536736] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test kernel: [   64.569203] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test hostapd: client1: AP-STA-DISCONNECTED 32:72:1f:a9:a3:4b
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test hostapd: client1: AP-STA-DISCONNECTED 60:ff:9e:71:f5:40
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test hostapd: client1: AP-DISABLED
2025-11-08T01:32:02+00:00 ffac-seilpforte-xiaomi-ax3600-test hostapd: client1: CTRL-EVENT-TERMINATING

The device reboots every 30-60 seconds. So I do not really like to manually try all bits.. :/

@benzea

benzea commented Nov 9, 2025 •

Copy link
Copy Markdown
Contributor

I guess, something like this maybe?

But then, who wants to test station mode, heh.

static void ath11k_mac_op_flush_sta(struct ieee80211_hw *hw,
				    struct ieee80211_vif *vif,
				    struct ieee80211_sta *sta)
{
	struct ath11k_vif *arvif = (void *)vif->drv_priv;
	struct ath11k *ar = hw->priv;
	struct peer_flush_params params = {
		.peer_tid_bitmap = 0xFF,
		.vdev_id = arvif->vdev_id,
	};
	int ret;

	if (vif->type == NL80211_IFTYPE_STATION)
		params.peer_tid_bitmap |= 0x1e000000;

	ret = ath11k_wmi_send_peer_flush_tids_cmd(ar, sta->addr, &params);
	if (ret)
		ath11k_warn(ar->ab, "failed to flush sta %pM: %d\n", sta->addr, ret);
}

maurerle added a commit to maurerle/openwrt that referenced this pull request Nov 9, 2025
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
Signed-off-by: Florian Maurer <[email protected]>
@maurerle

maurerle commented Nov 9, 2025

Copy link
Copy Markdown
Contributor Author

@benzea I did test this successfully.
I used the snippet from here to directly connect to another AP and verified that the expected mac address did connect and disconnect: freifunk-gluon/community-packages#33 (comment)
Used the connection a little bit and then removed the iface again.

No issues in the log. So this looks valid - thanks!

@Ansuel

Ansuel commented Nov 9, 2025

Copy link
Copy Markdown
Member

@benzea so if we use the unified mask it does crash?

@maurerle

Copy link
Copy Markdown
Contributor Author

@Ansuel using the unified mask crashes for clients in NL80211_IFTYPE_MESH_POINT and NL80211_IFTYPE_AP.
It seems required for STA mode though.

I added a comment to my first RFC.

I submitted an updated version which sets TID 25-28 in STA mode to patchwork:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB1433E723AF90A69AEBB696DAE8CBA@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

I hope that everything is fine so far.
If you want, I can create a PR to openwrt to update my patch, but we can also await an upstream response..?

@Ansuel

Ansuel commented Nov 15, 2025

Copy link
Copy Markdown
Member

Let's wait upstream response. It's an interesting finding.

hauke pushed a commit to Djfe/openwrt that referenced this pull request Dec 12, 2025
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 8faa9de)
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt#20667
Signed-off-by: Hauke Mehrtens <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Dec 16, 2025
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
lunatickochiya pushed a commit to lunatickochiya/istoreos-24.10 that referenced this pull request Dec 30, 2025
…PQ5018 and QCN6122

Add pending patch to fix RSSI station data on IPQ5018 and QCN6122.

Signed-off-by: Scott Mercer <[email protected]>
[ improve commit description, replace patch ]
Link: openwrt/openwrt#20834
Signed-off-by: Christian Marangi <[email protected]>
mac80211: fix netns crash

[  201.286070] CPU: 0 UID: 0 PID: 34 Comm: kworker/u8:1 Tainted: G S         O       6.12.51 #0
[  201.294509] Tainted: [S]=CPU_OUT_OF_SPEC, [O]=OOT_MODULE
[  201.299812] Hardware name: Bananapi BPI-R64 (DT)
[  201.304422] Workqueue: netns cleanup_net
[  201.308347] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  201.315304] pc : cfg80211_switch_netns+0x270/0x2d0 [cfg80211]
[  201.321086] lr : cfg80211_switch_netns+0x26c/0x2d0 [cfg80211]
[  201.326846] sp : ffffffc081143ca0
[  201.330153] x29: ffffffc081143ca0 x28: 61c8864680b583eb x27: 0000000000000000
[  201.337287] x26: ffffffc080c46000 x25: ffffff8000d28800 x24: ffffffc081143d80
[  201.344421] x23: ffffff800834e360 x22: ffffffc080d6b280 x21: ffffffc07904aeb8
[  201.351554] x20: ffffff800834c200 x19: ffffff8005e90000 x18: 0000000000000000
[  201.358688] x17: 0000000000000000 x16: 000000000000001d x15: ffffffc081143cf8
[  201.365821] x14: ffffff8005703600 x13: 00000000000003bb x12: 0000000000000000
[  201.372955] x11: 00000000000000c0 x10: 0000000000000000 x9 : ffffffc081143bd0
[  201.380088] x8 : 0000000000000000 x7 : 7f7f7f7f7f7f7f7f x6 : 1f1f1f1f1f1f6348
[  201.387222] x5 : 0000000000000004 x4 : ffffff8000ce8000 x3 : 0000000000000000
[  201.394355] x2 : 0000000000000000 x1 : ffffff8005e90800 x0 : 00000000ffffffea
[  201.401489] Call trace:
[  201.403926]  cfg80211_switch_netns+0x270/0x2d0 [cfg80211]
[  201.409340]  ops_exit_list+0x40/0x80
[  201.412910]  cleanup_net+0x344/0x558
[  201.416480]  process_one_work+0x174/0x300
[  201.420489]  worker_thread+0x278/0x430
[  201.424234]  kthread+0xd8/0xdc
[  201.427283]  ret_from_fork+0x10/0x20

Fixes: e005cdea1028 ("mac80211: update to version 6.16")
Signed-off-by: Janusz Dziedzic <[email protected]>
Link: openwrt/openwrt#20829
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: mwl8k: inject DSSS Parameter Set element into beacons if missing

Some Marvell AP firmware used with mwl8k misbehaves when beacons do not
contain the DSSS Parameter Set (WLAN_EID_DS_PARAMS) with the current
channel. When hostapd/mac80211 omits this element (which is valid on
some bands), the firmware may report bogus RX channel information and AP
mode becomes unusable.

Backport the upstream fix that ensures beacons always carry the DSSS
Parameter Set for mwl8k: when setting the beacon, detect if the element
is missing and inject it after SSID and Supported Rates (per spec
ordering). This mirrors behaviour in newer Marvell drivers and restores
stable operation.

Tested on Linksys EA4500 (88W8366).

Fixes: openwrt/openwrt#19088
Link: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless.git/commit/?id=c4e1ac09ee1c750890e36cb1f841f25518f23589

Signed-off-by: Pawel Dembicki <[email protected]>
Link: openwrt/openwrt#20757
Signed-off-by: Hauke Mehrtens <[email protected]>
ath11k: fix transmit queue flushing through flush_sta implementation for main

warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
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: 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]>
mac80211: ath11k: reordered the patches 906 and 907 and refreshed, no 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]>
mac80211: realtek: rtw88: add RTL8822CS support

Add Realtek RTL8822CS support to the rtw88 package.

Signed-off-by: Tianling Shen <[email protected]>
Link: openwrt/openwrt#20423
Signed-off-by: Nick Hainke <[email protected]>
mac80211: realtek: add support for RTL8814AE/RTL8814AU

This adds support for RTL8814AE/RTL8814AU PCI/USB adapters.
Run-tested: x86/64/rockchip
USB adapter tested: Hawking HW17ACU Wireless-AC1750.

Signed-off-by: Marty Jones <[email protected]>
Link: openwrt/openwrt#19052
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: use https instead of http

Use CDN first, if fails, it will use https://mirror2.openwrt.org/sources

Signed-off-by: Andy Chiang <[email protected]>
Link: openwrt/openwrt#19979
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: Fix compilation of iwlwifi driver

The Intel iwlwifi mld driver uses some updated thermal functions. Adapt
the driver to compile again kernel 6.6 again.

Fixes: 9c82d499995b ("mac80211: iwlwifi fix BE200 probe")
Link: openwrt/openwrt#19948
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: iwlwifi: Add DRIVER_11BE_SUPPORT

The driver support Wifi 7, add dependency to DRIVER_11BE_SUPPORT.

Link: openwrt/openwrt#19948
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: Refresh patches

Automatically Refresh the patches.

Fixes: 4d3a35f3689 ("mac80211: remove rt2x00_platform_data")
Link: openwrt/openwrt#19948
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: iwlwifi fix BE200 probe

Fix probing and load correct drivers
when using last backports.

Signed-off-by: Janusz Dziedzic <[email protected]>
Link: openwrt/openwrt#19927
Signed-off-by: Hauke Mehrtens <[email protected]>
mac80211: add support for MLD AP client probing

Select a link for outgoing probe packets

Signed-off-by: Felix Fietkau <[email protected]>
mac80211: extend connection monitoring for MLO

Required for latest mt76

Signed-off-by: Felix Fietkau <[email protected]>
Revert "mac80211: extend connection monitoring for MLO"

This reverts commit d73ec79a6b31ae4684f30f5dc01f2f073aba2ce8.
mac80211: remove rt2x00_platform_data

All of this uses OF now. No need to keep platform data around.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt/openwrt#19804
Signed-off-by: Robert Marko <[email protected]>
liudf0716 pushed a commit to liudf0716/chawrt that referenced this pull request Jan 5, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 8faa9de)
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt/openwrt#20667
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit f415748)
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Jan 6, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
AaronElijah pushed a commit to botblox/openwrt that referenced this pull request Mar 3, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 8faa9de)
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt#20667
Signed-off-by: Hauke Mehrtens <[email protected]>
Rokith-BT pushed a commit to Gemicates-Tech/prplos that referenced this pull request Mar 17, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 8faa9de)
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt/openwrt#20667
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit f415748)
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/qsdk_oss_prpl-foundation_prplos_prplos that referenced this pull request Jul 8, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
(cherry picked from commit 8faa9de)
Signed-off-by: Felix Baumann <[email protected]>
Link: openwrt/openwrt#20667
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit f415748)
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt#20293
Signed-off-by: Christian Marangi <[email protected]>
Quarx2k pushed a commit to Quarx2k/OpenWRT-BE7000 that referenced this pull request Sep 22, 2026
warning print "ath11k c000000.wifi: failed to flush transmit queue 0"
is observed during busy times.

The mac80211 fallback implementation of `flush_sta` does not handle the per STA queues well.
This is fixed by providing a ath11k specific implementation of flush_sta telling the firmware to flush a given station.
The draining of the transmit queues should therefore stop correctly, even if new packets arrive in the mean time.

An upstream ath11k RFC is available at:
https://patchwork.kernel.org/project/linux-wireless/patch/GV1P250MB14333A5BF24623C4753A10E1E8E0A@GV1P250MB1433.EURP250.PROD.OUTLOOK.COM/

The patch was tested on a Xiaomi AX3600.

Signed-off-by: Florian Maurer <[email protected]>
Tested-by: Florian Maurer  <[email protected]>
Co-authored-by: Benjamin Berg <[email protected]>
Tested-by: Flole <[email protected]>
Link: openwrt/openwrt#20293
Signed-off-by: Christian Marangi <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants