Skip to content

mac80211: ath11k: fix rssi for ipq5018 and qcn6122 - #20834

Merged
openwrt-bot merged 1 commit into
openwrt:mainfrom
TheRootED24:ath11k-ipq5018-fix-rssi
Nov 25, 2025
Merged

openwrt-bot merged 1 commit into
openwrt:mainfrom
TheRootED24:ath11k-ipq5018-fix-rssi

Conversation

@TheRootED24

@TheRootED24 TheRootED24 commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

references:

upstream commit: [031ffa6c2cd305a57ccc6d610f2decd956b2e7f6]
Subject: [PATCH] wifi: ath11k: fix rssi station dump not updated in QCN9074

symptoms: iw station dump displays default value for avg signal (-95dbm) and signal (0dbm)

As described in the refrenced upstream commit, there was a header change
for HAL_RX_MPDU_START between ipq8074 and qcn9074. This caused wrong peer_id fetch
from msdu in the 9074 and the ipq5018 and subsequently the qcn6122 which uses the
ipq5018 hw_opts.

solution: use the updated qcn9074 mpdu_info_get_peerid implimentation with the new tlv
format, from the referenced upstream commit.

@TheRootED24 TheRootED24 changed the title ath11k:qualcommax:ipq5018: fix rssi for ipq5018/qcn6122 ath11k: qualcommax: ipq5018: fix rssi for ipq5018/qcn6122 Nov 19, 2025
@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch from 892f8fd to bfbcff7 Compare November 19, 2025 23:43
@TheRootED24

Copy link
Copy Markdown
Contributor Author

here is what iw station dump returned before applying patch

 root@OpenWrt:~# iw phy1-ap0 station dump
Station xx:xx:xx:xx:xx:ba (on phy1-ap0)
        inactive time:  71940 ms
        rx bytes:       18542777
        rx packets:     47145
        tx bytes:       340746485
        tx packets:     282365
        tx retries:     5139
        tx failed:      1275
        rx drop misc:   0
        signal:         0 dBm
        signal avg:     -95 dBm
        tx bitrate:     6.0 MBit/s
        tx duration:    10892904 us
        rx bitrate:     48.0 MBit/s
        rx duration:    2389771 us
        last ack signal:-67 dBm
        avg ack signal: -64 dBm
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       short
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
        DTIM period:    2
        beacon interval:100
        short preamble: yes
        short slot time:yes
        connected time: 7486 seconds
        associated at [boottime]:       224.166s
        associated at:  1763589325064 ms
        current time:   1763596811543 ms

after patch applied

Station xx:xx:xx:xx:xx:ba (on phy1-ap0)
        inactive time:  145490 ms
        rx bytes:       18542777
        rx packets:     47145
        tx bytes:       340746485
        tx packets:     282365
        tx retries:     5139
        tx failed:      1275
        rx drop misc:   0
        signal:         -59 dBm
        signal avg:     -61 dBm
        tx bitrate:     6.0 MBit/s
        tx duration:    10893784 us
        rx bitrate:     48.0 MBit/s
        rx duration:    2390194 us
        last ack signal:-71 dBm
        avg ack signal: -68 dBm
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       short
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
        DTIM period:    2
        beacon interval:100
        short preamble: yes
        short slot time:yes
        connected time: 7560 seconds
        associated at [boottime]:       224.166s
        associated at:  1763589325022 ms
        current time:   1763596885095 ms

Luci SNR values we not populating either. There is an open ticket for it
#18563 (comment)

the patch fixes that issue as well, luci now fully populates all fields correctly after applying patch

@castiel652

Copy link
Copy Markdown
Contributor

Can you send this to upstream

@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch 2 times, most recently from 7e7a0a2 to 83233f5 Compare November 20, 2025 02:22
@TheRootED24

Copy link
Copy Markdown
Contributor Author

yes i am just looking to test it thoroughly first. I hope to get some feedback and some pointers on submitting upstream.

@TheRootED24 TheRootED24 changed the title ath11k: qualcommax: ipq5018: fix rssi for ipq5018/qcn6122 ath11k: qualcommax: ipq5018: fix rssi for ipq5018 Nov 20, 2025
@castiel652

castiel652 commented Nov 20, 2025 •

Copy link
Copy Markdown
Contributor

https://wireless.docs.kernel.org/en/latest/en/users/drivers/ath11k/submittingpatches.html
Read this

If you have more questions feel free to ask. :)

@github-actions github-actions Bot added the target/qualcommax pull request/issue for qualcommax target label Nov 20, 2025
@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch 2 times, most recently from 9c069ef to 5f2f43f Compare November 20, 2025 04:39
@github-actions github-actions Bot added the core packages pull request/issue for core (in-tree) packages label Nov 20, 2025
@castiel652

