From 90cf4a8ba378eb65bbb8c216d1bb6cae922d9c10 Mon Sep 17 00:00:00 2001 From: Rubin Gerritsen Date: Thu, 11 Nov 2021 09:13:01 +0100 Subject: [PATCH] Bluetooth: HCI: Max periodic adv data length is 252 bytes Use the define instead Signed-off-by: Rubin Gerritsen --- include/bluetooth/hci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bluetooth/hci.h b/include/bluetooth/hci.h index 1061d0c2a27..001e5f79993 100644 --- a/include/bluetooth/hci.h +++ b/include/bluetooth/hci.h @@ -1372,7 +1372,7 @@ struct bt_hci_cp_le_set_per_adv_data { uint8_t handle; uint8_t op; uint8_t len; - uint8_t data[251]; + uint8_t data[BT_HCI_LE_PER_ADV_FRAG_MAX_LEN]; } __packed; #define BT_HCI_LE_SET_PER_ADV_ENABLE_ENABLE BIT(0)