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:
Rahul Tank
2025-04-03 11:10:52 +05:30
parent ed394b7950
commit 86fd74b8e8
+3
View File
@@ -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;
}