summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Manton <cmanton@google.com> 2024-07-05 10:48:34 -0700
committer Chris Manton <cmanton@google.com> 2024-08-16 16:49:54 -0700
commit8ad455fa2932657e4f04c4e82e68e12d563f6db0 (patch)
treecfe1b85bcba253a75ce18bd3de67fba4f32721ac
parenteee8b74841c43b835642e071ca0d05e52c4b10df (diff)
[23/24] Canonical form tBTM_STATUS::BTM_UNKNOWN_ADDR
Prepare for class enum-ify tBTM_STATUS Bug: 358402071 Test: m . Flag: EXEMPT, Mechanical Refactor Change-Id: I9b368a916321893fb71fcc64499ee52d3a10daac
-rw-r--r--system/bta/ag/bta_ag_sco.cc3
-rw-r--r--system/bta/hf_client/bta_hf_client_sco.cc2
-rw-r--r--system/stack/acl/btm_acl.cc24
-rw-r--r--system/stack/acl/btm_pm.cc8
-rw-r--r--system/stack/btm/btm_ble_adv_filter.cc2
-rw-r--r--system/stack/btm/btm_ble_sec.cc2
-rw-r--r--system/stack/btm/btm_sco.cc6
-rw-r--r--system/stack/btm/btm_sec.cc4
-rw-r--r--system/stack/btm/btm_sec.h2
-rw-r--r--system/stack/btm/power_mode.h4
-rw-r--r--system/stack/include/acl_api.h11
-rw-r--r--system/stack/include/btm_api.h4
-rw-r--r--system/stack/l2cap/l2c_ble.cc2
-rw-r--r--system/stack/test/btm/stack_btm_power_mode_test.cc2
14 files changed, 38 insertions, 38 deletions
diff --git a/system/bta/ag/bta_ag_sco.cc b/system/bta/ag/bta_ag_sco.cc
index 948e325ce7..d789470456 100644
--- a/system/bta/ag/bta_ag_sco.cc
+++ b/system/bta/ag/bta_ag_sco.cc
@@ -325,7 +325,8 @@ static bool bta_ag_remove_sco(tBTA_AG_SCB* p_scb, bool only_active) {
/* SCO is connected; set current control block */
bta_ag_cb.sco.p_curr_scb = p_scb;
return true;
- } else if ((status == tBTM_STATUS::BTM_SUCCESS) || (status == BTM_UNKNOWN_ADDR)) {
+ } else if ((status == tBTM_STATUS::BTM_SUCCESS) ||
+ (status == tBTM_STATUS::BTM_UNKNOWN_ADDR)) {
/* If no connection reset the SCO handle */
p_scb->sco_idx = BTM_INVALID_SCO_INDEX;
}
diff --git a/system/bta/hf_client/bta_hf_client_sco.cc b/system/bta/hf_client/bta_hf_client_sco.cc
index 05244a56b4..a09df00d75 100644
--- a/system/bta/hf_client/bta_hf_client_sco.cc
+++ b/system/bta/hf_client/bta_hf_client_sco.cc
@@ -67,7 +67,7 @@ static bool bta_hf_client_sco_remove(tBTA_HF_CLIENT_CB* client_cb) {
removed_started = true;
}
/* If no connection reset the SCO handle */
- else if ((status == tBTM_STATUS::BTM_SUCCESS) || (status == BTM_UNKNOWN_ADDR)) {
+ else if ((status == tBTM_STATUS::BTM_SUCCESS) || (status == tBTM_STATUS::BTM_UNKNOWN_ADDR)) {
client_cb->sco_idx = BTM_INVALID_SCO_INDEX;
}
}
diff --git a/system/stack/acl/btm_acl.cc b/system/stack/acl/btm_acl.cc
index 39b5333674..989b25a310 100644
--- a/system/stack/acl/btm_acl.cc
+++ b/system/stack/acl/btm_acl.cc
@@ -513,7 +513,7 @@ tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) {
tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bd_addr, BT_TRANSPORT_BR_EDR);
if (p_acl == nullptr) {
log::warn("Unable to find active acl");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
*p_role = p_acl->link_role;
return tBTM_STATUS::BTM_SUCCESS;
@@ -530,7 +530,7 @@ tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role) {
* tBTM_STATUS::BTM_CMD_STARTED if command issued to controller.
* tBTM_STATUS::BTM_NO_RESOURCES if couldn't allocate memory to issue
* command
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
* tBTM_STATUS::BTM_MODE_UNSUPPORTED if local device does not support role
* switching
* tBTM_STATUS::BTM_BUSY if the previous command is not completed
@@ -545,7 +545,7 @@ tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bd_addr, BT_TRANSPORT_BR_EDR);
if (p_acl == nullptr) {
log::warn("Unable to find active acl");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (p_acl->link_role == HCI_ROLE_CENTRAL) {
@@ -578,7 +578,7 @@ tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr) {
log::warn(
"Unable to find device to read current power mode prior to role "
"switch");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
};
if (pwr_mode == BTM_PM_MD_PARK || pwr_mode == BTM_PM_MD_SNIFF) {
@@ -1033,7 +1033,7 @@ tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda, uint16_t* p_timeo
const tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR);
if (p_acl == nullptr) {
log::warn("Unable to find active acl");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
*p_timeout = p_acl->link_super_tout;
return tBTM_STATUS::BTM_SUCCESS;
@@ -1052,7 +1052,7 @@ tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda, uint16_t timeout)
tACL_CONN* p_acl = internal_.btm_bda_to_acl(remote_bda, BT_TRANSPORT_BR_EDR);
if (p_acl == nullptr) {
log::warn("Unable to find active acl");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
/* Only send if current role is Central; 2.0 spec requires this */
@@ -1596,7 +1596,7 @@ tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb) {
log::warn("Unable to find active acl");
/* If here, no BD Addr found */
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
/*******************************************************************************
@@ -1638,7 +1638,7 @@ tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda, tBTM_CMPL
log::warn("Unable to find active acl");
/* If here, no BD Addr found */
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
/*******************************************************************************
@@ -1685,7 +1685,7 @@ tBTM_STATUS BTM_ReadTxPower(const RawAddress& remote_bda, tBT_TRANSPORT transpor
log::warn("Unable to find active acl");
/* If here, no BD Addr found */
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
/*******************************************************************************
@@ -1955,20 +1955,20 @@ void btm_read_automatic_flush_timeout_complete(uint8_t* p) {
* Description This function is called to disconnect an ACL connection
*
* Returns tBTM_STATUS::BTM_SUCCESS if successfully initiated, otherwise
- * BTM_UNKNOWN_ADDR.
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR.
*
******************************************************************************/
tBTM_STATUS btm_remove_acl(const RawAddress& bd_addr, tBT_TRANSPORT transport) {
tACL_CONN* p_acl = internal_.btm_bda_to_acl(bd_addr, transport);
if (p_acl == nullptr) {
log::warn("Unable to find active acl");
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (p_acl->Handle() == HCI_INVALID_HANDLE) {
log::warn("Cannot remove unknown acl bd_addr:{} transport:{}", bd_addr,
bt_transport_text(transport));
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (p_acl->rs_disc_pending == BTM_SEC_RS_PENDING) {
diff --git a/system/stack/acl/btm_pm.cc b/system/stack/acl/btm_pm.cc
index ada3725f35..06e4948a1d 100644
--- a/system/stack/acl/btm_pm.cc
+++ b/system/stack/acl/btm_pm.cc
@@ -175,7 +175,7 @@ void BTM_PM_OnDisconnected(uint16_t handle) {
* alter ACL connection behavior.
*
* Returns tBTM_STATUS::BTM_SUCCESS if successful,
- * BTM_UNKNOWN_ADDR if bd addr is not active or bad
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if bd addr is not active or bad
*
******************************************************************************/
tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda,
@@ -193,7 +193,7 @@ tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda,
auto* p_cb = btm_pm_get_power_manager_from_address(remote_bda);
if (p_cb == nullptr) {
log::warn("Unable to find power manager for peer: {}", remote_bda);
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
uint16_t handle = p_cb->handle_;
@@ -308,7 +308,7 @@ bool BTM_ReadPowerMode(const RawAddress& remote_bda, tBTM_PM_MODE* p_mode) {
*
*
* Returns tBTM_STATUS::BTM_SUCCESS if the HCI command is issued successful,
- * BTM_UNKNOWN_ADDR if bd addr is not active or bad
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if bd addr is not active or bad
* tBTM_STATUS::BTM_CMD_STORED if the command is stored
*
******************************************************************************/
@@ -317,7 +317,7 @@ tBTM_STATUS BTM_SetSsrParams(const RawAddress& remote_bda, uint16_t max_lat, uin
tBTM_PM_MCB* p_cb = btm_pm_get_power_manager_from_address(remote_bda);
if (p_cb == nullptr) {
log::warn("Unable to find power manager for peer:{}", remote_bda);
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (!bluetooth::shim::GetController()->SupportsSniffSubrating()) {
diff --git a/system/stack/btm/btm_ble_adv_filter.cc b/system/stack/btm/btm_ble_adv_filter.cc
index 44ad742387..3e6520ebc2 100644
--- a/system/stack/btm/btm_ble_adv_filter.cc
+++ b/system/stack/btm/btm_ble_adv_filter.cc
@@ -339,7 +339,7 @@ void BTM_BleAdvFilterParamSetup(tBTM_BLE_SCAN_COND_OP action, tBTM_BLE_PF_FILT_I
p_bda_filter = btm_ble_find_addr_filter_counter(nullptr);
if (NULL == p_bda_filter) {
log::error("BD Address not found!");
- cb.Run(0, BTM_BLE_PF_ENABLE, BTM_UNKNOWN_ADDR);
+ cb.Run(0, BTM_BLE_PF_ENABLE, tBTM_STATUS::BTM_UNKNOWN_ADDR);
return;
}
diff --git a/system/stack/btm/btm_ble_sec.cc b/system/stack/btm/btm_ble_sec.cc
index d1645a64f2..de56c9903c 100644
--- a/system/stack/btm/btm_ble_sec.cc
+++ b/system/stack/btm/btm_ble_sec.cc
@@ -580,7 +580,7 @@ tBTM_STATUS BTM_SetBleDataLength(const RawAddress& bd_addr, uint16_t tx_pdu_leng
auto p_dev_rec = btm_find_dev(bd_addr);
if (p_dev_rec == NULL) {
log::error("Device {} not found", bd_addr);
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (tx_pdu_length > BTM_BLE_DATA_SIZE_MAX) {
diff --git a/system/stack/btm/btm_sco.cc b/system/stack/btm/btm_sco.cc
index 5254e46940..3fe0eaf87a 100644
--- a/system/stack/btm/btm_sco.cc
+++ b/system/stack/btm/btm_sco.cc
@@ -683,7 +683,7 @@ static tBTM_STATUS btm_send_connect_request(uint16_t acl_handle, enh_esco_params
* NOTE: If BTM_IGNORE_SCO_PKT_TYPE is passed in the pkt_types
* parameter the default packet types is used.
*
- * Returns BTM_UNKNOWN_ADDR if the ACL connection is not up
+ * Returns tBTM_STATUS::BTM_UNKNOWN_ADDR if the ACL connection is not up
* tBTM_STATUS::BTM_BUSY if another SCO being set up to
* the same BD address
* tBTM_STATUS::BTM_NO_RESOURCES if the max SCO limit has been reached
@@ -715,7 +715,7 @@ tBTM_STATUS BTM_CreateSco(const RawAddress* remote_bda, bool is_orig, uint16_t p
get_btm_client_interface().peer.BTM_GetHCIConnHandle(*remote_bda, BT_TRANSPORT_BR_EDR);
if (acl_handle == HCI_INVALID_HANDLE) {
log::error("cannot find ACL handle for remote device {}", *remote_bda);
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
}
@@ -1149,7 +1149,7 @@ tBTM_STATUS BTM_RemoveSco(uint16_t sco_inx) {
/* Validity check */
if ((sco_inx >= BTM_MAX_SCO_LINKS) || (p->state == SCO_ST_UNUSED)) {
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
/* If no HCI handle, simply drop the connection and return */
diff --git a/system/stack/btm/btm_sec.cc b/system/stack/btm/btm_sec.cc
index 6a0ca9e38c..4f8aaebcfd 100644
--- a/system/stack/btm/btm_sec.cc
+++ b/system/stack/btm/btm_sec.cc
@@ -849,7 +849,7 @@ tBTM_STATUS BTM_SecBondCancel(const RawAddress& bd_addr) {
btm_sec_cb.pairing_flags);
p_dev_rec = btm_find_dev(bd_addr);
if (!p_dev_rec || btm_sec_cb.pairing_bda != bd_addr) {
- return BTM_UNKNOWN_ADDR;
+ return tBTM_STATUS::BTM_UNKNOWN_ADDR;
}
if (btm_sec_cb.pairing_flags & BTM_PAIR_FLAGS_LE_ACTIVE) {
@@ -919,7 +919,7 @@ tBTM_STATUS BTM_SecBondCancel(const RawAddress& bd_addr) {
* Description This function is called to obtain link key type for the
* device.
* it returns tBTM_STATUS::BTM_SUCCESS if link key is available, or
- * BTM_UNKNOWN_ADDR if Security Manager does not know about
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if Security Manager does not know about
* the device or device record does not contain link key info
*
* Returns BTM_LKEY_TYPE_IGNORE if link key is unknown, link type
diff --git a/system/stack/btm/btm_sec.h b/system/stack/btm/btm_sec.h
index 51fc9aa127..23658b0cf8 100644
--- a/system/stack/btm/btm_sec.h
+++ b/system/stack/btm/btm_sec.h
@@ -226,7 +226,7 @@ tBTM_STATUS BTM_SecBondCancel(const RawAddress& bd_addr);
* Description This function is called to obtain link key type for the
* device.
* it returns tBTM_STATUS::BTM_SUCCESS if link key is available, or
- * BTM_UNKNOWN_ADDR if Security Manager does not know about
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if Security Manager does not know about
* the device or device record does not contain link key info
*
* Returns BTM_LKEY_TYPE_IGNORE if link key is unknown, link type
diff --git a/system/stack/btm/power_mode.h b/system/stack/btm/power_mode.h
index a7ef4fd6a3..f576143678 100644
--- a/system/stack/btm/power_mode.h
+++ b/system/stack/btm/power_mode.h
@@ -230,7 +230,7 @@ void BTM_PM_OnDisconnected(uint16_t handle);
* alter ACL connection behavior.
*
* Returns tBTM_STATUS::BTM_SUCCESS if successful,
- * BTM_UNKNOWN_ADDR if bd addr is not active or bad
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if bd addr is not active or bad
*
******************************************************************************/
tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda,
@@ -251,7 +251,7 @@ bool BTM_SetLinkPolicyActiveMode(const RawAddress& remote_bda);
*
*
* Returns tBTM_STATUS::BTM_SUCCESS if the HCI command is issued successful,
- * BTM_UNKNOWN_ADDR if bd addr is not active or bad
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if bd addr is not active or bad
* tBTM_STATUS::BTM_CMD_STORED if the command is stored
*
******************************************************************************/
diff --git a/system/stack/include/acl_api.h b/system/stack/include/acl_api.h
index 7f9084a964..475a660bd2 100644
--- a/system/stack/include/acl_api.h
+++ b/system/stack/include/acl_api.h
@@ -89,7 +89,7 @@ bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda, tBT_TRANS
* for the ACL connection with the specified remote device
*
* Returns tBTM_STATUS::BTM_SUCCESS if connection exists.
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
*
******************************************************************************/
tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role);
@@ -105,7 +105,7 @@ tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role);
* tBTM_STATUS::BTM_CMD_STARTED if command issued to controller.
* tBTM_STATUS::BTM_NO_RESOURCES if memory couldn't be allocated to issue
* the command
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
* tBTM_STATUS::BTM_MODE_UNSUPPORTED if the local device does not support
* role switching
*
@@ -123,9 +123,8 @@ tBTM_STATUS BTM_SwitchRoleToCentral(const RawAddress& remote_bd_addr);
* Returns tBTM_STATUS::BTM_CMD_STARTED if command issued to controller.
* tBTM_STATUS::BTM_NO_RESOURCES if memory couldn't be allocated to issue
* the command
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
* tBTM_STATUS::BTM_BUSY if command is already in progress
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
*
******************************************************************************/
tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb);
@@ -143,7 +142,7 @@ tBTM_STATUS BTM_ReadRSSI(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb);
* the command
* BTM_UNKNOWN_ADDR if no active link with bd addr specified
* tBTM_STATUS::BTM_BUSY if command is already in progress
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
*
******************************************************************************/
tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda, tBTM_CMPL_CB* p_cb);
@@ -160,7 +159,7 @@ tBTM_STATUS BTM_ReadFailedContactCounter(const RawAddress& remote_bda, tBTM_CMPL
* Returns tBTM_STATUS::BTM_CMD_STARTED if command issued to controller.
* tBTM_STATUS::BTM_NO_RESOURCES if memory couldn't be allocated to issue
* the command
- * BTM_UNKNOWN_ADDR if no active link with bd addr specified
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if no active link with bd addr specified
* tBTM_STATUS::BTM_BUSY if command is already in progress
*
******************************************************************************/
diff --git a/system/stack/include/btm_api.h b/system/stack/include/btm_api.h
index 504f009f30..b35b31365b 100644
--- a/system/stack/include/btm_api.h
+++ b/system/stack/include/btm_api.h
@@ -186,7 +186,7 @@ void BTM_WriteVoiceSettings(uint16_t settings);
* tBTM_STATUS::BTM_CMD_STARTED is returned if the request was successfully
* sent to HCI.
* tBTM_STATUS::BTM_BUSY if already in progress
- * BTM_UNKNOWN_ADDR if device address is bad
+ * tBTM_STATUS::BTM_UNKNOWN_ADDR if device address is bad
* tBTM_STATUS::BTM_NO_RESOURCES if resources could not be allocated to
* start the command
* BTM_WRONG_MODE if the device is not up.
@@ -319,7 +319,7 @@ void BTM_WriteVoiceSettings(uint16_t settings);
* "is_orig" flag is true, the connection will be originated,
* otherwise BTM will wait for the other side to connect.
*
- * Returns BTM_UNKNOWN_ADDR if the ACL connection is not up
+ * Returns tBTM_STATUS::BTM_UNKNOWN_ADDR if the ACL connection is not up
* tBTM_STATUS::BTM_BUSY if another SCO being set up to
* the same BD address
* tBTM_STATUS::BTM_NO_RESOURCES if the max SCO limit has been reached
diff --git a/system/stack/l2cap/l2c_ble.cc b/system/stack/l2cap/l2c_ble.cc
index c366bee82b..d22995bbb6 100644
--- a/system/stack/l2cap/l2c_ble.cc
+++ b/system/stack/l2cap/l2c_ble.cc
@@ -1324,7 +1324,7 @@ tL2CAP_LE_RESULT_CODE l2ble_sec_access_req(const RawAddress& bd_addr, uint16_t p
if (!p_lcb) {
log::error("Security check for unknown device");
- p_callback(bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_UNKNOWN_ADDR);
+ p_callback(bd_addr, BT_TRANSPORT_LE, p_ref_data, tBTM_STATUS::BTM_UNKNOWN_ADDR);
return L2CAP_LE_RESULT_NO_RESOURCES;
}
diff --git a/system/stack/test/btm/stack_btm_power_mode_test.cc b/system/stack/test/btm/stack_btm_power_mode_test.cc
index 21ce003ff7..254d01d53b 100644
--- a/system/stack/test/btm/stack_btm_power_mode_test.cc
+++ b/system/stack/test/btm/stack_btm_power_mode_test.cc
@@ -93,7 +93,7 @@ protected:
TEST_F(StackBtmPowerMode, BTM_SetPowerMode__Undefined) {
tBTM_PM_PWR_MD mode = {};
- ASSERT_EQ(BTM_UNKNOWN_ADDR, ::BTM_SetPowerMode(pm_id_, kRawAddress, &mode));
+ ASSERT_EQ(tBTM_STATUS::BTM_UNKNOWN_ADDR, ::BTM_SetPowerMode(pm_id_, kRawAddress, &mode));
}
TEST_F(StackBtmPowerModeConnected, BTM_SetPowerMode__AlreadyActive) {