projects
/
openwrt
/
staging
/
jogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5edcbd2
)
fix size calculation of the radio_config
author
Gabor Juhos
<juhosg@openwrt.org>
Mon, 5 May 2008 17:31:36 +0000
(17:31 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Mon, 5 May 2008 17:31:36 +0000
(17:31 +0000)
SVN-Revision: 11049
target/linux/atheros/files/arch/mips/atheros/board.c
patch
|
blob
|
history
diff --git
a/target/linux/atheros/files/arch/mips/atheros/board.c
b/target/linux/atheros/files/arch/mips/atheros/board.c
index 1b1e04fcee470e6efab41d06e6c0af2f8cd6659f..ba427883a7d8601d6df129b15a2f95d03f914013 100644
(file)
--- 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;