Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1100201pxf; Fri, 26 Mar 2021 00:43:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwB7vlqrRtathJQHM8vvcbhHG3wVitvRtcgP6NYZ6BAJHt7S3/EoBxMVbD+3Uwf+ynNzEaG X-Received: by 2002:aa7:cb82:: with SMTP id r2mr13431811edt.209.1616744605026; Fri, 26 Mar 2021 00:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616744605; cv=none; d=google.com; s=arc-20160816; b=rvBVNSdp3feGr4YT7MN6kNegwXj2EEHO0f+R7ilkiT37LyNVRRikmnSjU0ISTbSBWR GUFZ/AMDLlN0UXARXrArfUlf7YkOGnq4+W4ULxzlK+HZS4vmFOL3hlABPcjlhwEgFVDJ vwUe5UkHZIrnpjDEKjtM6cLbd2sqrfTkXP5lli/J6q8exYCRA0b1V0+2CR9VW+ODE9nv HImw3MMGvPjd5M7qa6CR06ozKkBQCqn/jYf9WqMkdcWC/k6ckb8g6MsAr7nR1Q3NDMNN rRwSvbiqlO5Poy1Wd2lxk1KcE2kPT8zEdoSGBFzAXmX08VxTDAnLqzNX9zGQgke3HS3x OIyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=JCwgCGMlsFS5n4ZgwTaD/bQnNIXLp3qrtePqEKyEKEQ=; b=Dg5UPpcRCPquhniM5ygOz7yWoD/US+obNFCu3y9hAXm7FXuFc47bkIo30pcVNrEonw b3txklWhs/5d631SHEK/jGzrGpuMNNfhy5MSx8utNs8I2c70IPsBC4t72hZ1gMpJgC8R FgSoi5L0Of1AGsEKbhizgh0NMCBsTgC2noK34W1/M+0XEN/OMuJhUAKK/vcQVA/ft0Ai V0g/ISvAimWINvRq2idjgHMx1eQ/+dpAx07bCzB4vTaCb74gViZesqTWd5oLEGBePGIP ITBNQVBNjsGtLlL1WrWmnZYYF9coQUH3hOmCX5cGB3dxZdD5PAIXr3wuhEmu/pLbOWSo VmyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p20si6060440ejd.442.2021.03.26.00.43.00; Fri, 26 Mar 2021 00:43:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229528AbhCZHli (ORCPT + 99 others); Fri, 26 Mar 2021 03:41:38 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49134 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbhCZHlM (ORCPT ); Fri, 26 Mar 2021 03:41:12 -0400 Received: from marcel-macbook.holtmann.net (p4fefce19.dip0.t-ipconnect.de [79.239.206.25]) by mail.holtmann.org (Postfix) with ESMTPSA id D8594CEC82; Fri, 26 Mar 2021 08:48:50 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [RFC PATCH v2] doc/mgmt-api - Return connection direction in Device Connected Event From: Marcel Holtmann In-Reply-To: <20210324115840.RFC.v2.1.I530e1c3e621abd34c342d657df119e12e576d8a7@changeid> Date: Fri, 26 Mar 2021 08:41:11 +0100 Cc: linux-bluetooth , CrosBT Upstreaming , Miao-chen Chou , Alain Michaud Content-Transfer-Encoding: 7bit Message-Id: <6BF2252B-E7BE-42BF-9C71-D7A08AFC5C10@holtmann.org> References: <20210324115840.RFC.v2.1.I530e1c3e621abd34c342d657df119e12e576d8a7@changeid> To: Yu Liu X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Yu, > 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 v2: > - Use next free bit > > Changes in v1: > - Initial change > > doc/mgmt-api.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index cab1fffc5..98552e761 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 please also mark it reserved in Device Found event. Regards Marcel