Please sign in to comment.
net: openthread: fix off-by-one error in settings offset calculation
OpenThread uses CONFIG_OT_PLAT_FLASH_PAGES_COUNT to calculate the # of pages at the end of flash to use for storing OpenThread settings. This calculation has an off-by-one error which sets the offset for the storage area as 1 page of flash too low. For example, on nRF52840: - default setting for CONFIG_OT_PLAT_FLASH_PAGES_COUNT is 4 - flash size is 1MB (0x100000) - flash page size is 4096 (0x1000) - expected offset is 0xfc000 Using the current logic we get an offset of: 0xfb000 Fixes: #16339 Signed-off-by: Michael Scott <email@example.com>
- Loading branch information...
Showing with 1 addition and 1 deletion.