Gatt shouldn't notify about updating mtu if no apps are registered. Without this patch, while connecting crash can occur. --- android/gatt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/gatt.c b/android/gatt.c index 04f89af..157b89d 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -978,6 +978,11 @@ static void notify_mtu_change(void *data, void *user_data) if (conn->device != device) return; + if (!conn->app) { + error("gatt: can't notify mtu - no app registered for conn"); + return; + } + switch (conn->app->type) { case GATT_CLIENT: notify_client_mtu_change(conn, true); -- 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