fix(nimble): Add change to cancel sync in case of reattempt

This commit is contained in:
Rahul Tank
2025-12-02 11:55:30 +05:30
parent 6f9ff29d26
commit 9551ac31af
+3
View File
@@ -2400,6 +2400,9 @@ ble_gap_rx_peroidic_adv_sync_estab(const struct ble_hci_ev_le_subev_periodic_adv
/*Make application aware of the try */
ble_gap_reattempt_count(ev->sync_handle, ble_conn_reattempt.count);
/*Cancel ongoing sync , if any */
ble_gap_periodic_adv_sync_create_cancel();
rc = ble_gap_periodic_adv_sync_create(&ble_conn_reattempt.periodic_addr, ble_conn_reattempt.adv_sid,
&ble_conn_reattempt.periodic_params,
ble_conn_reattempt.cb, ble_conn_reattempt.cb_arg);