Copy link
Copy Markdown
Contributor

commit title prefix should be mac80211: ath11k:

@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch 3 times, most recently from 5f2f43f to a3be2f7 Compare November 20, 2025 06:52
@TheRootED24 TheRootED24 changed the title ath11k: qualcommax: ipq5018: fix rssi for ipq5018 mac80211: ath11k: qualcommax: ipq5018: fix rssi for ipq5018 Nov 20, 2025
@TheRootED24 TheRootED24 changed the title mac80211: ath11k: qualcommax: ipq5018: fix rssi for ipq5018 mac80211: ath11k: fix rssi for ipq5018 and qcn6122 Nov 20, 2025
@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch from a3be2f7 to ab94f61 Compare November 20, 2025 06:59
@psyke83

psyke83 commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Confirming that local build with latest push (ab94f61) populates RSSI correctly for both radios of GL-B3000.

@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch 3 times, most recently from 0f82536 to 39642d2 Compare November 22, 2025 10:03
@hauke

hauke commented Nov 24, 2025

Copy link
Copy Markdown
Member

Please add a description to the patch itself. The text from the commit should be fine.

Please also send this upstream.

@georgemoussalem

Copy link
Copy Markdown
Contributor

tested successfully on my local devices (MX2000, MR5500, SPNMX56, and MX5500), well done!

@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch 3 times, most recently from 2915bb6 to 9ae934f Compare November 25, 2025 12:02
@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch from 9ae934f to 3ff1c40 Compare November 25, 2025 12:32
@TheRootED24

Copy link
Copy Markdown
Contributor Author

I think its ready for prime-time

@TheRootED24
TheRootED24 force-pushed the ath11k-ipq5018-fix-rssi branch from 3ff1c40 to 2ca9d67 Compare November 25, 2025 13:23
@@ -0,0 +1,25 @@
references:
upstream commit: [031ffa6c2cd305a57ccc6d610f2decd956b2e7f6]
Subject: [PATCH] wifi: ath11k: fix rssi station dump not updated in QCN9074

@georgemoussalem georgemoussalem Nov 25, 2025 •

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.

line should read:
wifi: ath11k: fix rssi station dump not updated in QCN9074
and delete the two lines above

and subject should be the same as the file name, so either change the filename or the subject

@TheRootED24 TheRootED24 Nov 25, 2025 •

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.

just so I am clear

line 1 should read : wifi: ath11k: fix rssi station dump not updated in QCN9074
and drop the reference for the commit ? or in other words

replace

references:
upstream commit: [031ffa6c2cd305a57ccc6d610f2decd956b2e7f6]
Subject: [PATCH] wifi: ath11k: fix rssi station dump not updated in QCN9074

with

wifi: ath11k: fix rssi station dump not updated in QCN9074

correct ?

and file name to

mac80211-ath11k-fix-rssi-for-ipq5018-and-qcn6122.patch

@Ansuel
Ansuel force-pushed the ath11k-ipq5018-fix-rssi branch from 2ca9d67 to 9dc372e Compare November 25, 2025 14:30
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#20834
Signed-off-by: Christian Marangi <[email protected]>
@Ansuel
Ansuel force-pushed the ath11k-ipq5018-fix-rssi branch from 9dc372e to 6065edf Compare November 25, 2025 14:30
@openwrt-bot
openwrt-bot merged commit 6065edf into openwrt:main Nov 25, 2025
@TheRootED24
TheRootED24 deleted the ath11k-ipq5018-fix-rssi branch November 25, 2025 16:42
@castiel652

Copy link
Copy Markdown
Contributor

codetiger666 pushed a commit to codetiger666/openwrt that referenced this pull request Nov 26, 2025
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#20834
Signed-off-by: Christian Marangi <[email protected]>
@castiel652

Copy link
Copy Markdown
Contributor

also just realised something.
@Ansuel QCN6122 is not supported in upstream so you might need to omit it from the patch.

@Ansuel

Ansuel commented Nov 27, 2025 via email

Copy link
Copy Markdown
Member

Lienol pushed a commit to Lienol/openwrt that referenced this pull request Nov 29, 2025
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]>
danpawlik pushed a commit to danpawlik/openwrt that referenced this pull request Dec 1, 2025
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#20834
Signed-off-by: Christian Marangi <[email protected]>
Lienol pushed a commit to Lienol/openwrt that referenced this pull request Dec 16, 2025
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]>
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]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Jan 6, 2026
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#20834
Signed-off-by: Christian Marangi <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Jan 7, 2026
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#20834
Signed-off-by: Christian Marangi <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
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#20834
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 target/qualcommax pull request/issue for qualcommax target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants