zephyr/subsys
Robert Lubos 12e1fd653d net: lwm2m: Fix FOTA block transfer with opaque content-format
This commit fixes PUSH FOTA when opaque content-format is used.

This consists of the following fixes:
 * Moved `struct block_context` to a private header, so that it can be a
   part of `struct lwm2m_input_context`. This allows content decoders to
   make use of the block context data.
 * Removed faulty `get_length_left` function from the plain text
   decoder, and replace it with coap_packet_get_payload() to obtain the
   actual payload size.
 * Introduce `struct lwm2m_opaque_context` as a part of block context,
   which allows to keep track of opaque data download progress.
 * Simplify `lwm2m_write_handler_opaque()` function. It will now only
   make calls to `engine_get_opaque` - it's the decoder responsibility
   to update the opaque context according to it's content format (for
   instance TLV decoder should only update it with the actual opaque
   data size, not the whole TLV).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-10-05 12:16:57 +02:00
..
bluetooth Bluetooth: controller: Fix Null deref during adv data update 2020-10-05 11:47:30 +02:00
canbus subsys: canopen: Add a wrapper to avoid passing device to CO_init 2020-09-02 13:48:13 +02:00
console device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
cpp
debug debug: gdbstub: Send an error code when accessing invalid memory 2020-09-02 20:54:57 -04:00
dfu misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
disk misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
emul device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fs drivers: flash: Pass bool to flash_write_protection_set() 2020-10-02 12:06:28 -04:00
jwt Kconfig: cleanup subsystems 2020-08-24 10:24:30 +02:00
logging misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
mgmt misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
net net: lwm2m: Fix FOTA block transfer with opaque content-format 2020-10-05 12:16:57 +02:00
power power: fix Kconfig help message 2020-09-14 21:27:23 -04:00
random random: Warning when using test config 2020-10-02 11:30:03 +02:00
settings settings_fcb: initialize rc variable 2020-10-02 12:07:06 -04:00
shell shell: enhance help command 2020-10-02 12:05:49 -04:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage storage: flash_map: Unify partition processing macros name 2020-09-21 16:42:29 -05:00
testsuite tests: timestamp: minor cleanup 2020-09-05 13:28:38 -05:00
timing timing: introduce timing functions as a generic feature 2020-09-05 13:28:38 -05:00
tracing tracing: handle null thread names with systemview 2020-09-20 21:27:55 -04:00
usb code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
CMakeLists.txt emul: Create an emulation implementation 2020-09-01 14:30:46 -04:00
Kconfig timing: introduce timing functions as a generic feature 2020-09-05 13:28:38 -05:00