mesh: Implement DevKeySend() method on Node interface
authorMichał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
Thu, 4 Jul 2019 12:33:37 +0000 (14:33 +0200)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 15:21:13 +0000 (20:51 +0530)
commit9fdb9e5f948e6308aa6c7c25dd331eb35e58261e
treeb167397e23bfb2e69d17a6b323e0b9ff6ea587a8
parentb35a58a9b93d9721ee6234ad7950d50d2a11c47d
mesh: Implement DevKeySend() method on Node interface

This patch implements D-Bus DevKeySend() method of org.bluez.mesh.Node1
interface, allowing the application to send messages encrypted using
a known remote device key.

At the moment the call ignores net_index argument and sends messages
using the primary subnet.

Also, it's no longer possible to use 'magic' key_index value 0x7fff
(denoting local device key) when calling regular Send(). Applications
should use DevKeySend() instead.

Change-Id: I37c13c2c050b03880f23d6b8d149e998a7cff1f3
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/model.c
mesh/node.c