Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp596898pxv; Thu, 22 Jul 2021 07:49:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyAIhlAibeH/fs/AwWQWEb9WGhhrDlod6777u/4lafFhS/bIr3d+S8RGbanggEFAZ14DFA X-Received: by 2002:a5e:8e02:: with SMTP id a2mr79569ion.205.1626965358546; Thu, 22 Jul 2021 07:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626965358; cv=none; d=google.com; s=arc-20160816; b=AM51+1/0OB5gu/xnBnLq260/wUpLbdiO8OadL3qd8ugTz55kOG3q+3X0hy496dSKCI 1aTSwKySERmU2KTA8NoOgwPDtgq+aRBJY6K/JG8DRkmsvoRAX5h7Znu3sn6phDVkGxwJ vtPORnthx3NqKFg9O8qQlnWQxezkj6Jckqm7McbW8DCCeEXcIMBBtiz6OxoK2Q64sbwJ vYLG7/5kb4gcKooubax7rea0sGOj6dxc14WY8a8JWuoUciDIQpsW1v77Voff5isEBCyk E+OXGMa/ybjZoWY2jBomUdQxVI7tH7Oh399eLx6X1hpN4GO0sS1jtcM7kx+44Gi6BEk6 shXQ== 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=3Z9dF/5yLJOsDOVQPgSvecjbWJcXPpc4vRGVuemjuD0=; b=hjuiMR1KzoZxz/UUbtY75l2dTvJlRlMabxam7+QOMd88OqFLN51rOzrWiNas74TZOc svIZxISyu5VO0qsPYVQNIjOdzvgMQxZziFneHn/vVvGCEDz/bNHe80FirgnxJW92Sd2n 7s0Mof8JM+e6BqSOoLAfuXsvAi7450khpmHg4p+Qrx/ayhpSjr2n0MieQz6s+WjE8DoV E+IMSGdQkjTYUbrNVHB8atkE/XDZafbD3J4fulmbnRWWadC/EC5m4hoSySAsGrZv/5IW tuhpP3JQIRZfM9FTR+7ZWlp7LF0Bb0nqBzHxsyB4q7IZkEisYNiEc3tTv3lef2/kGa1D QEGA== 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 k3si3504183iog.8.2021.07.22.07.49.06; Thu, 22 Jul 2021 07:49:18 -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 S232447AbhGVOHB convert rfc822-to-8bit (ORCPT + 99 others); Thu, 22 Jul 2021 10:07:01 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:47739 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232523AbhGVOG7 (ORCPT ); Thu, 22 Jul 2021 10:06:59 -0400 Received: from smtpclient.apple (p5b3d2eb8.dip0.t-ipconnect.de [91.61.46.184]) by mail.holtmann.org (Postfix) with ESMTPSA id D5418CECE4; Thu, 22 Jul 2021 16:47:33 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: =?utf-8?Q?Re=3A_=5BPATCH=5D_____bluez=3Afix_btmon_tools_=E2=80=9C?= =?utf-8?Q?Allow_slave=E2=80=9D_to_=22Master_Or_Slave=22__________________?= =?utf-8?Q?_______________________________________________________________?= =?utf-8?Q?______________________________________=23431_=5Bhci0=5D_99=2E92?= =?utf-8?Q?2927?= From: Marcel Holtmann In-Reply-To: <20210722021952.18260-1-wangyouwan@uniontech.com> Date: Thu, 22 Jul 2021 16:47:33 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <86E74CE4-C907-46A1-BD26-2D2F4EB15FE7@holtmann.org> References: <20210722021952.18260-1-wangyouwan@uniontech.com> To: wangyouwan X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Wang, > I want to explain it as “Master Or Slave”, because this is explained in the Core_v5.2 > > 8.6.5 Role switch > There are several occasions when a role switch is used: > • A role switch is necessary in order to make a paging device a slave when > joining an existing piconet, since by definition the paging device is initially > master of a piconet involving the pager (master) and the paged (slave) > device. > • A role switch is necessary in order for a slave in an existing piconet to set up > a new piconet with itself as master and the original piconet master as slave. > If the original piconet had more than one slave, then this implies a double > role for the original piconet master; it becomes a slave > > Signed-off-by: wangyouwan > --- > monitor/packet.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/monitor/packet.c b/monitor/packet.c > index 52d22ab21..b73615509 100644 > --- a/monitor/packet.c > +++ b/monitor/packet.c > @@ -4143,7 +4143,7 @@ static void create_conn_cmd(const void *data, uint8_t size) > str = "Stay master"; > break; > case 0x01: > - str = "Allow slave"; > + str = "Master Or Slave"; > break; the text was verbatim from Bluetooth 4.x core spec. If that has changed in Core 5.3 spec, then we can use that one. Regards Marcel