diff options
author | Brian Gix <brian.gix@intel.com> | 2020-10-08 10:44:59 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@gmail.com> | 2023-01-30 16:14:41 -0800 |
commit | 5ba57cf85140e2087fef0e617608ee33a04c5449 (patch) | |
tree | b454824891adf1a0cc9fbbba03c4d13468dc2369 /mesh/net.h | |
parent | 6619b24cc23710c3074fe90c6510cb3688bee701 (diff) | |
download | bluez-5ba57cf85140e2087fef0e617608ee33a04c5449.tar.gz |
mesh: Add Tx/Rx support of Mesh Private Beacons
With this change, we start evaluating received Mesh Private Beacons in
addition to the legacy Secure Network Beacons. We also add the ability
to request Tx of Mesh Private Beacons, which are regenerated with new
Random Nonce a minimum of every 0 - 2550 seconds.
Diffstat (limited to 'mesh/net.h')
-rw-r--r-- | mesh/net.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mesh/net.h b/mesh/net.h index 0bacbbbbf..d385ba16e 100644 --- a/mesh/net.h +++ b/mesh/net.h @@ -236,8 +236,10 @@ void mesh_net_set_frnd_seq(struct mesh_net *net, bool seq); uint16_t mesh_net_get_address(struct mesh_net *net); bool mesh_net_register_unicast(struct mesh_net *net, uint16_t unicast, uint8_t num_ele); -void net_local_beacon(uint32_t net_key_id, uint8_t *beacon); -bool mesh_net_set_beacon_mode(struct mesh_net *net, bool enable); +void net_local_beacon(uint32_t key_id, uint32_t ivi, bool ivu, bool kr); +bool mesh_net_set_snb_mode(struct mesh_net *net, bool enable); +bool mesh_net_set_mpb_mode(struct mesh_net *net, bool enabla, uint8_t period, + bool init); bool mesh_net_set_proxy_mode(struct mesh_net *net, bool enable); bool mesh_net_set_relay_mode(struct mesh_net *net, bool enable, uint8_t cnt, uint8_t interval); |