diff options
| author | Devin Wittmayer <lucid_duck@justthetip.ca> | 2026-09-04 18:35:51 -0700 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2026-10-06 11:50:52 +0200 |
| commit | af97bf5a7e72da9026de184676df8e2fa57e1058 (patch) | |
| tree | 2b01ba8547f23531166f149ae8b43e1b18b9137f /tools/perf/scripts/python | |
| parent | 45f53d98cbaa078907b6a300ff3974dfb5ae8776 (diff) | |
| download | linux-af97bf5a7e72da9026de184676df8e2fa57e1058.tar.gz linux-af97bf5a7e72da9026de184676df8e2fa57e1058.zip | |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
