Commit Graph

4311 Commits

Author SHA1 Message Date
Abhinav Kudnar d3f054bb18 fix(nimble): Fix sync handle assignment for pawr connection 2025-04-17 14:04:08 +08:00
Shreeyash 4f57dd5ed2 fix(nimble): Fix incorrect OTA address assignment 2025-04-16 11:53:19 +05:30
Rahul Tank d68860c528 fix(nimble): Fixed one missing ble_hs_unlock() 2025-04-10 11:28:49 +05:30
Rahul Tank 86fd74b8e8 fix(nimble): Handle connection posting condition
Current code depends only on success of read remote features
to post connection event. Made a fix to separate the two. Failure
in status event for LMP features list still implies connection
has been created.
2025-04-03 11:10:52 +05:30
Astha Verma ed394b7950 fix(nimble): Added ble_hs_unlock for resync failed 2025-03-28 11:59:42 +05:30
Abhinav Kudnar aa8dcba28b fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist, other fixes 2025-03-25 11:44:31 +05:30
Andrzej Kaczmarek fd1e2e0a36 nimble/host: Fix SMP command allocation
os_mbuf_extend can allocate new mbuf if there's not enough space in txom
for complete SMP command. In such case we write SMP command data to the
original mbuf which doesn't have om_len updated instead to newly created
mbuf. This can happen especially for SMP Public Key if block size is not
large enough to fit pkthdr and 65 bytes of command data.

