Skip to content
Commit e7262771 authored by Rubin Gerritsen's avatar Rubin Gerritsen Committed by Carles Cufí
Browse files

samples: bluetooth: hci_rpmsg: Discard too long incoming packets



Avoid hitting the assert
```
__ASSERT_NO_MSG(net_buf_simple_tailroom(buf) >= len);
```
when the provided buffer is longer than we can fit. Instead discard the
packet and log an error.

This handling is similar to packets are discarded in hci_uart

Signed-off-by: default avatarRubin Gerritsen <rubin.gerritsen@nordicsemi.no>
parent 19547e81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment