Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp753531pxy; Wed, 5 May 2021 13:03:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwjQGAHnidubajuCwxrKG91ilo8yrvAMaWc1tWl4LBcQAnQ/0IGfVgmq0RsYqoAvoTxkKr X-Received: by 2002:a17:907:20f7:: with SMTP id rh23mr490397ejb.276.1620245016647; Wed, 05 May 2021 13:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620245016; cv=none; d=google.com; s=arc-20160816; b=bT2CAeLwH0KqGFJhPt7pWamttZk9Qq+KACxc2QQEiw2fOOtmbiS17CKoUx9zZpUvSE g/Phnn7NJCxncgu8P/M6cQ8cUvdRMEbX1UbLfdiMtg0mv2iPLIc+cEXjwuTMH9jT2vIK CEf5RjBzHEQ6G7HDutL6jqMwDDMBmq5lXdo509A8fc87gdrk9iBCz/swsdzuh2wBM7dc J4TJXGSHmlFpRsVlP3YXCJTHujxOhpdh/3EQDAY/sb7JLAvK3GezXMKUQmnyH5qbcXM9 0jIC6d1Gd1kuOmsBENaZstMCbF5pLpKmtaScsaClEb4zPg3r87byMVgy23X0gSO20S8l H6gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=NmaGYkGi/ld3pgjq7y1oDumN5k3dGVPD9wubZoQ0E9o=; b=Hv97CkWi116EMdduN0c6xhEIAn1kPk9VGjnLoHwQx95q+Il2e58aGFDUHsJfH5RZMZ YjC6Jn01GiBalhZWmiTibUd1bAZhTbN6E0cCPqPlTCFBCVHr/IhiNkIG+J/ncv7tXlXE XqKwlNK64qoxoVLDtvWUAsrCThGI/d2GWWR7YPzVdrETDhtCz02ZMftz1Xy1/M7FimXy HnWG2aUQ/JRQRAP/WJpNvvz9Gsru35PDprYW0lcpRNMuowDammMCEtD0AAUmg6i4Bc0X ILjDHJWa4d9uw2ZRmFwdUE3+VAizoB0PHzKGGTiamkc7G67Fc1+7B6Xx76/zDbEu/lXf k6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="wPrO+wz/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s3si304844edr.465.2021.05.05.13.02.56; Wed, 05 May 2021 13:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="wPrO+wz/"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233772AbhEEQHj (ORCPT + 99 others); Wed, 5 May 2021 12:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233484AbhEEQHi (ORCPT ); Wed, 5 May 2021 12:07:38 -0400 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AE51C061574 for ; Wed, 5 May 2021 09:06:42 -0700 (PDT) Received: by mail-qv1-xf2f.google.com with SMTP id z1so1481607qvo.4 for ; Wed, 05 May 2021 09:06:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=NmaGYkGi/ld3pgjq7y1oDumN5k3dGVPD9wubZoQ0E9o=; b=wPrO+wz/GsAvuZu/a7/oSBQWq3zQots2gsvu4ZJ9V2zgrFAUPdanYFd75r/PifSIlk Uadn04Q9ot59LEraunsqimMQqad6w82zLpRpn8tfgF7m9qb7jZYe0shTgQz4sr09r4VW N+Nc285kygE0aAutbfb5v8bNszKaEikRrptP4a6OMTXmZmqZiWL09p4WS/QV8S6Elnde uSTSiOLMtvwJrrjD/lw7oaBYFIe7RlKWOGNMlpG7WjSqwRpdqtC0rhNC2AHZtU5kQXWH m/FuFmolGoGURrm2Bo93GwVDUCUJs5bKlRMT3SiuzSKf/zGXi1bsYAN0KvppWUsf5mlz +NlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=NmaGYkGi/ld3pgjq7y1oDumN5k3dGVPD9wubZoQ0E9o=; b=lObt9s7oVl41ERa73hshyvJoFlQFXjKMljydGm4yxJtRX0tk71Mw6fSZt44HI6yGqa Zwet+yb/sm21U12k+AT1RH7qDnl9EJQTlRngANbd5ZgqwTlc98bvPwiHR8sQGUSA6ijs /WsS7fp3pavNEI8RTbFDTA3iBQ4TjvQCbl4MbXSAVAfOkDRUB5cOORr7dwaQvqgkMKJu e4QxXNrmTsuo4KVQMjQLZ4H3tvphY1O8773TPPLBFWgaWWlqkrOzk+TzlAby7WP4bpdf GVXg0EF+s4WzlSs9axHhE1galvPdt93koTIR0HikWVElJ4Tz8EvwiIEg6AJ8v6NFhWv4 H6Vw== X-Gm-Message-State: AOAM5316t/HpKF6vLALrUFue8wUBWXxnUfck5l49dlQwIH00o0mz45n4 Ubp+hH5UvzWWrtvFFBNBVVIQ0WKqzGuRuvz/inPS6FChgWY= X-Received: by 2002:a05:6214:9aa:: with SMTP id du10mr32197149qvb.37.1620230800947; Wed, 05 May 2021 09:06:40 -0700 (PDT) MIME-Version: 1.0 References: <20210429111523.Bluez.v1.1.Ic00ed950add081b346d6c8ced590bb7b2eb6e9f7@changeid> In-Reply-To: <20210429111523.Bluez.v1.1.Ic00ed950add081b346d6c8ced590bb7b2eb6e9f7@changeid> From: Yu Liu Date: Wed, 5 May 2021 09:06:04 -0700 Message-ID: Subject: Re: [Bluez PATCH v1] doc/mgmt-api - Add a new error code for HCI status 0x3e To: linux-bluetooth@vger.kernel.org, Luiz Augusto von Dentz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org ping for attention. On Thu, Apr 29, 2021 at 11:15 AM Yu Liu wrote: > > 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 > --- > > 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 > > > Cancel Pair Device Command > -- > 2.31.1.527.g47e6f16901-goog >