diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-05-13 19:13:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-05-13 19:13:33 +0000 |
commit | 144cfb65a478a57ae0c551df27ee6d152b644799 (patch) | |
tree | 3a4482d185afa2a3e84c55f0e7e433ed16e7cf61 /target/linux/ar71xx/files/arch/mips/ath79/routerboot.h | |
parent | 2c5a5d87363791b7f6221de8fff0ade3be21c0ea (diff) | |
download | mtk-20170518-144cfb65a478a57ae0c551df27ee6d152b644799.zip mtk-20170518-144cfb65a478a57ae0c551df27ee6d152b644799.tar.gz mtk-20170518-144cfb65a478a57ae0c551df27ee6d152b644799.tar.bz2 |
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
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/routerboot.h')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/routerboot.h | 7 |
1 files changed, 7 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 9a4dde5..2489e0a 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h +++ b/target/linux/ar71xx/files/arch/mips/ath79/routerboot.h @@ -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_ */ |