From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Fixes number of parameters in gatt scan() --- android/client/if-gatt.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/client/if-gatt.c b/android/client/if-gatt.c index d593022..64429e4 100644 --- a/android/client/if-gatt.c +++ b/android/client/if-gatt.c @@ -933,6 +933,7 @@ static void scan_p(int argc, const char **argv) RETURN_IF_NULL(if_gatt); +#if ANDROID_VERSION < PLATFORM_VER(5, 0, 0) VERIFY_CLIENT_IF(2, client_if); /* start */ @@ -940,6 +941,13 @@ static void scan_p(int argc, const char **argv) start = atoi(argv[3]); EXEC(if_gatt->client->scan, client_if, start); +#else + /* start */ + if (argc >= 3) + start = atoi(argv[2]); + + EXEC(if_gatt->client->scan, start); +#endif } /* connect */ -- 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