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 6b930d6 commit 963657bCopy full SHA for 963657b
connectivity/FEATURE_BLE/source/cordio/source/PalGapImpl.cpp
@@ -869,10 +869,17 @@ void PalGap::gap_handler(const wsfMsgHdr_t *msg)
869
break;
870
}
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->status == HCI_SUCCESS && evt->handle != DM_CONN_HCI_HANDLE_NONE) {
875
+ /* use the translated conn handle */
876
+ connection_handle = evt->hdr.param;
877
+ }
878
+
879
handler->on_advertising_set_terminated(
880
hci_error_code_t(evt->status),
881
evt->advHandle,
- evt->handle,
882
+ connection_handle,
883
evt->numComplEvts
884
);
885
} break;
0 commit comments