diff options
author | Prathyusha N <prathyusha.n@samsung.com> | 2019-12-06 09:38:39 +0530 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-12-27 08:55:25 -0800 |
commit | 99fa1447212437d2c9150b3d6c90ec3bc1f7aeb2 (patch) | |
tree | 6417605b54b0ce828384b1c8ba865325dc7853f8 /mesh/pb-adv.c | |
parent | 11d7fe8535be45bb354b71cd6db0b394b3f178d7 (diff) | |
download | bluez-99fa1447212437d2c9150b3d6c90ec3bc1f7aeb2.tar.gz |
mesh: Start link establishment timer of 60 sec
5.3.2 of Mesh Profile Bluetooth specification:
To open a link, the provisioner shall start the link establishment
timer, set to 60 seconds, and then shall start sending Link Open
messages.
On timeout, close indication will be sent. Provisioner cancels the
Link Establishment timer, when the link is open i.e. in pb_adv_tx().
Diffstat (limited to 'mesh/pb-adv.c')
-rw-r--r-- | mesh/pb-adv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c index 27cbc469e..c9a2a6574 100644 --- a/mesh/pb-adv.c +++ b/mesh/pb-adv.c @@ -458,6 +458,8 @@ bool pb_adv_reg(bool initiator, mesh_prov_open_func_t open_cb, if (initiator) { l_getrandom(&pb_session->link_id, sizeof(pb_session->link_id)); + pb_session->tx_timeout = l_timeout_create(60, tx_timeout, + pb_session, NULL); send_open_req(pb_session); } |