This patch fixes sending mtu change notification for BR/EDR gatt connections. For unsuccessful connection, notify mtu change shouldn't be sent. This avoid sending bogus mtu values as notify mtu change. --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index 656abfc..04f89af 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -1652,7 +1652,7 @@ reply: &data); /* For BR/EDR notify about MTU since it is not negotiable*/ - if (cid != ATT_CID) + if (cid != ATT_CID && status == GATT_SUCCESS) queue_foreach(app_connections, notify_mtu_change, dev); device_unref(dev); -- 2.1.0 -- 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