mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-12 14:37:07 +03:00
[atheros] fix size calculation of the radio_config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11049 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
59d3cbb5a5
commit
7b3cc4a84a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user