zephyr/subsys/net
Michael Scott a923c2f1be 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: https://github.com/zephyrproject-rtos/zephyr/issues/16339

Signed-off-by: Michael Scott <mike@foundries.io>
2019-05-23 10:47:20 +03:00
..
ip net: if: Select global IPv4 address if needed 2019-05-21 15:37:53 +03:00
l2 net: ethernet: Drop pkt if MAC dst is bcast address but IP is not 2019-05-21 16:43:38 +03:00
lib net: openthread: fix off-by-one error in settings offset calculation 2019-05-23 10:47:20 +03:00
buf.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
hostname.c net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00
Kconfig net: buf: Use proper Kconfig log level template 2018-10-24 15:10:33 +03:00
Kconfig.hostname net: hostname: Fix Kconfig option help 2019-02-20 19:42:13 -05:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net net: Clarify logging in networking code 2018-12-07 12:00:04 +02:00