diff options
| author | 2026-09-04 18:35:51 -0700 | |
|---|---|---|
| committer | 2026-10-06 11:50:52 +0200 | |
| commit | af97bf5a7e72da9026de184676df8e2fa57e1058 (patch) | |
| tree | 2b01ba8547f23531166f149ae8b43e1b18b9137f /scripts/Makefile.thinlto | |
| parent | wifi: mt76: mt792x: treat 0xff ACPI SAR entries as no limit (diff) | |
wifi: mt76: mt792x: pick the SAR table layout from the table itself
The SAR power tables are parsed with a version byte from a different
ACPI table, never their own.
Some firmware declares version 1 and ships version 2 tables. The
entries then start a byte early, and the 6 GHz limits the table
carries are dropped, because the older layout has no room for them.
ASUS GA503RM, MTCL declares v1:
MTGS 28 bytes v1: (28-6) % 5 = 2, no fit v2: 3 tables
MTDS 19 bytes v1: (19-6) % 6 = 1, no fit v2: 1 table
The layouts accept disjoint lengths, so take whichever one fits and
keep it per table.
Reported-by: Sagun Kayastha <sgn.kayastha@gmail.com>
Closes: https://github.com/morrownr/mt76/issues/62
Fixes: f965333e491e ("mt76: mt7921: introduce ACPI SAR support")
Signed-off-by: Devin Wittmayer <lucid_duck@justthetip.ca>
Link: https://patch.msgid.link/20260905013551.24635-1-lucid_duck@justthetip.ca
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
