|
|
@@ -1905,14 +1905,10 @@ void btm_qos_setup_complete (UINT8 status, UINT16 handle, FLOW_SPEC *p_flow)
|
|
|
** Returns BTM_CMD_STARTED if successfully initiated or error code
|
|
|
**
|
|
|
*******************************************************************************/
|
|
|
-tBTM_STATUS BTM_ReadRSSI (BD_ADDR remote_bda, tBTM_CMPL_CB *p_cb)
|
|
|
+tBTM_STATUS BTM_ReadRSSI (BD_ADDR remote_bda, tBT_TRANSPORT transport, tBTM_CMPL_CB *p_cb)
|
|
|
{
|
|
|
tACL_CONN *p;
|
|
|
- tBT_TRANSPORT transport = BT_TRANSPORT_BR_EDR;
|
|
|
-#if BLE_INCLUDED == TRUE
|
|
|
- tBT_DEVICE_TYPE dev_type;
|
|
|
- tBLE_ADDR_TYPE addr_type;
|
|
|
-#endif
|
|
|
+
|
|
|
BTM_TRACE_API ("BTM_ReadRSSI: RemBdAddr: %02x%02x%02x%02x%02x%02x\n",
|
|
|
remote_bda[0], remote_bda[1], remote_bda[2],
|
|
|
remote_bda[3], remote_bda[4], remote_bda[5]);
|
|
|
@@ -1924,13 +1920,6 @@ tBTM_STATUS BTM_ReadRSSI (BD_ADDR remote_bda, tBTM_CMPL_CB *p_cb)
|
|
|
return (BTM_BUSY);
|
|
|
}
|
|
|
|
|
|
-#if BLE_INCLUDED == TRUE
|
|
|
- BTM_ReadDevInfo(remote_bda, &dev_type, &addr_type);
|
|
|
- if (dev_type == BT_DEVICE_TYPE_BLE) {
|
|
|
- transport = BT_TRANSPORT_LE;
|
|
|
- }
|
|
|
-#endif
|
|
|
-
|
|
|
p = btm_bda_to_acl(remote_bda, transport);
|
|
|
if (p != (tACL_CONN *)NULL) {
|
|
|
btu_start_timer (&btm_cb.devcb.rssi_timer, BTU_TTYPE_BTM_ACL,
|