Skip to content

Commit c977fe4

Browse files
committed
drivers: bluetooth: hci: STM32WBA cube fw 1.7.0 updates
Changes required to update STM32WBA bluetooth HCI driver according STM32WBA Cube FW 1.7.0 version. Signed-off-by: Alessandro Manganaro <[email protected]>
1 parent c8d9103 commit c977fe4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/bluetooth/hci/hci_stm32wba.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ static K_SEM_DEFINE(hci_sem, 1, 1);
4747
CFG_BLE_NUM_LINK) \
4848
+ CFG_BLE_MBLOCK_COUNT_MARGIN)
4949

50-
#define BLE_DYN_ALLOC_SIZE \
51-
(BLE_TOTAL_BUFFER_SIZE(CFG_BLE_NUM_LINK, MBLOCK_COUNT))
50+
#define BLE_DYN_ALLOC_SIZE (BLE_TOTAL_BUFFER_SIZE(CFG_BLE_NUM_LINK, \
51+
MBLOCK_COUNT, \
52+
(CFG_BLE_EATT_BEARER_PER_LINK * CFG_BLE_NUM_LINK)))
5253

5354
/* GATT buffer size (in bytes)*/
5455
#define BLE_GATT_BUF_SIZE \
@@ -376,7 +377,7 @@ uint8_t BLECB_Indication(const uint8_t *data, uint16_t length,
376377

377378
k_sem_take(&hci_sem, K_FOREVER);
378379

379-
err = receive_data(dev, data, (size_t)length - 1,
380+
err = receive_data(dev, data, (size_t)length,
380381
ext_data, (size_t)ext_length);
381382

382383
k_sem_give(&hci_sem);

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ manifest:
250250
groups:
251251
- hal
252252
- name: hal_stm32
253-
revision: b6f03b6efd92da4564b38df8cb54d7dad5f37163
253+
revision: pull/315/head
254254
path: modules/hal/stm32
255255
groups:
256256
- hal

0 commit comments

Comments
 (0)