From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Only RFCOMM sockets are supported in Android. --- android/hal-sock.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/hal-sock.c b/android/hal-sock.c index 131877a..cd85f1f 100644 --- a/android/hal-sock.c +++ b/android/hal-sock.c @@ -83,6 +83,11 @@ static bt_status_t sock_connect(const bt_bdaddr_t *bdaddr, btsock_type_t type, DBG("uuid %p chan %d sock %p type %d", uuid, chan, sock, type); + if (type != BTSOCK_RFCOMM) { + error("Socket type %u not supported", type); + return BT_STATUS_UNSUPPORTED; + } + cmd.flags = flags; cmd.type = type; cmd.channel = chan; -- 1.7.10.4 -- 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