diff options
author | Inga Stotland <inga.stotland@intel.com> | 2019-07-14 16:23:17 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-07-15 14:48:04 -0700 |
commit | d57524629036a4bbbe183b6a32afa02a87fe489d (patch) | |
tree | 4175d37a786eed74f108823dfc6ba1b068cc1d64 /mesh/cfgmod-server.c | |
parent | c4bf0626fb621559ecaea7e1eadf22d386b7ee63 (diff) | |
download | bluez-d57524629036a4bbbe183b6a32afa02a87fe489d.tar.gz |
mesh: Use mesh_config APIs to store node configuration
This eliminates storage_set...() routines as an intermediate
layer between mesh_config layer and the rest of the daemon when
storing updated node configuration values.
For the JSON based implementation, each call to mesh_config_write...()
routines results in writing to the node configuration file.
Diffstat (limited to 'mesh/cfgmod-server.c')
-rw-r--r-- | mesh/cfgmod-server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index c73e63b4e..033ab41ea 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -876,7 +876,9 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t dst, count = (pkt[0] >> 5) + 1; interval = ((pkt[0] & 0x1f) + 1) * 10; - if (storage_set_transmit_params(node, count, interval)) + + if (mesh_config_write_net_transmit(node_config_get(node), count, + interval)) mesh_net_transmit_params_set(net, count, interval); /* Fall Through */ |