fix size calculation of the radio_config

SVN-Revision: 11049
lede-17.01
Gabor Juhos 2008-05-05 17:31:36 +00:00
parent 5edcbd23a4
commit 5eb551c3a5
1 changed files with 1 additions and 1 deletions

View File

@ -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;