aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2015-04-07 20:03:35 +0000
committerGabor Juhos <juhosg@openwrt.org>2015-04-07 20:03:35 +0000
commit0c240b2a3b74f22d4ec4e2f41a4109e15712cac0 (patch)
tree68b71b7c99601d982445f7c0a27b3991272c6607 /target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
parent3fa90854cf48c32690ae5196b2e0a69d668e33e9 (diff)
downloadmaster-187ad058-0c240b2a3b74f22d4ec4e2f41a4109e15712cac0.tar.gz
master-187ad058-0c240b2a3b74f22d4ec4e2f41a4109e15712cac0.tar.bz2
master-187ad058-0c240b2a3b74f22d4ec4e2f41a4109e15712cac0.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45297 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/routerboot.h')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/routerboot.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
index 6ec296afd4..c1d7fb9ee0 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
+++ b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h
@@ -24,6 +24,7 @@ struct rb_info {
#ifdef CONFIG_ATH79_ROUTERBOOT
const struct rb_info *rb_init_info(void *data, unsigned int size);
void *rb_get_wlan_data(void);
+void *rb_get_ext_wlan_data(u16 id);
int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
u8 **tag_data, u16 *tag_len);
@@ -40,6 +41,11 @@ static inline void *rb_get_wlan_data(void)
return NULL;
}
+static inline void *rb_get_wlan_data(u16 id)
+{
+ return NULL;
+}
+
static inline int
routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
u8 **tag_data, u16 *tag_len)