Skip to content

Commit 8555e44

Browse files
remove unused enhanced conn complete
1 parent 1081770 commit 8555e44

File tree

3 files changed

+0
-109
lines changed

3 files changed

+0
-109
lines changed

connectivity/FEATURE_BLE/source/generic/GapImpl.cpp

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,48 +2223,6 @@ bool Gap::isPeriodicAdvertisingActive(advertising_handle_t handle)
22232223
return _active_periodic_sets.get(handle);
22242224
}
22252225

2226-
2227-
void Gap::on_enhanced_connection_complete(
2228-
hci_error_code_t status,
2229-
connection_handle_t connection_handle,
2230-
connection_role_t own_role,
2231-
connection_peer_address_type_t peer_address_type,
2232-
const ble::address_t &peer_address,
2233-
const ble::address_t &local_resolvable_private_address,
2234-
const ble::address_t &peer_resolvable_private_address,
2235-
uint16_t connection_interval,
2236-
uint16_t connection_latency,
2237-
uint16_t supervision_timeout,
2238-
clock_accuracy_t master_clock_accuracy
2239-
)
2240-
{
2241-
if (own_role == connection_role_t::CENTRAL) {
2242-
_initiating = false;
2243-
}
2244-
2245-
if (!_event_handler) {
2246-
return;
2247-
}
2248-
2249-
2250-
_event_handler->onConnectionComplete(
2251-
ConnectionCompleteEvent(
2252-
(status == hci_error_code_t::SUCCESS) ? BLE_ERROR_NONE : BLE_ERROR_INTERNAL_STACK_FAILURE,
2253-
(connection_handle_t) connection_handle,
2254-
own_role,
2255-
(peer_address_type_t::type) peer_address_type.value(),
2256-
peer_address,
2257-
local_resolvable_private_address,
2258-
peer_resolvable_private_address,
2259-
conn_interval_t(connection_interval),
2260-
connection_latency,
2261-
supervision_timeout_t(supervision_timeout),
2262-
master_clock_accuracy.get_ppm()
2263-
)
2264-
);
2265-
}
2266-
2267-
22682226
void Gap::on_extended_advertising_report(
22692227
advertising_event_t event_type,
22702228
const connection_peer_address_type_t *address_type,

connectivity/FEATURE_BLE/source/generic/GapImpl.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -655,20 +655,6 @@ class Gap :
655655
phy_t rx_phy
656656
) override;
657657

658-
void on_enhanced_connection_complete(
659-
hci_error_code_t status,
660-
connection_handle_t connection_handle,
661-
connection_role_t own_role,
662-
connection_peer_address_type_t peer_address_type,
663-
const ble::address_t &peer_address,
664-
const ble::address_t &local_resolvable_private_address,
665-
const ble::address_t &peer_resolvable_private_address,
666-
uint16_t connection_interval,
667-
uint16_t connection_latency,
668-
uint16_t supervision_timeout,
669-
clock_accuracy_t master_clock_accuracy
670-
) override;
671-
672658
void on_extended_advertising_report(
673659
advertising_event_t event_type,
674660
const connection_peer_address_type_t *address_type,

connectivity/FEATURE_BLE/source/pal/PalGap.h

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -58,59 +58,6 @@ struct PalGapEventHandler {
5858
ble::phy_t rx_phy
5959
) = 0;
6060

61-
/**
62-
* Should be invoked by the PalGap implementation when an enhanced
63-
* connection complete event happens.
64-
*
65-
* @param status hci_error_code::SUCCESS in case of success or an error
66-
* code.
67-
*
68-
* @param connection_handle The handle of the connection created.
69-
*
70-
* @param own_role Indicate if the local device operates as slave or
71-
* master.
72-
*
73-
* @param peer_address_type Type of address of the peer.
74-
*
75-
* @param peer_address Address of the peer connected.
76-
*
77-
* @param local_resolvable_private_address Resolvable private address
78-
* being used by the controller. If not applicable, the address is full
79-
* of zeroes.
80-
*
81-
* @param peer_resolvable_private_address Resolvable private address
82-
* being used by the peer. If not applicable, the address is full of
83-
* zeroes.
84-
*
85-
* @param connection_interval Interval between two connection events.
86-
* Unit is 1.25ms.
87-
*
88-
* @param connection_latency Slave latency for the connection in number
89-
* of connection events.
90-
*
91-
* @param supervision_timeout Connection supervision timeout. Unit is
92-
* 10ms.
93-
*
94-
* @param master_clock_accuracy This parameter is only valid for a slave.
95-
* On a master it must be set to 0x00.
96-
*
97-
* @note: See Bluetooth 5 Vol 2 PartE: 7.7.65.10 LE enhanced connection
98-
* complete event.
99-
*/
100-
virtual void on_enhanced_connection_complete(
101-
hci_error_code_t status,
102-
connection_handle_t connection_handle,
103-
connection_role_t own_role,
104-
connection_peer_address_type_t peer_address_type,
105-
const address_t &peer_address,
106-
const address_t &local_resolvable_private_address,
107-
const address_t &peer_resolvable_private_address,
108-
uint16_t connection_interval,
109-
uint16_t connection_latency,
110-
uint16_t supervision_timeout,
111-
clock_accuracy_t master_clock_accuracy
112-
) = 0;
113-
11461
/** Called on advertising report event.
11562
*
11663
* @param event_type Type of advertising used.

0 commit comments

Comments
 (0)