[PATCH BlueZ 2/2] Mesh: Fix in Config GATT Proxy Set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to the 4.3.2.10 Config GATT Proxy Set, message should have only 1
byte.
---
 mesh/config-client.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mesh/config-client.c b/mesh/config-client.c
index 4e5e06258..801bbf710 100644
--- a/mesh/config-client.c
+++ b/mesh/config-client.c
@@ -787,7 +787,7 @@ static void cmd_ident_get(int argc, char *argv[])
 static void cmd_proxy_set(int argc, char *argv[])
 {
 	uint16_t n;
-	uint8_t msg[2 + 1 + 4];
+	uint8_t msg[2 + 1];
 	int parm_cnt;
 
 	if (!verify_config_target(target))
@@ -802,7 +802,6 @@ static void cmd_proxy_set(int argc, char *argv[])
 	}
 
 	msg[n++] = parms[0];
-	msg[n++] = parms[1];
 
 	if (!config_send(msg, n)) {
 		bt_shell_printf("Failed to send \"SET PROXY\"\n");
-- 
2.11.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



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux