Skip to content

wifi: ath6kl: fix issues found on big-endian MIPS

Josef Schlehofer linux-wireless stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3wifi: ath6kl: use little-endian BMI command fieldsdrivers/net/wireless/ath/ath6kl/bmi.c+29 -260 replies
2/3wifi: ath6kl: use kvfree() for firmwaredrivers/net/wireless/ath/ath6kl/core.c+1 -10 replies
3/3wifi: ath6kl: use test_bit() for firmware capabilitiesdrivers/net/wireless/ath/ath6kl/init.c+2 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH ath-next 0/3] wifi: ath6kl: fix issues found on big-endian MIPS

While bringing up an AR6006 on a big-endian MIPS router (QCA9563), I found three issues in ath6kl that do not depend on the new chip:

- BMI command fields are sent in host byte order.
- API 1 firmware is freed with vfree() although kmemdup() allocated it.
- Firmware capabilities are read as bytes instead of with test_bit().

All three fixes were tested on the router with backports 6.18.55 (OpenWrt 25.12, kernel 6.12), using local AR6006 support patches. On ath-next they build cleanly with W=1 for big- and little-endian MIPS.

AR6006 support will follow separately. The firmware question is here:
https://lore.kernel.org/r/[email protected]

Josef Schlehofer (3):
wifi: ath6kl: use little-endian BMI command fields
wifi: ath6kl: use kvfree() for firmware
wifi: ath6kl: use test_bit() for firmware capabilities

 drivers/net/wireless/ath/ath6kl/bmi.c  | 55 ++++++++++++++------------
 drivers/net/wireless/ath/ath6kl/core.c |  2 +-
 drivers/net/wireless/ath/ath6kl/init.c | 11 +-----
 3 files changed, 32 insertions(+), 36 deletions(-)

base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23

Signature · 1 line
2.54.0 (Apple Git-157)