openwrt/target/linux/ar71xx
Thibaut VARÈNE ac56d25361 ar71xx: mikrotik: bypass id check in __rb_get_wlan_data()
The id parameter in __rb_get_wlan_data() was incorrectly used on the
assumption that id "0" would always be tied to ath9k with RLE encoding
and positive id (in fact, only id "1" was valid) would always be tied to
("external") ath10k with LZO encoding.

Newer hardware revisions of supported devices prove this assumption to
be invalid, with ath9k caldata being now wrapped in MAGIC_ERD and LZO
compressed, so disable this check to allow newer hardware to correctly
decode caldata for ath9k.

Note: this patch assumes that ath9k caldata is never stored with the new
"LZOR" encoding scheme found on some ath10k devices.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(cherry picked from commit 1c6990fe6d)
[keep publishing ath10k caldata in sysfs: it's the way it's done on 18.06]
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
Tested-by: Baptiste Jonglez <git@bitsofnetworks.org> [Mikrotik RB941-2nD r3]
2020-10-18 00:32:44 +02:00
..
base-files ar71xx: fix sysupgrade for Arduino Yun 2020-08-02 18:19:12 +02:00
files ar71xx: mikrotik: bypass id check in __rb_get_wlan_data() 2020-10-18 00:32:44 +02:00
generic ar71xx/generic: enable Zyxel NBG6616 in kernel config again 2018-08-27 21:39:40 +02:00
image ar71xx: change u-boot-env to read-write for ZyXEL NBG6616 2020-08-11 01:18:04 +02:00
mikrotik ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
nand ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
patches-4.9 kernel: Update kernel 4.9 to version 4.9.240 2020-10-18 00:32:15 +02:00
tiny ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
Makefile ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
config-4.9 ar71xx:add support for E750G v8 2018-07-30 14:02:41 +02:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00