Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1008074pxv; Thu, 22 Jul 2021 19:06:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaopuAIEK5Cz5vF8/KJdZzDpE9Xu2mW4/H3sboDGZGrAwiUsaeI/jK52m2AZwWde2eqCnz X-Received: by 2002:a17:906:190c:: with SMTP id a12mr2616480eje.37.1627005983315; Thu, 22 Jul 2021 19:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627005983; cv=none; d=google.com; s=arc-20160816; b=bJgDHzdM6Ne7NQYHaVXf7+23F+wztEP0Tzrst61UzBVqjk2/dNq7fPRbUdlQ8sp5jU fmR3dmOOntzmxnXbe2lDd2BnXKt8L++AVjHlWfrW62aC1nvPJjiey+wmjGQp+QGlKFWU +7VVoQpyO5QFQm4Rdk/C/cecIwQbKsla5bOWn7hBymkT6YwyuOtY+h6bboP5YT1DGecx auwqbNKSjkiU0xYyA7GL7wIYI9ab9Bpfgmgq1quhJ7xnd7cOL1Nw4+KXfCcFv3taOTpn 43J+miJZN28U2gAUY5GcrVJE5QsqYJ+ltB6iXbyqJElfKK0Hl21+mTHDSoMAlRrF/X0W 986A== 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=blpdE9OH340S1mJlzqByktFqEZX9RE7Tr0QwV+ssO58=; b=XTi6ptZ793t6vyifTyLyvnNJB3CegT/xCqBzzTssPzeR4YHjrWPBzD4NedFqvAnN6j NEsjOR9FhQzorbvM91+h6zHNfnXEyF3XBXdKUGzDzPylACiFaErSm0dmXknEnQlD6pqp 88BD/WojVzf6uGE4IE4SPWJJMXs8Q1jGB1/lbdRqQdcFw09/BbyUsjxgCd6pLIMmMoe7 2wXFaMi0IvqXLLdXtbxpE4R+OULj2fP2ubXfD5dW2SnQisSfGt0hq1RnwXgnZk0/tkaO xq6+ZT7KYHDnjgglRGltd7ZaW4GFqB+Lh6gyyRScorv0YSyvto1AIYbus2dpeu+x/xXX A+iQ== 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 kf22si33726204ejc.5.2021.07.22.19.05.40; Thu, 22 Jul 2021 19:06:23 -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 S233095AbhGWBXY (ORCPT + 99 others); Thu, 22 Jul 2021 21:23:24 -0400 Received: from smtpbg506.qq.com ([203.205.250.33]:38722 "EHLO smtpbg506.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbhGWBXX (ORCPT ); Thu, 22 Jul 2021 21:23:23 -0400 X-QQ-mid: bizesmtp44t1627005833tpovzsyv Received: from localhost.localdomain (unknown [113.57.152.160]) by esmtp6.qq.com (ESMTP) with id ; Fri, 23 Jul 2021 10:03:42 +0800 (CST) X-QQ-SSF: 00400000002000204000000A0000000 X-QQ-FEAT: MF7pU6I/MELY4jjeBjBaDx9rHz6roxkB46qUBVmZ+8nAWX7T7/IU9JcQ6K/I/ xNqF9H86K6n48/gAaOaLRR2AbghRC+oq8L7Uq5ZCZRhj/en3xY8gGvsk8SMCRHqwzKvHZSe QlMYAT3X4QDTVvdEBJGx7cpQrZMQzwLzCtUGtc2f1SoqDUs0ki/FYpOJ+DY/Y3P+I/VjDrh RyhYxI0WV+aC/79ubGq7NEiUQ0NBDnhLIiGEJPLiq5n3xj7+SeQ5L3ZVkCGaJZhrLGRrbTa MC6enloRXc9clOLJ0/jlfIiwxRXZ1mf+5ox6qg2q0vpV6WgBIABoAUo7GALGYg0sk6/6+FO WRCEVyUCzvWhqqEm5A= X-QQ-GoodBg: 2 From: wangyouwan To: linux-bluetooth@vger.kernel.org Cc: wangyouwan Subject: [PATCH] =?UTF-8?q?bluez:fix=20btmon=20tools=20=E2=80=9CAllow=20sl?= =?UTF-8?q?ave=E2=80=9D=20to=20"Central=20Or=20Peripheral"=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=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20#431=20[hci0]=2099.922927?= Date: Fri, 23 Jul 2021 10:03:37 +0800 Message-Id: <20210723020337.31128-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:qybgforeign6 X-QQ-Bgrelay: 1 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org spec in v5.3 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 Peripheral 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. • A role switch is necessary in order for a Peripheral in an existing piconet to set up a new piconet with itself as Central and the original piconet Central 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 Peripheral in the new piconet while still maintaining the original piconet as Central. 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..f5d90f204 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 = "Central Or Peripheral"; break; default: str = "Reserved"; -- 2.20.1