linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Prathyusha Nelluri <prathyusha.n@samsung.com>
To: linux-bluetooth@vger.kernel.org
Cc: Prathyusha N <prathyusha.n@samsung.com>
Subject: [PATCH 1/1] mesh: Start link establishment timer of 60 sec
Date: Fri,  6 Dec 2019 09:38:39 +0530	[thread overview]
Message-ID: <1575605319-461-1-git-send-email-prathyusha.n@samsung.com> (raw)
In-Reply-To: CGME20191206040900epcas5p2ccb274134dab1154452d6f8d75dfedac@epcas5p2.samsung.com

From: Prathyusha N <prathyusha.n@samsung.com>

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().
---
 mesh/pb-adv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mesh/pb-adv.c b/mesh/pb-adv.c
index 27cbc46..c9a2a65 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);
 	}
 
-- 
2.7.4


       reply	other threads:[~2019-12-06  4:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191206040900epcas5p2ccb274134dab1154452d6f8d75dfedac@epcas5p2.samsung.com>
2019-12-06  4:08 ` Prathyusha Nelluri [this message]
2019-12-26 13:27   ` [PATCH 1/1] mesh: Start link establishment timer of 60 sec Prathyusha N
2019-12-27 17:08   ` Gix, Brian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1575605319-461-1-git-send-email-prathyusha.n@samsung.com \
    --to=prathyusha.n@samsung.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).