Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1562455pxf; Fri, 26 Mar 2021 09:52:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySz9KmdQsZ9pQtAH6g7uXtTaMM3kk6I65JKAdbApUxo3EezGOdqzoBnjuP0/gfwZmxFBBB X-Received: by 2002:a17:907:628a:: with SMTP id nd10mr16525635ejc.326.1616777548894; Fri, 26 Mar 2021 09:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616777548; cv=none; d=google.com; s=arc-20160816; b=Xph//o4vm2HxnLq4ZHnAWumFhubcJgmF7GdV3tvQuh3gAbz436EdXycL0MEePrhsoE HrfMZgENw2nkQxOjBXZLy6hMQO9MZYEOhWEGhwy3rO+6VUsmi0zBnEDaNGBL/uH319mC Qbl8aSluUECdWH7umA1Iu3E2AmGO6Ra+V4mTUAuyczWo80414aXseVKRuzGYkSMGxSmp dYkDv0PHXKUr/gZmFvYR1fZxXT9YdSvsMRAp9mIjp7KkVaxvlmuxB5YBOb8QcK5n0EN3 iOI4hGBw+7xWv+lQ1e193LA0MndKexVSIF4YR6V/XQ2s53VwHEqMPkGorgx+wDzzra88 5ghg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=8AfnT0sfGUySac9xk8hyPldNvechcbUigSIPRiA5bt8=; b=lS3sf+CrqsF3obD16Wxa0cKFSo7fxDt9W+YTUbwVykPmEqO8kdjVl/uiG9Vt45tuX5 sVwYd6rvd8kJYxQVFCCZxs8zsq4pQmP0n/HIFekrIBsj0Ro5XC8dcA+y32Rg+YgL/J4M 3RCYL37ADutWzhLkO8U5D7IOwO14ebBGFNX1bVLtX7FWrHN5edX+DZqc4ObfC/mGNict oEWrEpkqcC12/6yFJjF+NmREuiSsohFm1MpAeNcRXwZRdZSVQBntYZjQzlTN96dJHhQk q1jyJwK9Q+A95SLde0My6RuE7SkqLa3ljXGy+R9uBSVYTXYSJtdIxsSyELFEfSnptXrH 53zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=P92NwaMQ; 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 bm7si6884389edb.188.2021.03.26.09.51.49; Fri, 26 Mar 2021 09:52:28 -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=P92NwaMQ; 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 S229871AbhCZQtd (ORCPT + 99 others); Fri, 26 Mar 2021 12:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230252AbhCZQtM (ORCPT ); Fri, 26 Mar 2021 12:49:12 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6D5C0613AA for ; Fri, 26 Mar 2021 09:49:12 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id i1so6138952qvu.12 for ; Fri, 26 Mar 2021 09:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=8AfnT0sfGUySac9xk8hyPldNvechcbUigSIPRiA5bt8=; b=P92NwaMQmFEw9nFvejqg2yBu9c6vZhxI9/CNppzaY/Vaz0BkuYgbrEM9genbAzPcU3 wfyX0wAXpP2QnPVwdPTHLkbzOZG9Dok3j+W1KvciM5hXiW/ov2oZLBXrkMvUTmKIZ+/e c5lKhwmbEsBLmOT4PNaMD3HQWAkCD/BhlHCjN73GvtIrThqHn50ammUrk8SnpUylTVwj 1fRlC+rWJkQHYYpSrZg3hROhl98eLIf2XHwyGeulVWBcPO+de3A0vGxlWp6ua0MLc47I HfjO/pAfvqf8Q/ZJofVkKs2VllNACW0Z+oG0ibwo+b2k2GdeJzKBCSKuHFk5ICzyiree 3O2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=8AfnT0sfGUySac9xk8hyPldNvechcbUigSIPRiA5bt8=; b=uDZHL+m9dfzHabUKtua2OMJug0yduk1VxAvENy6rYw1pSSMoSMQTIrTbrtbPIoTMhx +42IsiL6SWCwRLae7hwTT0tNV9yR4GlfswabvC6xdRYb8/S0KD0c7TsY687rOwW53Jiv nGpD0nDH0WEtqqP8PFCiJHWw/r1ZmFwc1SsyJh/a3Ls0+QKCP3PpAAAo9UPilU+mFaf0 /5cbn5WWv/5r0/cu+mqsueOBBmInp9WKvVQXtCSwijuOR4oNaNBWFlDa0sPnnq1TxeIE y2hDHCLjhc1Q1d/7/gFE3ObYR6RgoekPIYWTqRpiGRb+2sv+V5oUrC8Y4x7mn78+ROh0 1pQA== X-Gm-Message-State: AOAM530k60+F4i0Nm6aOQrGV1DFodxqlWfzR1aubIhq5y45qecQezdVa beu9TodbLnPsk7yYr8uo/Ma6VclvWd1T3jST1qYADvCQ4WkHDUpo9qsAJayZMsyS0M68dS1QqUg XdSNLPFC55Ny689rYa2Q//itUBaZGl64L6mgX9Ai/VY4uVq2GW2rHrPlj7ypo69SpumkSRzvxZc 3Y X-Received: from yudiliu.mtv.corp.google.com ([2620:15c:202:201:8d14:929c:55ae:6996]) (user=yudiliu job=sendgmr) by 2002:a0c:ea29:: with SMTP id t9mr14452188qvp.52.1616777351274; Fri, 26 Mar 2021 09:49:11 -0700 (PDT) Date: Fri, 26 Mar 2021 09:49:07 -0700 Message-Id: <20210326094845.RFC.v3.1.I530e1c3e621abd34c342d657df119e12e576d8a7@changeid> Mime-Version: 1.0 X-Mailer: git-send-email 2.31.0.291.g576ba9dcdaf-goog Subject: [RFC PATCH v3] doc/mgmt-api - Return connection direction in Device Connected Event From: Yu Liu To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, chromeos-bluetooth-upstreaming@chromium.org Cc: Yu Liu , Miao-chen Chou , Alain Michaud Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org When an MGMT_EV_DEVICE_CONNECTED event is reported back to the user space we will set the flags to tell if the established connection is outbound or not. This is useful for the user space to log better metrics and error messages. Reviewed-by: Miao-chen Chou Reviewed-by: Alain Michaud Signed-off-by: Yu Liu --- Changes in v3: - Reserve it in Device Found event Changes in v2: - Use next free bit 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 cab1fffc5..5355fedb0 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -4088,6 +4088,7 @@ Device Connected Event 0 Reserved (not in use) 1 Legacy Pairing 2 Reserved (not in use) + 3 Initiated Connection Device Disconnected Event @@ -4261,6 +4262,7 @@ Device Found Event 0 Confirm name 1 Legacy Pairing 2 Not Connectable + 3 Reserved (not in use) For the RSSI field a value of 127 indicates that the RSSI is not available. That can happen with Bluetooth 1.1 and earlier -- 2.31.0.291.g576ba9dcdaf-goog