Re: [PATCH 1/1] mesh: Start link establishment timer of 60 sec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied

On Fri, 2019-12-06 at 09:38 +0530, Prathyusha Nelluri wrote:
> From: Prathyusha N <prathyusha.n@xxxxxxxxxxx>
> 
> 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);
>  	}
>  




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux