zephyr/subsys
Omkar Kulkarni 602fd0d889 Bluetooth: Mesh: Blob Server considers friendship
Fix Max Chunk reporting during Block_Information_Get:
If friendship is established, then max possible chunk size for transfer
is reported according to friend's queue size.

ChunkSize = (FndQ sz * Bytes per seg (12)) - Opcode(1) - Chunk_Num (2)-
            8 byte MIC (max)
	  = (FndQ sz * 12) - 11

This allows all segments of Chunk_Transfer messages to fit in a friend
queue. If this is not done, friend queue keeps overflowing
systematically causing unstable PULL_MODE transfers.

Fix Chunk requests:
Adapt number of requested chunks according to current friend queue size.
If friend queue is too small, at least 1 chunk is requested.

Signed-off-by: Omkar Kulkarni <omkar.kulkarni@nordicsemi.no>
2025-07-25 08:14:26 -04:00
..
bindesc
bluetooth
canbus
console
dap
debug
demand_paging
dfu
disk
dsp
emul
fb
fs
gnss
input
ipc
jwt
llext
logging
lorawan
mem_mgmt
mgmt
modbus
modem
net
pm
pmci
portability
profiling
random
retention
rtio
sd
secure_storage
sensing
settings
shell
sip_svc
stats
storage
task_wdt
testsuite
timing
tracing
usb
zbus
CMakeLists.txt
Kconfig