From b804e2114b4e9c2d2481d62538f4d450d7b67128 Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Wed, 11 Jun 2014 14:10:58 -0700 Subject: [PATCH] LE: Add ability to pass address type to GATT test command Currently the GATT test command to connect a remote device assumes a public Bluetooth device address. This patch adds the ability to pass in the address type via the test command interface. Change-Id: Ia50792738796b97d1d02d6f33cb0586c82dcd477 --- btif/src/btif_gatt_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btif/src/btif_gatt_test.c b/btif/src/btif_gatt_test.c index def27533e..ec503e7cf 100644 --- a/btif/src/btif_gatt_test.c +++ b/btif/src/btif_gatt_test.c @@ -233,15 +233,15 @@ bt_status_t btif_gattc_test_command_impl(uint16_t command, btgatt_test_params_t* case 0x02: /* Connect */ { - ALOGD("%s: CONNECT - device=%02x:%02x:%02x:%02x:%02x:%02x (dev_type=%d)", + ALOGD("%s: CONNECT - device=%02x:%02x:%02x:%02x:%02x:%02x (dev_type=%d, addr_type=%d)", __FUNCTION__, params->bda1->address[0], params->bda1->address[1], params->bda1->address[2], params->bda1->address[3], params->bda1->address[4], params->bda1->address[5], - params->u1); + params->u1, params->u2); if (params->u1 == BT_DEVICE_TYPE_BLE) - BTM_SecAddBleDevice(params->bda1->address, NULL, BT_DEVICE_TYPE_BLE, 0); + BTM_SecAddBleDevice(params->bda1->address, NULL, BT_DEVICE_TYPE_BLE, params->u2); if ( !GATT_Connect(test_cb.gatt_if, params->bda1->address, TRUE, BT_TRANSPORT_LE) ) { -- 2.11.0