1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-22 08:38:28 +02:00
Commit Graph

6 Commits

Author SHA1 Message Date
Thibaut VARÈNE
1c6990fe6d 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. Since ath10k caldata is no longer pulled from
this implementation, this commit also disables the publication in sysfs
to avoid wasting memory.

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>
2020-05-12 12:41:08 +02:00
Gabor Juhos
96b006eb32 ar71xx: routerboot: export extended wlan data via sysfs
Export the data to make it accessible from user-space.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45298
2015-04-07 20:03:43 +00:00
Gabor Juhos
76b5a9aa7d ar71xx: routerboot: add support for extended radio data
On newer Mikrotik boards, the radio calibration data
is stored differently and uses LZO compression instead
of RLE.

Update the RouterBOOT helper code to support the new
format.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 45297
2015-04-07 20:03:35 +00:00
Gabor Juhos
16565ec94b ar71xx: add some RouterBOOT specific helper functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39091
2013-12-16 10:11:01 +00:00
Felix Fietkau
144cfb65a4 ar71xx: add hard_cfg offset detection for rb2011 support - fixes wlan on some newer devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36631
2013-05-13 19:13:33 +00:00
Gabor Juhos
ccabe4a1b4 ar71xx: add RouterBoot related helper routines
SVN-Revision: 33347
2012-09-09 14:05:28 +00:00