Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4557702rdb; Tue, 12 Dec 2023 03:06:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFK0VWRxtrvdfCwUZCrWjDbnwCJS9SOmG9fFHJzVnNhbp+f4W9LO11O9/gpmn/COr+Wlhqp X-Received: by 2002:a05:622a:189c:b0:413:3384:d43f with SMTP id v28-20020a05622a189c00b004133384d43fmr8773448qtc.11.1702379185904; Tue, 12 Dec 2023 03:06:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702379185; cv=none; d=google.com; s=arc-20160816; b=S1DRzlqhwcmQ0desYBUnwx7V8A0yPAlqnWSTiAgMDbtunwOhOMuaj7kkj6h9C3+JBC +BpiGJxhJcyBfVAc6pI/29+jWlAm1sUYpUjy3aVFWoZhdonnRZrklxP+yYjyJZonPnxf df2tkyn1X40q5g6SK9JL0m7hZHzn62hOLpen58XneVYsIG1U7v3Oznb5gRju+4z3NOaa /e2IA6H/FMlVUZkiCEimw5PISBDsRTQC/7/OtWwe6fjez2iVibj2VRA/SACMrFBTnw9Y OSeay/TZFKs9G+OXMgz1NpqaKXb8XQYmvxhRYyPQChO0BfEIikDwUHnqFuwN408tX9Ss dzKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=6MWd+a3oSvTRyqPTXg6u2wnuEIU0sLzdumg8H9kynqA=; fh=Bocjn9S7boIm0LzLuGO5SPhJUV3Fr/pvRSQDpdfW/SM=; b=dx+w+KyikYySZN1+SCtORbBjtC/+y7mWUoWfmC92m41ac7zzH1yF8YqWCQ/vk5Hyty OIHAcnadlRjrZj9dmBv5hiP/c8hpPv5yq21Zc0RxJWtVOduiXi661ppSdquMa1hb5Rag Us9mxfJbKnR5UcYVcHaruzlLkRgQDfD0s0TFYSxVcxG8USJ2Nu2h9KalFVeex9ySZcoK BgbK5HRl+4HOO4o65jA8RZKXuVPhL3cj5HL4hQipugIQ74cBlzfY9lX6ED8yLkK9iNC3 fSKCLKk53bijZyLKgp4HjK+2IrYAZNE6cK0oz/ThVtpB/Q8ItJqoC0boE47WCmI2BrDK 3XQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3WJcCUD9; spf=pass (google.com: domain of linux-bluetooth+bounces-559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cm11-20020a05622a250b00b0042395ddd1easi11039410qtb.447.2023.12.12.03.06.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 03:06:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=3WJcCUD9; spf=pass (google.com: domain of linux-bluetooth+bounces-559-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-559-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C0971C20B30 for ; Tue, 12 Dec 2023 11:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7092A5CD1B; Tue, 12 Dec 2023 11:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="3WJcCUD9" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19CA1CE for ; Tue, 12 Dec 2023 03:06:20 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5d064f9e2a1so62855137b3.1 for ; Tue, 12 Dec 2023 03:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702379179; x=1702983979; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=6MWd+a3oSvTRyqPTXg6u2wnuEIU0sLzdumg8H9kynqA=; b=3WJcCUD9Mwgi4gnK3vDkIIgpvXpfEwcbDxWJFYzuVjiQaVYaaJZMELC9yNuQiJ+TBu g9oUrk0nDLTF3QrSsYA4Aho3ugFWZ43hD23hAdRVDqCVL1ylEIn2/AL7RAg3sQcxKuuF ppCunqYz8LqU5b2OoVReAACLmkdnpahy3kHy025U5VfkeduglAYvXEXHl4mjualzT4LK Gfzw7cRyK1kQPTLaL4wH/7P3Ep/oeHJHglDYOW0jDmpgN7HgbX7IgioPLUkCU43mDGV6 lGOVUPW5QIz08OX5q8rsG1nFKNPL8Xe3foCAD3JlT4upC1o5/qZoR7eWekpy3jy8aiAC B39Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702379179; x=1702983979; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6MWd+a3oSvTRyqPTXg6u2wnuEIU0sLzdumg8H9kynqA=; b=Pxunq21jN9eXvhEW6ZckBX69csFbtlAeTEaJRF4CMm8E4WgB1cdbGLZKVuXLNdYK1U jY2TiL0QlCeSZFAzNbGWacN/8EzgvB7opTPujo/e85beoyTXakIZk2Ei5MzVMLpgrGgn 1UsJMCumqAoNDIJhNlEsDPhb72MPkZ63PEUZ0eUu56CmqUKBQeDH/0x5B2vgBwXMjJ5t eBXt/tVpsb24opbhbtQKsWN0X+IsyLssWcwP1rMIihUWjsKX3r1Q1yWVFIxJJiiGoLzr nSEKnpsluJQRck0sNjc/UGG1xl1kpKKAWa9ahJGi2CSXvLyTJpyMaeD6qFtaYhf7DgfA tyDg== X-Gm-Message-State: AOJu0YyCCCYWnWRVIIGIN+4g+Hud1byflOQUAVGxhfs/1SSreR47hBU6 NyERCoRO2KiMpydmrWM49eviah0fL6ujRMZqP3XcOl01Os2k1NgcZfebRMvvs6PWHd+a+yzWipT h8XWAgp3f1VexUqtHyENiI1hR0tHLvQGHrWs+Os/W4A505auSyxTqQ8WtMLDDr6oAlS2KAh3vNT gq X-Received: from apusaka-p920.tpe.corp.google.com ([2401:fa00:1:17:554d:7ebb:c4c9:f004]) (user=apusaka job=sendgmr) by 2002:a05:690c:d0e:b0:5d3:9222:a83e with SMTP id cn14-20020a05690c0d0e00b005d39222a83emr62568ywb.10.1702379178697; Tue, 12 Dec 2023 03:06:18 -0800 (PST) Date: Tue, 12 Dec 2023 19:05:31 +0800 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20231212190531.BlueZ.1.Ia938c97b56083995e9f6bbba445a01b4cb4de0c9@changeid> Subject: [BlueZ PATCH] monitor: add Qualcomm and Mediatek MSFT opcodes From: Archie Pusaka To: linux-bluetooth , Luiz Augusto von Dentz , Johan Hedberg , Marcel Holtmann Cc: CrosBT Upstreaming , Archie Pusaka , Hsin-chen Chuang Content-Type: text/plain; charset="UTF-8" From: Archie Pusaka Qualcomm and Mediatek has 0xfd70 and 0xfd30 for their MSFT opcodes, respectively. Signed-off-by: Archie Pusaka Reviewed-by: Hsin-chen Chuang --- monitor/packet.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index b06f8a5d38..42e711cafa 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -4286,10 +4286,26 @@ void packet_monitor(struct timeval *tv, struct ucred *cred, */ index_list[index].msft_opcode = 0xFC1E; break; + case 29: + /* + * Qualcomm controllers that support the + * Microsoft vendor extensions are using + * 0xFD70 for VsMsftOpCode. + */ + index_list[index].msft_opcode = 0xFD70; + break; + case 70: + /* + * Mediatek controllers that support the + * Microsoft vendor extensions are using + * 0xFD30 for VsMsftOpCode. + */ + index_list[index].msft_opcode = 0xFD30; + break; case 93: /* * Realtek controllers that support the - * Microsoft vendor extenions are using + * Microsoft vendor extensions are using * 0xFCF0 for VsMsftOpCode. */ index_list[index].msft_opcode = 0xFCF0; @@ -4298,7 +4314,7 @@ void packet_monitor(struct timeval *tv, struct ucred *cred, /* * Emulator controllers use Linux Foundation as * manufacturer and support the - * Microsoft vendor extenions using + * Microsoft vendor extensions using * 0xFC1E for VsMsftOpCode. */ index_list[index].msft_opcode = 0xFC1E; -- 2.43.0.472.g3155946c3a-goog