summaryrefslogtreecommitdiff
path: root/mesh/friend.h
diff options
context:
space:
mode:
authorBrian Gix <brian.gix@intel.com>2019-11-27 13:39:39 -0800
committerBrian Gix <brian.gix@intel.com>2019-11-28 13:49:59 -0800
commitf246d31a775233578a7c4b721757e9fa9a49f69c (patch)
treed654ae9691b82bd528001d9aa3e8a09adb6657bc /mesh/friend.h
parent100dfc45018878ef0b5d66316687fb6d4318c4ac (diff)
downloadbluez-f246d31a775233578a7c4b721757e9fa9a49f69c.tar.gz
mesh: Friendship clean-up and rewrite
Friendship support re-written such that it can now support multiple nodes (on multiple mesh networks) as friends to remote Low Power Nodes (LPNs). Validated to properly respond to Friend Requests when enabled, and a hard coded Friend Queue size of 32 (FRND_CACHE_MAX).
Diffstat (limited to 'mesh/friend.h')
-rw-r--r--mesh/friend.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mesh/friend.h b/mesh/friend.h
index 7ab5dea2e..2351dee31 100644
--- a/mesh/friend.h
+++ b/mesh/friend.h
@@ -28,9 +28,10 @@
void friend_poll(struct mesh_net *net, uint16_t src, bool seq,
struct mesh_friend *frnd);
-void friend_request(struct mesh_net *net, uint16_t src, uint8_t minReq,
- uint8_t delay, uint32_t timeout, uint16_t prev,
- uint8_t num_elements, uint16_t cntr, int8_t rssi);
+void friend_request(struct mesh_net *net, uint16_t net_idx, uint16_t src,
+ uint8_t minReq, uint8_t delay, uint32_t timeout,
+ uint16_t prev, uint8_t num_elements, uint16_t cntr,
+ int8_t rssi);
void friend_clear_confirm(struct mesh_net *net, uint16_t src, uint16_t lpn,
uint16_t lpnCounter);
void friend_clear(struct mesh_net *net, uint16_t src, uint16_t lpn,