From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> New Android API has new argument transport. --- android/client/if-bt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/android/client/if-bt.c b/android/client/if-bt.c index 2d7ac79..306e237 100644 --- a/android/client/if-bt.c +++ b/android/client/if-bt.c @@ -609,11 +609,23 @@ static void cancel_discovery_p(int argc, const char **argv) static void create_bond_p(int argc, const char **argv) { bt_bdaddr_t addr; +#if ANDROID_VERSION > PLATFORM_VER(4, 4, 4) + int transport; +#endif RETURN_IF_NULL(if_bluetooth); VERIFY_ADDR_ARG(2, &addr); +#if ANDROID_VERSION <= PLATFORM_VER(4, 4, 4) EXEC(if_bluetooth->create_bond, &addr); +#else + if (argc < 3) + transport = 0; + else + transport = atoi(argv[3]); + + EXEC(if_bluetooth->create_bond, &addr, transport); +#endif } /* Just addres to complete, use complete_addr_c */ -- 1.9.1 -- 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