summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-05-05 17:31:36 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-05-05 17:31:36 +0000
commit5eb551c3a5b0989338a56db4833a67564a617815 (patch)
treec1a362b35bb21453a55b486942fd42480158fb22 /target/linux
parent5edcbd23a44050241b395dc85741ac18ef1dbd9e (diff)
downloadmtk-20170518-5eb551c3a5b0989338a56db4833a67564a617815.zip
mtk-20170518-5eb551c3a5b0989338a56db4833a67564a617815.tar.gz
mtk-20170518-5eb551c3a5b0989338a56db4833a67564a617815.tar.bz2
fix size calculation of the radio_config
SVN-Revision: 11049
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/atheros/files/arch/mips/atheros/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/board.c b/target/linux/atheros/files/arch/mips/atheros/board.c
index 1b1e04f..ba42788 100644
--- a/target/linux/atheros/files/arch/mips/atheros/board.c
+++ b/target/linux/atheros/files/arch/mips/atheros/board.c
@@ -121,7 +121,7 @@ int __init ar531x_find_config(char *flash_limit)
radio_config = board_config + 0x100 + ((rcfg - bcfg) & 0xfff);
printk("Radio config found at offset 0x%x(0x%x)\n", rcfg - bcfg, radio_config - board_config);
- rcfg_size = BOARD_CONFIG_BUFSZ - ((rcfg - bcfg) & (BOARD_CONFIG_BUFSZ - 1));
+ rcfg_size = BOARD_CONFIG_BUFSZ - ((0x100 + rcfg - bcfg) & (BOARD_CONFIG_BUFSZ - 1));
memcpy(radio_config, rcfg, rcfg_size);
return 0;