Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2299011ybn; Thu, 26 Sep 2019 09:49:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGaNECLN9mWlbc/BRsPH956lyqjXyBPauBZfiIwLbBhY7ZD+1lqkxTEvnxn348/c8WeqVV X-Received: by 2002:a17:906:19c9:: with SMTP id h9mr3994340ejd.193.1569516544742; Thu, 26 Sep 2019 09:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569516544; cv=none; d=google.com; s=arc-20160816; b=pQ+oAoq3WrXTwUN976D8cm4gN3CtCGSBBA4ihso3H5bvFG0quBOFNSm2onEXcyvy3F nOYThRNJsyzH9UcgOH9x6pv1h1BBSXIq32UXPyElN2U0VFkfcu5KZ6Pg3+NgP0I1s3+K Fz54pYS+H5+PSRiHLJEdrtuADS6HFuuAuE221yYwKoQgRxxPqfLq+3rJVuWZ2tY5h226 cqyla1ULhsMmHKpua6dB0YlxHv4BlZu/KuhoukwoZOOths6z+CT/ES+Xgon0v/tL5/m1 4x1pgya9ZQYF++tGAekezV8D/uyv0orDthrlvCaNk95qvVYaxmOyYdUW0bbLsfnHlCZP 5pUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:mime-version:user-agent :date:message-id:subject:from:to:dkim-signature; bh=/WyKXlo87hMi1vH9lT34grBvAi7Jt9TjLreIlTCNBko=; b=bgjBEq4Tc3w6xVM0T6YBuzFNIlEKLrMA06a/xiB5R5dUaIZBVnDziUzcmX8RXati2N yFs4vxrjeiO8icAM4KJaYXZQpkVfE+OxVO+QH6GIrcfcBJm/Wb7K9xTCJ/qFWaWtFmvI SZjepmrjkkdjKXeoABB7OZnUJTWGVXzD01DEM6rcSf/ctCO220CGKUtEl5AorIOJrdC2 QnmPdIJzhfQnUHLCnl4FQYsqW1F+JXpJv+5w3zlzvxfWoermZQJBYtjkCy/rrXDOGRqq u2gtAUK7H7N0zDnlWAh+JUBLq+re7qitpBP+FrimyDBnimuciX6s+CY6Q5z6hjeDPq0s sZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mnmoran.org header.s=dkim header.b=eMNl8mdW; 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 dv21si1305843ejb.241.2019.09.26.09.48.21; Thu, 26 Sep 2019 09:49:04 -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=@mnmoran.org header.s=dkim header.b=eMNl8mdW; 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 S1727454AbfIZQsR (ORCPT + 99 others); Thu, 26 Sep 2019 12:48:17 -0400 Received: from hoster906.com ([192.252.156.27]:44032 "EHLO hoster906.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbfIZQsR (ORCPT ); Thu, 26 Sep 2019 12:48:17 -0400 X-Greylist: delayed 398 seconds by postgrey-1.27 at vger.kernel.org; Thu, 26 Sep 2019 12:48:16 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mnmoran.org; h=to:from :subject:message-id:date:mime-version:content-type; s=dkim; bh=x AYE61VHFn2u0Zg0iFcrXKBzwe0hb2qE41uDqPoW0Zk=; b=eMNl8mdWU3bVqWMbm vAFkt/F3b3l3wUIysvt6By5hsNmpBgbJi/efpFsyX77Mu59CjtJK5F0IZwX+kVuq NOowHhHS3wgL3UXIZj1nUAxF3aZLD5cpN1GpjhuFlOjKPtvwBpY0rj6FrnGLYWWA sntkWM95CiOrepV0gvRiQHHSec= Received: (qmail 18598 invoked by uid 503); 26 Sep 2019 16:41:36 -0000 Received: from unknown (HELO ?192.168.254.100?) (pop-before-smtp@50.96.104.71) by hoster906.com with ESMTPA; 26 Sep 2019 16:41:36 -0000 To: linux-bluetooth@vger.kernel.org From: "Michael N. Moran" Subject: Meshctl GATT MTU Patch Message-ID: <44f46ff3-216f-7205-336a-2d0fb150818a@mnmoran.org> Date: Thu, 26 Sep 2019 12:41:30 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------936B522E3615FCC15D77EC08" Content-Language: en-MW Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This is a multi-part message in MIME format. --------------936B522E3615FCC15D77EC08 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit The attached patch fixes a problem in the meshctl gatt provisioner where the GATT MTU is truncated. -- Michael N. Moran (h) 770 704 9751 218 Wilshire Terrace (c) 678 521 5460 White, GA, USA 30184 http://mnmoran.org --------------936B522E3615FCC15D77EC08 Content-Type: text/x-patch; name="bluez.mesh.mtu.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bluez.mesh.mtu.patch" Fix GATT MTU truncation in the max_len calculation. diff --git a/tools/mesh/gatt.c b/tools/mesh/gatt.c index 0a942d4..c9e789c 100644 --- a/tools/mesh/gatt.c +++ b/tools/mesh/gatt.c @@ -189,7 +189,7 @@ static bool sock_write(struct io *io, void *user_data) struct write_data *data = user_data; struct iovec iov[2]; uint8_t sar; - uint8_t max_len; + uint16_t max_len; if (data == NULL) return true; --------------936B522E3615FCC15D77EC08--