OSDN Git Service

android/socket: Use static local adapter address
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 18 Nov 2013 08:26:05 +0000 (10:26 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Nov 2013 08:42:37 +0000 (10:42 +0200)
android/socket.c

index c283c5f..e580036 100644 (file)
@@ -35,6 +35,7 @@
 #include "ipc.h"
 #include "socket.h"
 
+static bdaddr_t adapter_addr;
 
 static int handle_listen(void *buf)
 {
@@ -81,6 +82,8 @@ bool bt_socket_register(int sk, const bdaddr_t *addr)
 {
        DBG("");
 
+       bacpy(&adapter_addr, addr);
+
        return true;
 }