We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0f81f commit 0072938Copy full SHA for 0072938
connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp
@@ -871,7 +871,7 @@ void PalGap::gap_handler(const wsfMsgHdr_t *msg)
871
872
connection_handle_t connection_handle = DM_CONN_ID_NONE;
873
/* the way we distinguish between local close and connection is the invalid HCI conn handle */
874
- if (evt->handle != DM_CONN_HCI_HANDLE_NONE) {
+ if (evt->status == HCI_SUCCESS && evt->handle != DM_CONN_HCI_HANDLE_NONE) {
875
/* use the translated conn handle */
876
connection_handle = evt->hdr.param;
877
}
0 commit comments