Skip to content
Snippets Groups Projects
Commit 5eb551c3 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

fix size calculation of the radio_config

SVN-Revision: 11049
parent 5edcbd23
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ int __init ar531x_find_config(char *flash_limit) ...@@ -121,7 +121,7 @@ int __init ar531x_find_config(char *flash_limit)
radio_config = board_config + 0x100 + ((rcfg - bcfg) & 0xfff); 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); 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); memcpy(radio_config, rcfg, rcfg_size);
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment