diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-04-29 11:05:41 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-04-30 10:09:05 -0700 |
commit | cbad3121d5e59df51f99c674c7a6ed32b57e2dbd (patch) | |
tree | acfe9b71f489f7a54c747649e5d828b1edb71aba /mesh/cfgmod-server.c | |
parent | 9640da62357277fa0b77bde811799adb0a3d142a (diff) | |
download | bluez-cbad3121d5e59df51f99c674c7a6ed32b57e2dbd.tar.gz |
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.
Diffstat (limited to 'mesh/cfgmod-server.c')
-rw-r--r-- | mesh/cfgmod-server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index 856eb6b27..94825ed0e 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; |