summaryrefslogtreecommitdiff
path: root/mesh/cfgmod-server.c
diff options
context:
space:
mode:
authorMichaƂ Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>2020-03-25 22:48:47 +0100
committerBrian Gix <brian.gix@intel.com>2020-03-26 10:00:33 -0700
commit5379e024fcafe533a3a65786ca9bc84b3284ae55 (patch)
treee18532cf026709b8c74838887bf8b60856987895 /mesh/cfgmod-server.c
parent424f88e7b8c57adc134dbbe949395f678f5468db (diff)
downloadbluez-5379e024fcafe533a3a65786ca9bc84b3284ae55.tar.gz
mesh: Fix model publication status after set
This patch fixes usage of send_pub_status() when handling publication set message - mod_id was swapped with pub_addr, resulting in malformed message being sent back to the Config Client.
Diffstat (limited to 'mesh/cfgmod-server.c')
-rw-r--r--mesh/cfgmod-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index c5c756a33..856eb6b27 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -185,8 +185,8 @@ static void config_pub_set(struct mesh_node *node, uint16_t net_idx,
}
if (!unreliable)
- send_pub_status(node, net_idx, src, dst, status, ele_addr, ota,
- mod_id, idx, cred_flag, ttl, period, retransmit);
+ send_pub_status(node, net_idx, src, dst, status, ele_addr,
+ mod_id, ota, idx, cred_flag, ttl, period, retransmit);
}
static void send_sub_status(struct mesh_node *node, uint16_t net_idx,