Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp843958pxy; Wed, 5 May 2021 15:36:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1Xyothj4SnLX2c/upWlQV5mqQz0w/6haXLE1MdZMW7Pvi3xZNDT2VwwTLAD6BqTTs9XJl X-Received: by 2002:a17:907:c1c:: with SMTP id ga28mr1051117ejc.122.1620254213654; Wed, 05 May 2021 15:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620254213; cv=none; d=google.com; s=arc-20160816; b=wHwlbMFkXPfL4a/P7rgm9ePvB9kzTa4zeD6ST/q64/hF7wyMpfJ6pciFtWH86kgw/7 kMIaCC6e47n0skFPuQn6SAXP2FUsvGNU4WFlIT8TWLWuiB94x87Fle13J0h4VGcbtIDp hSO4636cifmvsvPmoPrq6CUfUriyf8ysWX3DfGRnUXmNlGQ2rKQDoff6O81+hUSNZy66 q6RukkO1Rl/uwul0z38v2Pj1KF1iPxfO7dLuWfN2oqna0KQorprQK6laFboT7cNlsISN xrtR4J71aRLTY4BY91xeTYJg5FVHJZADsaji4clXIeyZ93b0g5nSmbWhOLna7bsetb2l 4mgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lQrHpuL2Pmy6hAbFyOkKLU721YvFiVG0aoX+xwbS1U0=; b=DqttlDrOZ+gaj7AMgEelAbwbLs41JPtZklshxrCRJZA+EHOrw10O8CP5lClWJDVJ1g tYk4EGYzaiCBvpTT+4EgSxGQyq50DHihi7lQyJNmxgS4kLRwZ1J6DlD22AVa+In6sr2o iq2njC7Lpf/l4Sg9gsIkEWQ3IkFaFfAcTm3bNkG67B7xX3avz9wBusvIs6hS77o5R7Xf rCjGRPrB++X1i0hU04RpD7n4wtVv8zowMoP16AC0bscQ2W6HKDDW0IqtM+RhM8a/845J gIOPlCZn1VoFN9xQ8QJ7x3Y1rMWF3BB26OWzhPcNAhQ690R/0rPqq3jOqpnygSFLeuCR kLXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s0dqnAtC; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si570666edc.150.2021.05.05.15.36.10; Wed, 05 May 2021 15:36:53 -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=@gmail.com header.s=20161025 header.b=s0dqnAtC; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbhEEWRC (ORCPT + 99 others); Wed, 5 May 2021 18:17:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhEEWRC (ORCPT ); Wed, 5 May 2021 18:17:02 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFCF6C061574 for ; Wed, 5 May 2021 15:16:03 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id g38so4710302ybi.12 for ; Wed, 05 May 2021 15:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lQrHpuL2Pmy6hAbFyOkKLU721YvFiVG0aoX+xwbS1U0=; b=s0dqnAtCfI2/RVi9R7jblO3qUc+XTlWxWXpbaWQYhUlLOI0DrWJfU40NVhqprplBh6 xjn4Fw85xvzSymDHDYhqMBn3uD7Tr1u/u5j1cfqv1kWHm53rHTqohr5XH58yHoj21+Pq Lc5nTccQVVHFgK7AAqgS9jcB5QBctQfLa2TdPeFnrqlKn28fUZDJXAt0oz7LHCmII3EQ 6S+Xwga9aNaYuCaqvjciJ8+xYjf6EkhPGOCkUV7x/odKAJJhy6C1UuxpqsEBqmitJg1T LLS7H2wa7m/3w0upvdKcaW0eFGu7vr6cJU++LCb9R7YSYxV06BHGfE6vBlywdOoAnA0e bJHQ== 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:cc; bh=lQrHpuL2Pmy6hAbFyOkKLU721YvFiVG0aoX+xwbS1U0=; b=gjY3tDRt2IvJcEmqRiSh8NjQ1AkQfk+U4SshhwNeXzKHl/SOpbFOfKvNVueNT85g1t LaFP7mLtzrnyw7bzKodg0PcJw0Ql/l4HNoFxUdRMLPvNYpupSIHByMvV3WGUrG0eq+uD 38LmMf0z9TAmcQY8/hYj41b3QFnG0rR6I5Iv6BjZR54t/TfTaZaQFzi0z8yJJn/HtgyJ M+hlrjD6b7+O+ltGTXkRWWWxcISG7KbJZe3ba32iiHeFWCxtPzI8WZ48Ah+8IhuN3Xo5 NmkD5jL9e0FnvkZlEycaBa2T3GfjRVhZKUtj5N+lBEUHuvIPguEJLB0FksVolAmBIkPd e1VA== X-Gm-Message-State: AOAM531cnyzDlc2whpE54CHjD/HJxqc+b9cclrqKUKOcpiEo3ypHeVU/ kpc5zbMRp5mSI1q3CLH7IVx6p2+E4uJE0RfUQeo= X-Received: by 2002:a25:380b:: with SMTP id f11mr1373822yba.222.1620252962474; Wed, 05 May 2021 15:16:02 -0700 (PDT) MIME-Version: 1.0 References: <20210429111523.Bluez.v1.1.Ic00ed950add081b346d6c8ced590bb7b2eb6e9f7@changeid> In-Reply-To: <20210429111523.Bluez.v1.1.Ic00ed950add081b346d6c8ced590bb7b2eb6e9f7@changeid> From: Luiz Augusto von Dentz Date: Wed, 5 May 2021 15:15:51 -0700 Message-ID: Subject: Re: [Bluez PATCH v1] doc/mgmt-api - Add a new error code for HCI status 0x3e To: Yu Liu Cc: "linux-bluetooth@vger.kernel.org" , ChromeOS Bluetooth Upstreaming , Abhishek Pandit-Subedi Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Yu, 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 > Applied, thanks. -- Luiz Augusto von Dentz