From 4960ad81aea0e088367a02ed7a6e331a832f5f82 Mon Sep 17 00:00:00 2001 From: Inga Stotland Date: Wed, 29 Apr 2020 11:05:41 -0700 Subject: [PATCH] mesh: Fix adding virtual subscription to a vendor model This fixes a case when a configuration server receives a virtual subscription add/overwrite command targeting a vendor model. Correctly set "vendor" argument before trying to save the updated subscrition to configuration file. Change-Id: I7ff5ca02e20819b316ef2f3b62e7ff01092d3070 Signed-off-by: Abhay Agarwal --- mesh/cfgmod-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index c5c756a..d708dfd 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -358,6 +358,7 @@ static void config_sub_set(struct mesh_node *node, uint16_t net_idx, case 22: if (!virt) return; + vendor = true; mod_id = l_get_le16(pkt + 18) << 16; mod_id |= l_get_le16(pkt + 20); break; -- 2.7.4