2016-06-24 09:59:16

by Szymon Janc

[permalink] [raw]
Subject: [PATCH] doc/mgmt-api: Add Authentication Failure code to Disconnected event

This error code will be set if authentication (enabling encryption)
failed with 'PIN or Key Missing' error. This will allow userspace
to take actions (eg ask user for consent for rebonding) when remote
device lost bond.
---
doc/mgmt-api.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 8393bbf..9384f70 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -3061,6 +3061,7 @@ Device Disconnected Event
1 Connection timeout
2 Connection terminated by local host
3 Connection terminated by remote host
+ 4 Connection terminated due to authentication failure

Note that the local/remote distinction just determines which side
terminated the low-level connection, regardless of the
--
2.7.4

On behalf of SCHILLER Medical SAS.


2016-06-27 11:44:32

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [PATCH] doc/mgmt-api: Add Authentication Failure code to Disconnected event

Hi Szymon,

On Fri, Jun 24, 2016 at 12:59 PM, Szymon Janc <[email protected]> wrote:
> This error code will be set if authentication (enabling encryption)
> failed with 'PIN or Key Missing' error. This will allow userspace
> to take actions (eg ask user for consent for rebonding) when remote
> device lost bond.
> ---
> doc/mgmt-api.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
> index 8393bbf..9384f70 100644
> --- a/doc/mgmt-api.txt
> +++ b/doc/mgmt-api.txt
> @@ -3061,6 +3061,7 @@ Device Disconnected Event
> 1 Connection timeout
> 2 Connection terminated by local host
> 3 Connection terminated by remote host
> + 4 Connection terminated due to authentication failure
>
> Note that the local/remote distinction just determines which side
> terminated the low-level connection, regardless of the
> --
> 2.7.4

Looks good, lets get the kernel patch merged first then I will merge this one.

--
Luiz Augusto von Dentz

2016-07-13 05:37:41

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] doc/mgmt-api: Add Authentication Failure code to Disconnected event

Hi Szymon,

On Fri, Jun 24, 2016, Szymon Janc wrote:
> This error code will be set if authentication (enabling encryption)
> failed with 'PIN or Key Missing' error. This will allow userspace
> to take actions (eg ask user for consent for rebonding) when remote
> device lost bond.
> ---
> doc/mgmt-api.txt | 1 +
> 1 file changed, 1 insertion(+)

Applied. Thanks.

Johan