Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp179280pxv; Wed, 21 Jul 2021 19:23:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNAcDcKKuj1Rk67E9wfeF/E2ZTbYKDtErRzZUoWrpFjcTLFRUcE6pw9r9Oc5FgoRk8KuCh X-Received: by 2002:a17:906:dfdb:: with SMTP id jt27mr42777313ejc.138.1626920582500; Wed, 21 Jul 2021 19:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626920582; cv=none; d=google.com; s=arc-20160816; b=wEyrXZwk08VMBWTT6yfQbjAcDpzTLU6HUUhfVEG4FvnzgoBkQ/9126d+uZVpWw4Ou/ 6mXbHeHqut7mpfGLV0US3XnwKqKxsbXbEnjxko4+XRU/vLZStgnAHyL//BxYgcRny2Br Ahn4w9mML6J7kuqZALOjI/PMN0rPbjoWnSZkLXDU7bEz2N2ZYOnn8XtDMEMMIVybtOjf B6xwzeVObIWORq2qti3XuOE1O1O90yzsrsW6H3WSI6TTYAaXtNzvHFyBM2FHvFfgrfD/ lnb6sD3OzYFMTM/LHVdoxX5DiNeYkyOscW1s6n69OT2QKW126fbCuG3FJiT+Nwcf/IP+ fOeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=r0guGJlXLN0zbKRcGpmxCfDfBN/MEsGrHh/zQ6ChM8I=; b=lCSzWBAxyx6+hgqdAZ+48ZApzVceTED78Oj/QAHaHFJY7VmzBQn+E3st5JdA3+Q+wp hGatOdKvl/0Ukkaw3prjZuWSPCmm/GPse0jzlVyV4a1RpzvlXDKbnmO30eQ57zlX3XZ/ rjsizjj1Zn4wvC3chq8dKYom5yeShIIsL5lLlDNEhUco45uQrl82SCGA94SrdyV5RqtW o3ccvP55zlyRrBX5vsQYG6iEMJFhgq/kRKIfCIqlhT7hrmSHc9bapSh2Hwo1X+ucdA7p wsJygipj5vpVBslx/p/xR/2zQ1jt2yiCdKBGXk5SzSoHsqYT+HsM7D3r9A1joLjVDJDK 0XFA== 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 p31si37376493edb.554.2021.07.21.19.22.18; Wed, 21 Jul 2021 19:23:02 -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 S229932AbhGVBjm (ORCPT + 99 others); Wed, 21 Jul 2021 21:39:42 -0400 Received: from smtpbg516.qq.com ([203.205.250.54]:37759 "EHLO smtpbg516.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbhGVBjm (ORCPT ); Wed, 21 Jul 2021 21:39:42 -0400 X-Greylist: delayed 4479 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 Jul 2021 21:39:41 EDT X-QQ-mid: bizesmtp38t1626920411tkheapbr Received: from localhost.localdomain (unknown [113.57.152.160]) by esmtp6.qq.com (ESMTP) with id ; Thu, 22 Jul 2021 10:19:54 +0800 (CST) X-QQ-SSF: 00400000008000103000000A0000000 X-QQ-FEAT: JDPx/clhWMhLg7x9yjpKcQoUAvwDB2TZe1iLntwG3H1OxmM8q9NY72b9s7nZw /nRWFFj1hOmgQoCEc/gQ/BCBuw+XhaqmWjW3GSvpk4YdJf3dAXe0PN2a9q9SLbXUeiZOCAk I8P5NIfXhPdvX7ElKyJoYH2wmCqipY4HVOqA8cNJwnkz7UFITXdd5AwbEAVUYQZyZUVoedB oqxenVqpMMEP5s3rc4BHxjagNRLdaIGcxJqZQ9h5bAUpg5QVreaIWqxor2HbalRYN9CNw99 0sBkUW8ayJUF1DKbPeXSIF6Xjkq00cVbcGVmmmFRDyM/K4HnpOn9fp+BBxSg/WwFORAvDGC rZPTuZMAZh7k/5xtJk= X-QQ-GoodBg: 2 From: wangyouwan To: linux-bluetooth@vger.kernel.org Cc: wangyouwan Subject: [PATCH] =?UTF-8?q?=20=20=20=20bluez:fix=20btmon=20tools=20?= =?UTF-8?q?=E2=80=9CAllow=20slave=E2=80=9D=20to=20"Master=20Or=20Slave"=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20#431=20[hci0]=2099.92292?= =?UTF-8?q?7?= Date: Thu, 22 Jul 2021 10:19:52 +0800 Message-Id: <20210722021952.18260-1-wangyouwan@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign2 X-QQ-Bgrelay: 1 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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; default: str = "Reserved"; -- 2.20.1