2
0
forked from Ivasoft/openwrt

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
This commit is contained in:
Gabor Juhos
2015-04-07 20:03:35 +00:00
parent f0cbd004ee
commit 76b5a9aa7d
4 changed files with 67 additions and 8 deletions

View File

@@ -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)