[PATCH] android/gatt: Fix missing android address to bdadr conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fix missing android to bd address conversion before handle
connection.
---
 android/gatt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/android/gatt.c b/android/gatt.c
index 9b96dbf..9e466cf 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -3102,6 +3102,8 @@ static void handle_server_connect(const void *buf, uint16_t len)
 
 	DBG("");
 
+	android2bdaddr(&cmd->bdaddr, &addr);
+
 	status = handle_connect(cmd->server_if, &addr);
 
 	ipc_send_rsp(hal_ipc, HAL_SERVICE_ID_GATT, HAL_OP_GATT_SERVER_CONNECT,
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux