From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF64EC5518C for ; Wed, 25 Mar 2020 07:14:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E5A0E20772 for ; Wed, 25 Mar 2020 07:03:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="eDH9ZcoD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbgCYHDm (ORCPT ); Wed, 25 Mar 2020 03:03:42 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41494 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgCYHDl (ORCPT ); Wed, 25 Mar 2020 03:03:41 -0400 Received: by mail-pf1-f194.google.com with SMTP id z65so589499pfz.8 for ; Wed, 25 Mar 2020 00:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3zectWcNtEHLyfgTx3MqEvfVsHuSppDOUvlE/pNSxGo=; b=eDH9ZcoDABpzKQNT0W42ZM9EZTxmNCn8VtZHqGhC4DgNYBaIK4lYcelsJYUzDFvL3O SFBcP8ZgJpAwzl7F83Mg140MZtjEsYFktuvzhl/RrkmDRywgy1pvkJbztd5rzmjQu7Ko 25CKRpOyUNpcdgjcKCQ8svfd06vdDShg7GQvc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3zectWcNtEHLyfgTx3MqEvfVsHuSppDOUvlE/pNSxGo=; b=pM1xPlP5dAQDR4edfTjBIaRC7PFSdZvLFlp+3RGLH1LPHIWzfv7u/iXwtnzpdtvmDd B00ZuacUkjPJn7nUhneq/UBP6V9LyVVnuwyInP4C5aN7119KuafdK7wZjbKWeXBLZCF/ uHW1+Odnm+ygmmEOg5+hb6kXh6jllCajt6NnSzt7c4xD65Zr7wVcnv/7/goCVel77QXp FZzVUqf8bwcS6lMHh2p3na0TwwkyFDx4aePk1EVaCV2mv4cLjPj8rzsSAzQHbieYaJg3 oODoTeQ0IsVBlbqjtTD0w+O8LnAEgi03KKsOHr9HxRANCI3pbfIT+Ob8dd58c+K7qH9/ RARw== X-Gm-Message-State: ANhLgQ0kyAcvpz8LzCjmfaAAIcISAD0xgQKhOejIGBXlORvhQRfZep6e LR0krO0PG3eVwBxeuISXw3Cx+A== X-Google-Smtp-Source: ADFU+vs2i23A8PQwyTj/QbXxX6iqtgCkNFZDCp31M6+qiIky3n7aCBt1nI8B0kuo1z2jbOQoc6JmQA== X-Received: by 2002:a65:53c5:: with SMTP id z5mr1872714pgr.0.1585119820635; Wed, 25 Mar 2020 00:03:40 -0700 (PDT) Received: from mcchou0.mtv.corp.google.com ([2620:15c:202:201:b46:ac84:1014:9555]) by smtp.gmail.com with ESMTPSA id i34sm566240pgm.83.2020.03.25.00.03.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2020 00:03:39 -0700 (PDT) From: Miao-chen Chou To: Bluetooth Kernel Mailing List Cc: Luiz Augusto von Dentz , Marcel Holtmann , Alain Michaud , Miao-chen Chou , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 0/2] btusb: Introduce the use of vendor extension(s) Date: Wed, 25 Mar 2020 00:03:34 -0700 Message-Id: <20200325070336.1097-1-mcchou@chromium.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Marcel and Luiz, The standard HCI does not provide commands/events regarding to advertisement monitoring with content filter while there are few vendors providing this feature. Chrome OS BT would like to introduce the use of vendor specific features where Microsoft vendor extension is targeted at this moment. Chrome OS BT would like to utilize Microsoft vendor extension's advertisement monitoring feature which is not yet a part of standard Bluetooth specification. This series introduces the driver information for Microsoft vendor extension, and this was verified with kernel 4.4 on Atlas Chromebook. Thanks Miao Changes in v2: - Define struct msft_vnd_ext and add a field of this type to struct hci_dev to facilitate the support of Microsoft vendor extension. - Issue a HCI_VS_MSFT_Read_Supported_Features command with __hci_cmd_sync() instead of constructing a request. Miao-chen Chou (2): Bluetooth: btusb: Indicate Microsoft vendor extension for Intel 9460/9560 and 9160/9260 Bluetooth: btusb: Read the supported features of Microsoft vendor extension drivers/bluetooth/btusb.c | 17 ++++++- include/net/bluetooth/hci_core.h | 10 ++++ include/net/bluetooth/vendor_hci.h | 51 +++++++++++++++++++ net/bluetooth/hci_core.c | 78 ++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 include/net/bluetooth/vendor_hci.h -- 2.24.1