openwrt/target/linux/ramips
John Thomson 7d33aedd10 generic: platform/mikrotik: add wlan lz77 decompress
A number of new (or with recently updated caldata)
Mikrotik devices are using LZ77 magic for wlan tag hard_config data.
New devices include the Chateau LTE12 [1], and ax devices [2]
Newly factory flashed devices may include the hap ac3 [3]

This can be seen in decoded OEM supout [4] dmesg:
"radio data lz77 decompressed from"…

Investigating an arm RouterOS flash.ko module, and supplied example
hard_config dumps, the format was guessed via decompilation and live
debugging [5]. This decoder was then built from the guessed format
specification.

debug prints can be enabled in a DYNAMIC_DEBUG kernel build via the
kernel cmdline:

        chosen {
-               bootargs = "console=ttyS0,115200";
+               bootargs = "console=ttyS0,115200 dyndbg=\"file drivers/platform/mikrotik/* +p\"";
        };

[1]: https://forum.openwrt.org/t/no-wireless-mikrotik-rbd53ig-5hacd2hnd/157763/4
[2]: https://forum.openwrt.org/t/mikrotik-routeros-v7-x-and-openwrt-sysupgrade/148072/17
[3]: https://forum.openwrt.org/t/adding-support-for-mikrotik-hap-ax2/133715/47
[4]: https://github.com/farseeker/go-mikrotik-rif
[5]: https://github.com/john-tho/routeros-wlan-lz77-decode

Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Link: https://github.com/openwrt/openwrt/pull/15774
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-10-08 10:45:58 +02:00
..
base-files/etc ramips: remove model name from LED labels 2020-10-02 14:51:57 +02:00
dts ramips: ER605v2 fix LED function definition 2024-10-06 18:58:47 +02:00
files/drivers ramips: mtk_eth_soc: don't allocate 4 queues 2024-09-29 07:46:33 +08:00
image ramips: use OKLI loader for TP-Link RE200 v1 and RE210 v1 2024-10-06 14:07:37 +02:00
mt76x8 ramips: mt76x8: add support for Yuncore CPE200 2024-09-02 13:27:47 +02:00
mt7620 ramips: add support for Wavlink WL-WN531G3-A2 2024-07-21 18:47:37 +02:00
mt7621 generic: platform/mikrotik: add wlan lz77 decompress 2024-10-08 10:45:58 +02:00
patches-6.6 ramips: modernize ralink i2c driver 2024-10-03 16:48:29 +02:00
rt288x ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
rt305x ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
rt3883 ramips: gpio: convert to the generic GPIO driver 2024-07-04 22:20:47 +02:00
Makefile ramips: switch to Linux 6.6 2024-05-03 21:36:42 +01:00
modules.mk ramips: modules: add Mediatek MMC driver package 2024-07-11 18:57:41 +02:00