]> git.ipfire.org Git - thirdparty/openwrt.git/commit
mt76: Fix DTS power-limits on little endian systems
authorSven Eckelmann (Plasma Cloud) <se@simonwunderlich.de>
Mon, 30 Jun 2025 14:39:37 +0000 (16:39 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Oct 2025 18:30:36 +0000 (20:30 +0200)
commit7dc498dc9fa28ce45f65763fe9cc120abf8da474
treed2c7ce713eebafd4400f69427f53caf9035b6743
parent5cb0ccfc8bf170c477beb6518f22a1e4aa9aef92
mt76: Fix DTS power-limits on little endian systems

The power-limits for ru and mcs and stored in the devicetree as bytewise
array (often with sizes which are not a multiple of 4). These arrays have a
prefix which defines for how many modes a line is applied. This prefix is
also only a byte - but the code still tried to fix the endianness of this
byte with a be32 operation. As result, loading was mostly failing or was
sending completely unexpected values to the firmware.

Since the other rates are also stored in the devicetree as bytewise arrays,
just drop the u32 access + be32_to_cpu conversion and directly access them
as bytes arrays.

Signed-off-by: Sven Eckelmann (Plasma Cloud) <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20152
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/mt76/patches/0001-wifi-mt76-Fix-DTS-power-limits-on-little-endian-syst.patch [new file with mode: 0644]