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:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user