return BTM_SUCCESS;
}
-uint16_t bluetooth::shim::BTM_ReadDiscoverability(uint16_t* p_window,
- uint16_t* p_interval) {
- DiscoverabilityState state =
- Stack::GetInstance()->GetBtm()->GetClassicDiscoverabilityState();
-
- if (p_interval) *p_interval = state.interval;
- if (p_window) *p_window = state.window;
-
- return state.mode;
-}
-
tBTM_STATUS bluetooth::shim::BTM_SetConnectability(uint16_t page_mode,
uint16_t window,
uint16_t interval) {
/*******************************************************************************
*
- * Function BTM_ReadDiscoverability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- *
- * Output Params: p_window - current inquiry scan duration
- * p_interval - current inquiry scan interval
- *
- * Returns BTM_NON_DISCOVERABLE, BTM_LIMITED_DISCOVERABLE, or
- * BTM_GENERAL_DISCOVERABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadDiscoverability(uint16_t* p_window, uint16_t* p_interval);
-
-/*******************************************************************************
- *
* Function BTM_SetConnectability
*
* Description This function is called to set the device into or out of
/*******************************************************************************
*
- * Function BTM_ReadDiscoverability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- *
- * Output Params: p_window - current inquiry scan duration
- * p_interval - current inquiry scan interval
- *
- * Returns BTM_NON_DISCOVERABLE, BTM_LIMITED_DISCOVERABLE, or
- * BTM_GENERAL_DISCOVERABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadDiscoverability(uint16_t* p_window, uint16_t* p_interval) {
- if (bluetooth::shim::is_gd_shim_enabled()) {
- return bluetooth::shim::BTM_ReadDiscoverability(p_window, p_interval);
- }
-
- BTM_TRACE_API("BTM_ReadDiscoverability");
- if (p_window) *p_window = btm_cb.btm_inq_vars.inq_scan_window;
-
- if (p_interval) *p_interval = btm_cb.btm_inq_vars.inq_scan_period;
-
- return (btm_cb.btm_inq_vars.discoverable_mode);
-}
-
-/*******************************************************************************
- *
* Function BTM_SetConnectability
*
* Description This function is called to set the device into or out of
/*******************************************************************************
*
- * Function BTM_ReadDiscoverability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- *
- * Output Params: p_window - current inquiry scan duration
- * p_interval - current inquiry scan interval
- *
- * Returns BTM_NON_DISCOVERABLE, BTM_LIMITED_DISCOVERABLE, or
- * BTM_GENERAL_DISCOVERABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadDiscoverability(uint16_t* p_window, uint16_t* p_interval);
-
-/*******************************************************************************
- *
* Function BTM_StartInquiry
*
* Description This function is called to start an inquiry.
* whole stack. They will be removed, or changed into mocks one by one in the
* future, as the refactoring progresses */
bool BTM_BleLocalPrivacyEnabled() { return true; }
-uint16_t BTM_ReadDiscoverability(uint16_t* p_window, uint16_t* p_interval) {
- return true;
-}
void btm_acl_update_conn_addr(uint16_t conn_handle, const RawAddress& address) {
}
void btm_gen_resolvable_private_addr(
testRecomputeTimeout1();
testRecomputeTimeout2();
testRecomputeTimeout3();
-}
\ No newline at end of file
+}