diff --git a/android/client/if-bt.c b/android/client/if-bt.c
index 2d7ac79..d9d5b59 100644
--- a/android/client/if-bt.c
+++ b/android/client/if-bt.c
#include "if-main.h"
#include "terminal.h"
+#include "../hal-msg.h"
#include "../hal-utils.h"
const bt_interface_t *if_bluetooth;
static void create_bond_p(int argc, const char **argv)
{
bt_bdaddr_t addr;
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ int transport;
+#endif
RETURN_IF_NULL(if_bluetooth);
VERIFY_ADDR_ARG(2, &addr);
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ if (argc < 3)
+ transport = BT_TRANSPORT_UNKNOWN;
+ else
+ transport = atoi(argv[3]);
+
+ EXEC(if_bluetooth->create_bond, &addr, transport);
+#else
EXEC(if_bluetooth->create_bond, &addr);
+#endif
}
/* Just addres to complete, use complete_addr_c */