zephyr/subsys/net/lib
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
..
coap license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
config Bluetooth: Use BT_GATT_SERVICE_DEFINE whenever possible 2019-05-02 08:29:23 +03:00
dns license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
http license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
lwm2m cmake: Don't have users call zephyr_link_interface on mbedTLS 2019-05-11 08:35:26 -04:00
mqtt net: lib: mqtt: Enable blocking PUBLISH payload readout 2019-05-07 22:08:30 -04:00
openthread net: openthread: fix off-by-one error in settings offset calculation 2019-05-23 10:47:20 +03:00
sntp net: sntp: Add convenience API for one-shot SNTP query 2019-05-10 13:44:32 +03:00
sockets net: sockets: implement getsockname function 2019-05-17 22:49:32 +03:00
socks license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
tls_credentials license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
utils net: socketutils: Add utils to manipulate network address strings 2019-05-10 13:44:32 +03:00
CMakeLists.txt net: socketutils: Add utils to manipulate network address strings 2019-05-10 13:44:32 +03:00
Kconfig net: Add initial SOCKS5 support 2019-02-08 14:20:44 +02:00