From 97813b9ba77a6957749c9b2f04e7495085ad7436 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Lowas-Rzechonek?= Date: Fri, 16 Aug 2019 09:36:27 +0200 Subject: [PATCH] mesh: Fix handling of Config Relay Set message Change-Id: I226b1a406802b6569fb6e0e48b4050f172e2ed67 Signed-off-by: Anupam Roy --- mesh/cfgmod-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index dbed7e0..55cc8e9 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -872,8 +872,7 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t dst, uint16_t unicast, count = (pkt[1] >> 5) + 1; interval = ((pkt[1] & 0x1f) + 1) * 10; - node_relay_mode_set(node, !!pkt[0], pkt[1]>>5, - pkt[1] & 0x1f); + node_relay_mode_set(node, !!pkt[0], count, interval); /* Fall Through */ case OP_CONFIG_RELAY_GET: -- 2.7.4