2
0
forked from Ivasoft/openwrt

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
This commit is contained in:
Felix Fietkau
2013-05-13 19:13:33 +00:00
parent 2c5a5d8736
commit 144cfb65a4
3 changed files with 51 additions and 7 deletions

View File

@@ -14,6 +14,7 @@
#ifdef CONFIG_ATH79_ROUTERBOOT
int routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
u8 **tag_data, u16 *tag_len);
int routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard);
#else
static inline int
routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
@@ -21,6 +22,12 @@ routerboot_find_tag(u8 *buf, unsigned int buflen, u16 tag_id,
{
return -ENOENT;
}
static inline int
routerboot_find_magic(u8 *buf, unsigned int buflen, u32 *offset, bool hard)
{
return -ENOENT;
}
#endif
#endif /* _ATH79_ROUTERBOOT_H_ */