diff options
author | Brian Gix <brian.gix@intel.com> | 2019-12-20 12:13:39 -0800 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-12-24 10:38:34 -0800 |
commit | bdfae8a5700adfeb5190108d5daebc57e7ac0f06 (patch) | |
tree | a8c6417b5c74e0ec0cb402415326156cd9203425 /mesh/net-keys.c | |
parent | 2903ffb2850a3f5eaeae84ae5d9a472072c2de67 (diff) | |
download | bluez-bdfae8a5700adfeb5190108d5daebc57e7ac0f06.tar.gz |
mesh: Deliver newly composed SNBs to local nodes
Diffstat (limited to 'mesh/net-keys.c')
-rw-r--r-- | mesh/net-keys.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesh/net-keys.c b/mesh/net-keys.c index 65f0808dd..6f1758fe3 100644 --- a/mesh/net-keys.c +++ b/mesh/net-keys.c @@ -480,6 +480,9 @@ bool net_key_beacon_refresh(uint32_t id, uint32_t iv_index, bool kr, bool ivu) l_debug("Setting SNB: IVI: %8.8x, IVU: %d, KR: %d", iv_index, ivu, kr); print_packet("Set SNB Beacon to", beacon, sizeof(beacon)); + /* Propagate changes to all local nodes */ + net_local_beacon(id, beacon); + /* Send one new SNB soon, after all nodes have seen it */ l_getrandom(&rand_ms, sizeof(rand_ms)); rand_ms %= 1000; |