mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-06 10:07:55 +00:00
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.
This commit is contained in:
@@ -2610,6 +2610,9 @@ ble_gap_rx_rd_rem_sup_feat_complete(const struct ble_hci_ev_le_subev_rd_rem_used
|
||||
} else {
|
||||
if ((conn != NULL) && (ev->status == 0)) {
|
||||
conn->supported_feat = get_le32(ev->features);
|
||||
}
|
||||
|
||||
if (conn != NULL) {
|
||||
ble_gap_event_connect_call(ev->conn_handle, ev->status);
|
||||
slave_conn[ev->conn_handle] = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user