Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp312740pxv; Thu, 22 Jul 2021 00:11:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwENVwVo30hOPGm45Gl8lwLxDRPolpEWOykTCOqLvwGJELxSxJQx8kGBZ9haYWcCHd/YF2 X-Received: by 2002:a50:8d54:: with SMTP id t20mr51089096edt.288.1626937899711; Thu, 22 Jul 2021 00:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626937899; cv=none; d=google.com; s=arc-20160816; b=WTGn2CBdBG/5FRx+3BjbheUiOC6RGBBTR1DA81YDOXVgkaugIjTQR0wUd7ZAVHPxnB w8kExDcsrXgVAkidJ+v9pFbEMiuD4H566QKEXmOf0TjnK8GobneryZyu4K5Xl6HuDU+J FwT0+7UBqbVSzpfK8tpdOHEPXHR71xeUq00/NOgrNnKtPKVCmqAqBx2fw3DSlUzb+qhT NOYCJAil5287hKAguvTeeeU7aRl/2vQJqURr8LcFr4zGXmWTKj2gTgivURaauADO8r4Z YMEnYoGvLgzHRGB1O3Jbrjj2fgcatTPASPd3u7854YRzPlvq9tExKljrVtCmbY8ZHXAo O89g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pCweIOqGQEXbjO8x0ZSXEFX8aT2lPgRjfL8xR9OP/zM=; b=IymQWP3+yTQyA/sdwHuOBc7Bvz0b3XDVMhaiC9LbSOjUzCOQ/zQh1gi3bPyMMOVo0n ONI3wt5vSDVd7crUOBK8rYDrS2BF/ZZhVXWwj9Xxe9Wa78K/qPJlDa/dzJkgd29LZg+4 eWXUWldnSVlsj1wTucyHPBFDdofeHCK9mZglFkA2obc/T2kH8Rly8E3MQLkmTG+bMhJ8 Fs3utkpS6JVFl3Ef5/lrT5+kMfDorFjjwRrbp+iwAOhNIp8mkzo95exAPLBAbTkNJiFT T6cU7Tv6tr2CyfRgj3H6NZG9pdvN7JFpK7fIZSzCd/zUb5eZ4jL40NGLgXNPzz6LLiNS h4tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="OesLZ/jM"; 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 g13si28899108edp.307.2021.07.22.00.10.57; Thu, 22 Jul 2021 00:11:39 -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="OesLZ/jM"; 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 S229715AbhGVG0q (ORCPT + 99 others); Thu, 22 Jul 2021 02:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbhGVG0p (ORCPT ); Thu, 22 Jul 2021 02:26:45 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FA6C061575 for ; Thu, 22 Jul 2021 00:07:20 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id x192so6870697ybe.6 for ; Thu, 22 Jul 2021 00:07:20 -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:content-transfer-encoding; bh=pCweIOqGQEXbjO8x0ZSXEFX8aT2lPgRjfL8xR9OP/zM=; b=OesLZ/jM16d2HdKZM/IvVi05RoBazT+WBGTIas39n0l9vI8r5GRnN2cTJ8thjw3jMi JN1kd5Ambw3e3pMhEAUwDA10Zv7YAa0cEsPgb2+KizyapZgLos5OOayYkjC7tOdXkKk8 oTyKrzySjRnoNWLvodokw+wNaYChSDycfPJa3n3StheA8ZCVMeY7I/ZaJ2ylDlLYRuA1 X/lfDO3Rd3vhc92zcoCcGWlMCPinHdOO0zQrIIMzSG/qLTCPdfX6Ztc4LPnAzqDJPwTq SqxJZ6mLiROU8aA/vOC588JfoqexDBFYmAUpn15P5cJGCClTKGCgVOWi1UyBmk+Q/fGL Y+yg== 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:content-transfer-encoding; bh=pCweIOqGQEXbjO8x0ZSXEFX8aT2lPgRjfL8xR9OP/zM=; b=EC4b4lJHUTG7emWbE5SfavrZkXwJ2rZkQJ9VPyRGNJl0yqbGhTzDlYnIX6JUetndX8 iTIHFP06e689mOj0zOKe01hpmiK+e58igbhURAT9uuPq49MgsDNtetIwmhU7vrKpJhvl 2BQddIbDRcJWJvOJWt/eCtRr5tc0CD2kOJa+WZukh/H7b2e94/FH6T+aHP+a/zKdjm/N fFqzwk/dIfupK4a6x7zFBZO7sIUjRsxUfqFrRKLlr+TMI61Io+UqtY2l3UblPIh1iWcs 1vbBLQp+YZBikn5KimkBD676I8a3IAXMbMBaJPeL/0oTiznno2K7B8eO17jmVRMHvtJX 3inQ== X-Gm-Message-State: AOAM5312HEVSB9sVF9djP2No9irDx0LQK8+mT7QsTdYhRuMnZZTPeNS3 6Pj1PMv/RUPnoo8Lj8ITpyQldbRZgz51//OwPPeybGVF+5D6Mw== X-Received: by 2002:a25:6985:: with SMTP id e127mr53348866ybc.212.1626937639443; Thu, 22 Jul 2021 00:07:19 -0700 (PDT) MIME-Version: 1.0 References: <20210722021952.18260-1-wangyouwan@uniontech.com> In-Reply-To: <20210722021952.18260-1-wangyouwan@uniontech.com> From: Barry Byford <31baz66@gmail.com> Date: Thu, 22 Jul 2021 08:07:08 +0100 Message-ID: Subject: =?UTF-8?Q?Re=3A_=5BPATCH=5D_bluez=3Afix_btmon_tools_=E2=80=9CAllow_slave=E2=80=9D_?= =?UTF-8?Q?to_=22Master_Or_Slave=22_=23431_=5Bhci0=5D_99=2E922927?= To: wangyouwan Cc: Bluez mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, 22 Jul 2021 at 03:23, wangyouwan wrote: > > I want to explain it as=E3=80=80=E2=80=9CMaster Or Slave=E2=80=9D, be= cause this is explained in the Core_v5.2 > There is now Core V5.3 which has been updated to use inclusive language as outlined by Archie in his post: https://marc.info/?l=3Dlinux-bluetooth&m=3D162195325125419&w=3D2 I think the terms should be Central or Peripheral. Here is the same extract from the spec in v5.3 8.6.5 Role switch There are several occasions when a role switch is used: =E2=80=A2 A role switch is necessary in order to make a paging device a Per= ipheral when joining an existing piconet, since by definition the paging device is initially Central of a piconet involving the pager (Central) and the paged (Peripheral) device. =E2=80=A2 A role switch is necessary in order for a Peripheral in an existi= ng piconet to set up a new piconet with itself as Central and the original piconet Centra= l as Peripheral. If the original piconet had more than one Peripheral, then this implies a double role for the original piconet Central; it becomes a Periph= eral in the new piconet while still maintaining the original piconet as Central. > 8.6.5 Role switch > There are several occasions when a role switch is used: > =E2=80=A2 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. > =E2=80=A2 A role switch is necessary in order for a slave in an exist= ing piconet to set up > a new piconet with itself as master and the original piconet master a= s 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 =3D "Stay master"; > break; > case 0x01: > - str =3D "Allow slave"; > + str =3D "Master Or Slave"; > break; > default: > str =3D "Reserved"; > -- > 2.20.1 > > >