We should use pointer returned from os_mbuf_extend as a SMP command data
pointer as this always points to added space.
2025-03-19 20:32:25 +05:30
Shreeyash d6fbbc7d55 feat(nimble): support vendor event mask set and vendor HCI event on nimble host 2025-03-15 16:55:57 +05:30
Rahul Tank c67396bad6 fix(nimble): Fix incorrect event deinit in gatt caching discovery 2025-03-14 19:18:03 +05:30
Shen Weilong 551bdb7e23 Replace "&curve_secp256r1" with "uECC_secp256r1()" for uECC operation 2025-03-10 09:18:59 +08:00
Rahul Tank 97b9ccd221 host: sm: secure connection only pairing might fail with no reason
When BLE_SM_SC_ONLY is on during pairing request, the process might fail even though both SC is supported by the peer and the key size meet the requirements.
2025-03-05 19:47:42 +05:30
Rahul Tank 42172e2f87 fix(nimble): Handle probable release breaking change
link_estab event may be handled by customers in application and the previous would break it.
Revert few changes so as to not break the customer's code
2025-03-03 14:57:23 +05:30
Rahul Tank ae0d1ff30f fix(nimble): update data length after connection for all chips 2025-02-27 20:59:56 +05:30
Rahul Tank 8f7f3a4b57 fix(nimble): Deprecate BLE_GAP_LINK_ESTAB event 2025-02-23 15:16:01 +05:30
Astha Verma 24d566d2f8 fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-17 10:34:31 +05:30
Abhinav Kudnar defe1abb88 feat(nimble): Add offset in GATT server long read context 2025-02-15 20:28:23 +05:30
Rahul Tank fedb0c341e fix(nimble): Handle not sending disconnect in slave role if connect was not sent 2025-02-15 20:27:38 +05:30
Astha Verma e3218f46d2 fix(nimble): Added sync reattempt for periodic adv 2025-02-15 20:26:21 +05:30
Astha Verma 827e197573 fix(nimble): fix NVS corruption 2025-02-15 20:25:32 +05:30
nvmd 13ff6176d4 fix(nimble): Fixed compilation warning for CONFIG_COMPILER_WARN_WRITE_STRINGS
If built with
CONFIG_COMPILER_WARN_WRITE_STRINGS=y, the
compiler emits warnings about the non-const
pointer pointing to literal strings. This fixes
it.
2025-02-15 20:16:02 +05:30
Astha Verma 1f269c4d7e fix(nimble): Enhanced error handling by adding to print core error definitions 2025-02-15 20:13:43 +05:30
Rahul Tank 2621d0cf75 fix(nimble): Add support for missing legacy event type in report parsing 2025-02-06 18:02:23 +05:30
Astha Verma f8c4e29db9 fix(nimble): fix variable name vvs_idx to nvs_idx 2025-01-24 11:52:36 +05:30
Rahul Tank c031e1441c fix(nimble): Corrected storing method of csfc to nvs 2025-01-14 14:34:43 +05:30
shreeyash 168305a808 fix(nimble):Updated peer OTA address type 2025-01-14 14:34:04 +05:30
Shreeyash 99cb42bc13 fix(nimble): Added a check for invalid offset 2025-01-14 14:33:27 +05:30
Rahul Tank 47bf57530c fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag 2025-01-14 14:32:53 +05:30
Abhinav Kudnar 14671bc3b0 fix(nimble): Save the gatt context in case of preemption 2025-01-14 14:31:31 +05:30
Astha Verma 7ae98b1b57 fix: Added a function for printing HCI error definition 2025-01-14 14:30:47 +05:30
Astha Verma c885e1bd32 fix(nimble): fix memory leak issue in Blufi example 2025-01-14 14:28:55 +05:30
Abhinav Kudnar 82401dd24d feat(nimble): Additional PAWR changes support for ESP IP 2025-01-10 17:51:33 +05:30
Rahul Tank fea7a9ba26 fix(nimble): Reset data length global variables upon disconnection 2025-01-10 17:51:09 +05:30
Astha Verma 9f89f5a039 fix(nimble): Added HCI_Read_Remote_Version_Infomration Command 2025-01-10 17:50:36 +05:30
Rahul Tank fbdb118f90 fix(nimble) Clear our and peer security records during unpair 2025-01-10 17:50:04 +05:30
Rahul Tank 3b34b570d1 fix(nimble): Add ATT Tx queue cleanup during link disconnection 2024-12-24 21:58:15 +05:30
Abhinav Kudnar d04373f47e fix(nimble): Changing ets_pintf to ESP_LOGI when memory allocation fails 2024-12-20 21:46:56 +05:30
Rahul Tank e72f1360c7 Corrected link_estab event handling parameters 2024-12-19 15:56:03 +05:30
Szymon Janc 2c71e39d23 nimble/mesh: Add check for rx buffer in PB ADV
Validate if Transaction Continuation PDU can fit into buffer before
copying data.
2024-12-11 19:10:31 +05:30
Szymon Janc 6c72124312 nimble/host: Add Number Complete Packets event validation
Validate if HCI event received from controller has proper sizes before
passing it to GAP event
2024-12-11 19:10:31 +05:30
Szymon Janc 3ca9380195 nimble/host: Add extended advertising report event validation
Validate if HCI event received from controller has proper sizes before
passing it to GAP event.
2024-12-11 19:10:31 +05:30
Szymon Janc 87bdebb531 nimble/host: Fix legacy advertising report event validation
If event contained more than one report it would likely failed
validation due to invalid data comparison.
2024-12-11 19:10:31 +05:30
Szymon Janc 0cedaa3291 nimble/host: Validate advertising instance before parsing event
Advertising instance is used for indexing slave state array. Since
instance is provided by host invalid handle in event means there is
bug in controller.
2024-12-11 19:10:31 +05:30
Rahul Tank abf630be42 Backport fixes for BLE 5.4 PTS Related Features and Fixes 2024-12-10 16:56:19 +05:30
Abhinav Kudnar c4b3bec003 feat(nimble): Added PAwR support for nimble 2024-12-10 15:44:26 +05:30
Sumeet Singh 97287467de fix(nimble): Added
1. Option to disable automatic discovery when receiving out-of-sync
2. Fixed robust caching aware state parity
3. Fixed database hash related bugs and memory leaks
2024-12-10 15:44:26 +05:30
Sumeet Singh 8a03201699 feat(nimble): Added ways to enable/disable some menuconfig options at runtime 2024-12-10 15:44:26 +05:30
Sumeet Singh 0ca073c7f4 feat(nimble): Added option to disable automatically sending extra credits to peer 2024-12-10 15:44:26 +05:30
Sumeet Singh b2f4081e44 fix(nimble): Fixed bugs related to robust caching 2024-12-10 15:44:26 +05:30
Sumeet Singh dbcd38dd91 feat(nimble): Added support for persisting csf characteristic for bonded devices 2024-12-10 15:44:26 +05:30
Sumeet Singh 9bff889a14 fix(nimble): Fixed error in writing signed write value when IRK is shared along with CSRK 2024-12-10 15:44:26 +05:30