Commit Graph

5217 Commits

Author SHA1 Message Date
Sumeet Singh 7d06b1c8ca feat(nimble): Added some fixes to pass PTS cases 2025-05-07 15:26:02 +05:30
Rahul Tank 0ea32c88c7 fix(nimble): Expose adv_find_field API so application can parse specific AD types in adv reports 2025-04-29 12:09:42 +05:30
Abhinav Kudnar 702ccd2bd7 fix(nimble): Fix sync handle assignment for pawr connection 2025-04-17 14:00:46 +08:00
Shreeyash 70439dd17c fix(nimble): Fix incorrect OTA address assignment 2025-04-10 12:39:39 +05:30
Rahul Tank 54a87acce8 fix(nimble): Fixed one missing ble_hs_unlock() 2025-04-07 09:37:17 +05:30
Rahul Tank 5a1882e4b9 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-02 21:30:42 +05:30
Astha Verma 843c764f39 fix(nimble): Added ble_hs_unlock for resync failed 2025-03-27 18:21:09 +05:30
Geng Yuchao 330b3df62d fix(nimble): Fix variable type conversion compile errors and add function declaration comments 2025-03-20 18:15:19 +05:30
Andrzej Kaczmarek 7648fba967 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:27:49 +05:30
Shreeyash 0a221c0693 feat(nimble): support vendor event mask set and vendor HCI event on nimble host 2025-03-13 14:27:11 +05:30
Rahul Tank 149eec704a fix(nimble): Fix incorrect event deinit in gatt caching discovery 2025-03-12 18:13:25 +05:30
Abhinav Kudnar 4831c488a4 fix(nimble): Exposed the ble_gap_wl_tx_add API to add a device in whitelist, other fixes 2025-03-07 14:19:05 +05:30
Shen Weilong 9b20b462e7 Replace "&curve_secp256r1" with "uECC_secp256r1()" for uECC operation 2025-03-06 15:49:10 +08:00
Rahul Tank d69d8789f9 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:33:59 +05:30
Rahul Tank fc098022e7 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 12:33:47 +05:30
Rahul Tank e38eb31bcf fix(nimble): update data length after connection for all chips 2025-02-27 20:54:36 +05:30
Rahul Tank 9b2b013c11 fix(nimble): Deprecate GAP_EVENT_LINK_ESTAB event 2025-02-23 15:04:06 +05:30
Rahul Tank a9a4c70198 fix(nimble): Handle not sending disconnect in slave role if connect was not sent 2025-02-15 09:20:59 +05:30
Abhinav Kudnar 8a553ad4e6 feat(nimble): Add offset in GATT server long read context 2025-02-14 11:20:24 +05:30
Astha Verma 002183823a fix(nimble): Added sync reattempt for periodic adv 2025-02-13 18:19:21 +05:30
Astha Verma de3e1c9fe4 fix(nimble): Enhanced error handling by adding to print core error definitions 2025-02-13 08:53:17 +05:30
Astha Verma a594c0d26e fix(nimble): fix NVS corruption 2025-02-12 10:47:27 +05:30
nvmd 81b1700f64 Fixed warnings
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-10 21:46:30 +05:30
Astha Verma 2643d26d03 fix(nimble): Handle nested locks when BT_NIMBLE_DEBUG enabled 2025-02-04 18:21:50 +05:30
Rahul Tank a4cd6027a5 fix(nimble): Fix compilation issues for different flag combinations 2025-01-13 13:46:55 +05:30
Abhinav Kudnar 6c53703528 feat(nimble): Additional PAWR changes support for ESP IP 2025-01-10 17:02:45 +05:30
Rahul Tank cf14772338 fix(nimble): Removed extra prints 2025-01-10 17:02:08 +05:30
Astha Verma 5d7de020d3 fix(nimble): Added HCI_Read_Remote_Version_Infomration Command 2025-01-10 17:01:44 +05:30
Rahul Tank 24333a9dce fix(nimble) Clear our and peer security records during unpair 2025-01-10 17:01:09 +05:30
Rahul Tank 8e41b8752a fix(nimble): Reset data length global variables upon disconnection 2025-01-08 21:38:38 +05:30
Rahul Tank d7a585dcf0 fix(nimble): Corrected storing method of csfc to nvs 2025-01-06 10:55:45 +05:30
Rahul Tank 16d59c062d fix(nimble): Address few coverity reported issues
1. too_few_printf_args: Corrected print statement to pass arguments
2. Fixed nesting levels
3. Fixed unused value warnings
2025-01-03 11:33:42 +05:30
Abhinav Kudnar 4cf7d046d3 fix(nimble): Save the gatt context in case of preemption 2024-12-30 19:56:00 +08:00
Rahul Tank ff017e5b74 fix(nimble): Fix compilation issue for combination of Ext Adv and Reattempt conn flag 2024-12-30 10:13:25 +05:30
Rahul Tank fc1eac6774 fix(nimble): Add ATT Tx queue cleanup during link disconnection 2024-12-24 21:07:59 +05:30
Rahul Tank 3c8aa5456e fix(nimble): Fix compilation issues when BLE_MAX_STORE_BOND is set to 0 2024-12-22 15:18:07 +05:30
Shreeyash fc8d244eae fix(nimble): Added a check for invalid offset 2024-12-22 11:55:47 +05:30
shreeyash 307f7b9c83 fix(nimble):Updated peer OTA address type 2024-12-21 21:16:05 +05:30
Astha Verma 41df5f2e69 fix(nimble): fix memory leak issue in Blufi example 2024-12-21 16:29:21 +05:30
Astha Verma 2b25c70cae fix(nimble): Updated function to print HCI opcode with error definition 2024-12-21 09:22:55 +05:30
Abhinav Kudnar 7d350d5ed1 fix(nimble): Changing ets_pintf to ESP_LOGI when memory allocation fails 2024-12-20 21:43:06 +05:30
Rahul Tank bac3aa9d4e Corrected link_estab event handling parameters 2024-12-19 10:12:05 +05:30
Szymon Janc c58a8e7edf nimble/mesh: Add check for rx buffer in PB ADV
Validate if Transaction Continuation PDU can fit into buffer before
copying data.
2024-12-07 08:04:50 +05:30
Szymon Janc 91e141004d 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-07 08:04:30 +05:30
Szymon Janc 08d95ab7ee 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-07 08:01:00 +05:30
Szymon Janc 2891b4d953 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-07 08:01:00 +05:30
Szymon Janc 5532be7621 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-07 08:01:00 +05:30
Astha Verma 46f1139a05 fix: Added a function for printing HCI error definition 2024-12-02 18:28:04 +05:30
Abhinav Kudnar 275e6820cd feat(nimble): Added PAwR support for nimble 2024-11-28 12:33:01 +05:30
Sumeet Singh 8f99c0d6d6 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-11-28 12:33:01 +05:30