Hi Yu, > We want to retry the pairing when HCI status 0x3e (Connection failed to > established/Synchronization timeout) is returned from the controller. > This is to add a new MGMT error code so that we can catch this 0x3e > failure and issue a retry in the user space. > > Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@xxxxxxxxxxxx> > --- > > Changes in v1: > - Initial change > > doc/mgmt-api.txt | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index 5355fedb0..f7cbf7ab2 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -200,6 +200,7 @@ and Command Complete events: > 0x12 RFKilled > 0x13 Already Paired > 0x14 Permission Denied > +0x15 Connection Not Established > > As a general rule all commands generate the events as specified below, > however invalid lengths or unknown commands will always generate a > @@ -1112,6 +1113,7 @@ Pair Device Command > Not Powered > Invalid Index > Already Paired > + Connection Not Established I really dislike the naming. And even more so, I request the motive here. So looking at our code, we have 3 cases where we use the previous status: MGMT_STATUS_CONNECT_FAILED, /* Page Timeout */ MGMT_STATUS_CONNECT_FAILED, /* Connection Establishment Failed */ MGMT_STATUS_CONNECT_FAILED, /* MAC Connection Failed */ And they do map to the 3 available transports, either via BR/EDR or LE or AMP. That means if you call Pair Device you already know well today when it fails to establish the link and can retry it. My question, what are you trying to fix here. Regards Marcel