linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Meshctl GATT MTU Patch
@ 2019-09-26 16:41 Michael N. Moran
  2019-09-27 11:26 ` Grzegorz Kołodziejczyk
  0 siblings, 1 reply; 2+ messages in thread
From: Michael N. Moran @ 2019-09-26 16:41 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

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


[-- Attachment #2: bluez.mesh.mtu.patch --]
[-- Type: text/x-patch, Size: 411 bytes --]

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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Meshctl GATT MTU Patch
  2019-09-26 16:41 Meshctl GATT MTU Patch Michael N. Moran
@ 2019-09-27 11:26 ` Grzegorz Kołodziejczyk
  0 siblings, 0 replies; 2+ messages in thread
From: Grzegorz Kołodziejczyk @ 2019-09-27 11:26 UTC (permalink / raw)
  To: Michael N. Moran; +Cc: linux-bluetooth

Hi Michael,

Please follow "Submitting patches" guideline from "bluez/HACKING"
developer readme.

Regards,
Grzegorz


czw., 26 wrz 2019 o 18:48 Michael N. Moran <mike@mnmoran.org> napisał(a):
>
> 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
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-27 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-26 16:41 Meshctl GATT MTU Patch Michael N. Moran
2019-09-27 11:26 ` Grzegorz Kołodziejczyk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).