zephyr/samples/bluetooth
Rubin Gerritsen e7262771f0 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: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2023-04-17 10:18:36 +02:00
..
beacon samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
broadcast_audio_sink samples/bluetooth/broadcast_audio_sink: Fix return to int 2023-04-14 09:55:48 +02:00
broadcast_audio_source samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
broadcaster samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
broadcaster_multiple samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
bthome_sensor_template samples, tests: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_gatt_write samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_hr samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_ht samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_iso samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_multilink samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_otc samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
central_past samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
direct_adv samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
direction_finding_central samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
direction_finding_connectionless_rx samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
direction_finding_connectionless_tx samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
direction_finding_peripheral samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
eddystone samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
encrypted_advertising Bluetooth: Samples: Add Encrypted Advertising sample 2023-04-17 10:15:04 +02:00
handsfree samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hap_ha samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hci_pwr_ctrl samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hci_rpmsg samples: bluetooth: hci_rpmsg: Discard too long incoming packets 2023-04-17 10:18:36 +02:00
hci_spi samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hci_uart samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hci_usb samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
hci_usb_h4 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
ibeacon samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
ipsp samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
iso_broadcast samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
iso_broadcast_benchmark samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
iso_connected_benchmark samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
iso_receive samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
mesh samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
mesh_demo samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
mesh_provisioner samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
mtu_update samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
observer samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
periodic_adv samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
periodic_sync samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_accept_list samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_csc samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_dis samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_esp samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_gatt_write samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_hids samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_hr samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_ht samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_identity samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_iso samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_ots samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_past samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peripheral_sc_only samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
scan_adv samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
st_ble_sensor samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
unicast_audio_client samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
unicast_audio_server samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
bluetooth.rst