Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4095379ybb; Tue, 7 Apr 2020 00:15:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLUqL6seb096dL9Y6uAIbrDwv7V/URJ8C/KRBkarFFH5l5bt6FDx35jSIuQYOwxA0RgDkfe X-Received: by 2002:a05:6830:2415:: with SMTP id j21mr454661ots.93.1586243705594; Tue, 07 Apr 2020 00:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586243705; cv=none; d=google.com; s=arc-20160816; b=zmmcKWxLNA7Kr5kGkeX34b2TMS14SroLuIsWj8ciUYfnneZOKjn22t+xH5sX3UOaZz Nv9bKUWuUX33HkQAI+byZuOh0q9l5ME6mXxC80xQNfZ5RjlX539P5P+hA2Drz8jhQVoT ge3kAE+DonhdA+rwBd1zZY66CZ3TaSmV38EE6gEhdlVwyRP7PEX5TmquHHFvPdBXI2u9 PUzgptZIMT97lD1BsfH2y2PXq6ggb2v3oEdD4FscipftStefckZuC9cZIc1EfXXJppud 1DKi972oxscKHVagdFG0CGSg1UGAY71jlE4/P6MMGJlep6GCyGRCxJKKietJGadMYw+s w0HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=iKqWawCu+4Bmqse6zM12jvmVuhhKmztVWrtk3GLWYh4=; b=S3FcAe9GBvlfTurisPuguN92HudsAG7+6hTNSK4wK2L6grk9yaGvMxQv1mjiw8CDwf iwnuoOSNV8IRlVl58SSAPsevT1WSsczieD4ngmBlgBPdkuPUtwg6SMzKnZu2enyEO+wO lEwapdg88jqJvt9wRkwvv6X2Vv7GeIzPLMQJTjfmMwvSJbZwIpzIJ6a/xDHtVrn/KaLP l/bm4GE5c+eIpVHA93KFCW1VmJdog+rQxLFv91F7sMdN27muCfN0vKoAR1crA8O9F+nt JG3jMirX401TasQkr1Yihyrp3mH8Dfhdh1vYoG0A5MyZXnTYzISvA6b7ptSXJ9Hiof+p 2D3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=skzj3FkL; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94si839517otb.114.2020.04.07.00.14.52; Tue, 07 Apr 2020 00:15:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b=skzj3FkL; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727384AbgDGHOg (ORCPT + 99 others); Tue, 7 Apr 2020 03:14:36 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39408 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727187AbgDGHOg (ORCPT ); Tue, 7 Apr 2020 03:14:36 -0400 Received: by mail-lf1-f68.google.com with SMTP id m2so1518753lfo.6 for ; Tue, 07 Apr 2020 00:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=iKqWawCu+4Bmqse6zM12jvmVuhhKmztVWrtk3GLWYh4=; b=skzj3FkLPUxu1vzRSSyHKjIaFcMT1xnJzyTOIL6t8Z0tp2jG0Q9sjonlzjshL+NYJF gkE7hzkwxhzvsZ1LZRL8ElHZd6jErR6DQVoIuvt9ks6QDQ1pG5hQoMtMl6G5Km8O1QEB LN8VwXtpDxGz6Li61u7uyYTF7rfgvWb3LKBgd8UZO2pEWzJwPXOzAyhwb0iq8ZohNhjJ jUyboXlpLxk0kP/1L0iCt4gqYzb5ts0w/M1xvR83IqpveRBNx/otet7tiXhmv90MDcOl d9fr1anHW3yTxNx4L4K9oR1+gsq59ofPkMXgJBv0gXhZV3x7IRuLuJ/6O7ESypSHU4eO Nj1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=iKqWawCu+4Bmqse6zM12jvmVuhhKmztVWrtk3GLWYh4=; b=Ds/TKQOtIBOX56NdcJfN6aR9v7BOg+51rn3MR+cNkaIDWE8Fh5+o7V2FV4tDQoQixH Ok9Q0hdr3gOxa2RLUzTEVRD4rsqYHmNqLVIEYlxbkcp5t46jyeBFjfmvr6Zj1f72HRBO eg0QJdRGk9708VSZyo/uOpDkolzWbF4h7oOCE2umzJKg5FaW7zqSkCGssLqXs+wHX5gh TqloKDO0khkVDSVLI57RS+V+GTtLLdIkdsOoIorowBMuzEhI2HL8AkLBfIWWFGMxhEHO GNhgRBTrnQLFXHRw6HBcvIt8/U133IDLBvu0IOa8+t5xd42qzkgwhCJfZy295yCR3Y5N ewoA== X-Gm-Message-State: AGi0PuaMiEK3eXypxN8Wm0giZi/yQNqJ3wNB8UKhbZ8ohBfgmV7PTUpx 73xiWfmbbD2BAjz9+f7tSFqmR/sEhRE= X-Received: by 2002:ac2:5559:: with SMTP id l25mr624438lfk.55.1586243674054; Tue, 07 Apr 2020 00:14:34 -0700 (PDT) Received: from ix.localnet (45-11-60-42.ip4.greenlan.pl. [45.11.60.42]) by smtp.gmail.com with ESMTPSA id 64sm5734864lfh.32.2020.04.07.00.14.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 00:14:33 -0700 (PDT) From: Szymon Janc To: Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH BlueZ] gatt: Fix not sending any data when server supports AcquireWrite Date: Tue, 07 Apr 2020 09:14:32 +0200 Message-ID: <4198260.fHHya7ajGy@ix> Organization: CODECOUP In-Reply-To: <20200406211903.12549-1-luiz.dentz@gmail.com> References: <20200406211903.12549-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, On Monday, 6 April 2020 23:19:03 CEST Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > msg.msg_iovlen should be set to 1 to forward the data received over the > file descriptor. > --- > src/gatt-database.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/gatt-database.c b/src/gatt-database.c > index 483c84341..db67dd3f8 100644 > --- a/src/gatt-database.c > +++ b/src/gatt-database.c > @@ -2396,6 +2396,7 @@ static int sock_io_send(struct io *io, const void > *data, size_t len) > > memset(&msg, 0, sizeof(msg)); > msg.msg_iov = &iov; > + msg.msg_iovlen = 1; > > return sendmsg(io_get_fd(io), &msg, MSG_NOSIGNAL); > } Applied, thanks. -- pozdrawiam Szymon Janc