Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp853651pxf; Wed, 24 Mar 2021 18:36:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ35XRnPj+9exkbp0CzVcXQi5UgBHlrIqQ9rjTh6Yrv/kx5g//kqLDcjAao/Rna17pfPGh X-Received: by 2002:a17:906:6683:: with SMTP id z3mr6848812ejo.390.1616636165049; Wed, 24 Mar 2021 18:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616636165; cv=none; d=google.com; s=arc-20160816; b=JTsE5sdjLXPOIh2jF2HJNLnYQKPB1kO8aZ1H2zBPMGrrT63CDxWjscFjimQJGu8LUx Fboo5GMWt81cUCJtsw8WVz+Ygo9RaXzTlzKY50yrGSMHMP0G9YPW5YZ9OZ/izPXIeguV sOMvwl4BPuNLVvw2FXXgUxiDNya1/p4QCUrV8+LZiOQzsC/1MzpvyQuaZtUd1Q/aiIHX iZq+TDwYRYfwaroCNGMUDHHbiBejznVooVtKI+KmBpFZYhww7TTqftg9t5nuD9DhHqiE bVj3JXR8yRehZ/p5Ajzj20V7gF66YT56ePaRMrscidYDVLiINVarF0mZiBujMrM1StyG +l2g== 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=WqWvLgkWNGuT1WfxhDdIE1awPaVdcdgkQkQ2qzcn8J8=; b=xaY3nh/cp0/GbaZICTc8KLMwgbc6kaQSTdQniTG2jadxl1nLHOp5n+mqEo82Vr/Y5L ALElZjvSDQfAR7a3AWNy8l0lE7nKpw60I9FQRg7MxjeP57O35B0Y6fknQwluHv1/hmWX FkDbHdnbrqEU1E6iY7iXvMEV64pjFYRc+FiMKJ8F7qtQq6qOEZoQMzWHU9LRb1eLXPHo 1pqtEjEAbonSP59csJsmtMapYFKKRRnH+iSB13RogjRQR17K14359JTJIKzniZbVlbdn GpK9e9me3NQm6uAuWlNIAp5/UkmQ5XHoHu8QMXaEfos+XyWVcJ0X8StqZ6hHFVZpO2rd YUjg== 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 r26si3937141edc.478.2021.03.24.18.35.19; Wed, 24 Mar 2021 18:36:05 -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 S232408AbhCXHzf convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Mar 2021 03:55:35 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:58589 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbhCXHzZ (ORCPT ); Wed, 24 Mar 2021 03:55:25 -0400 Received: from mac-pro.holtmann.net (p4fefce19.dip0.t-ipconnect.de [79.239.206.25]) by mail.holtmann.org (Postfix) with ESMTPSA id 8652DCECF8; Wed, 24 Mar 2021 09:03:00 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [RFC PATCH v1] doc/mgmt-api - Return connection direction in Device Connected Event From: Marcel Holtmann In-Reply-To: <20210323145555.RFC.v1.1.I530e1c3e621abd34c342d657df119e12e576d8a7@changeid> Date: Wed, 24 Mar 2021 08:55:21 +0100 Cc: linux-bluetooth , CrosBT Upstreaming , Miao-chen Chou , Alain Michaud Content-Transfer-Encoding: 8BIT Message-Id: References: <20210323145555.RFC.v1.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 > --- > > Changes in v1: > - Initial change > > doc/mgmt-api.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > index cab1fffc5..534272045 100644 > --- a/doc/mgmt-api.txt > +++ b/doc/mgmt-api.txt > @@ -4085,7 +4085,7 @@ Device Connected Event > start using its identity. > > The following bits are defined for the Flags parameter: > - 0 Reserved (not in use) > + 0 Outbound Connection > 1 Legacy Pairing > 2 Reserved (not in use) the reserved ones are there to keep in sync with Device Found. So please use the next free one (and reserve it for Device Found). Also I am not fully in favor of “Outbound Connection”. I rather use the term “Central” in case we are the Central / Master of a connection. Now that however gets into trouble with BR/EDR since there you can switch roles. So maybe “Initiated Connection” is an option. Regards Marcel