mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Remove address resolution from GAP pal
parent
7e16ee448e
commit
13771b8172
|
@ -462,23 +462,6 @@ ble_error_t PalGap::disconnect(
|
||||||
return BLE_ERROR_NONE;
|
return BLE_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool PalGap::is_privacy_supported()
|
|
||||||
{
|
|
||||||
// We only support controller-based privacy, so return whether the controller supports it
|
|
||||||
return HciLlPrivacySupported();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ble_error_t PalGap::set_address_resolution(
|
|
||||||
bool enable
|
|
||||||
)
|
|
||||||
{
|
|
||||||
DmPrivSetAddrResEnable(enable);
|
|
||||||
return BLE_ERROR_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ble_error_t PalGap::read_phy(connection_handle_t connection)
|
ble_error_t PalGap::read_phy(connection_handle_t connection)
|
||||||
{
|
{
|
||||||
if (is_feature_supported(controller_supported_features_t::LE_2M_PHY)
|
if (is_feature_supported(controller_supported_features_t::LE_2M_PHY)
|
||||||
|
@ -489,7 +472,6 @@ ble_error_t PalGap::read_phy(connection_handle_t connection)
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
return BLE_ERROR_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ble_error_t PalGap::set_preferred_phys(
|
ble_error_t PalGap::set_preferred_phys(
|
||||||
const phy_set_t &tx_phys,
|
const phy_set_t &tx_phys,
|
||||||
const phy_set_t &rx_phys
|
const phy_set_t &rx_phys
|
||||||
|
|
|
@ -147,12 +147,6 @@ public:
|
||||||
local_disconnection_reason_t disconnection_reason
|
local_disconnection_reason_t disconnection_reason
|
||||||
) final;
|
) final;
|
||||||
|
|
||||||
bool is_privacy_supported() final;
|
|
||||||
|
|
||||||
ble_error_t set_address_resolution(
|
|
||||||
bool enable
|
|
||||||
) final;
|
|
||||||
|
|
||||||
ble_error_t read_phy(connection_handle_t connection) final;
|
ble_error_t read_phy(connection_handle_t connection) final;
|
||||||
|
|
||||||
ble_error_t set_preferred_phys(
|
ble_error_t set_preferred_phys(
|
||||||
|
|
|
@ -1564,27 +1564,6 @@ public:
|
||||||
local_disconnection_reason_t disconnection_reason
|
local_disconnection_reason_t disconnection_reason
|
||||||
) = 0;
|
) = 0;
|
||||||
|
|
||||||
/** Check if privacy feature is supported by implementation
|
|
||||||
*
|
|
||||||
* @return true if privacy is supported, false otherwise.
|
|
||||||
*
|
|
||||||
* @note: See Bluetooth 5 Vol 3 Part C: 10.7 Privacy feature.
|
|
||||||
*/
|
|
||||||
virtual bool is_privacy_supported() = 0;
|
|
||||||
|
|
||||||
/** Enable or disable private addresses resolution
|
|
||||||
*
|
|
||||||
* @param enable whether to enable private addresses resolution
|
|
||||||
*
|
|
||||||
* @return BLE_ERROR_NONE if the request has been successfully sent or the
|
|
||||||
* appropriate error otherwise.
|
|
||||||
*
|
|
||||||
* @note: See Bluetooth 5 Vol 2 PartE: 7.8.44 LE Set Address Resolution Enable command.
|
|
||||||
*/
|
|
||||||
virtual ble_error_t set_address_resolution(
|
|
||||||
bool enable
|
|
||||||
) = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checked support for a feature in the link controller.
|
* Checked support for a feature in the link controller.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue