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 89A72C54FCE for ; Mon, 23 Mar 2020 07:28:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6160420732 for ; Mon, 23 Mar 2020 07:28:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="LILNAYyQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbgCWH2d (ORCPT ); Mon, 23 Mar 2020 03:28:33 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:44669 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727350AbgCWH2c (ORCPT ); Mon, 23 Mar 2020 03:28:32 -0400 Received: by mail-pg1-f196.google.com with SMTP id 142so1513192pgf.11 for ; Mon, 23 Mar 2020 00:28:32 -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=NFyWVs+kduv2j1R2/60e64VqrdzsP1HRwFGN/XYNDZo=; b=LILNAYyQ8szwFEkmyAgot0buT6BbWuPaMeqDEzmHEOA82yWb/7h8Q1ltu1+n4qIVYR O2Syb3UEtgrn7LHNXVqQ8SQP+A6KGKhI/dmNJPdCV3I9w9RtZ+Kwtt4abirzJXyz0Kxg i5i1XGp0OXMn/kN8stG1yga7zw/nZMIFMjc5M= 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=NFyWVs+kduv2j1R2/60e64VqrdzsP1HRwFGN/XYNDZo=; b=K9nnr9WogZLsPcZ0nAosMEb47gx6VIKCCTFnWqxg97bU7Ml+Ff0V7YPdAmjImoF1iw dG71ZtN4/F4ESC71F/IbDKhlkxRdhcNVudiaAc+uOxsv6tD8Z6bWkHFH9lIXPvgAv+1X Il8rBvOqQ6blBcLNHqyjuFgV4YsfqX8WKjtFXXAp230kdAYhsUKVg2aOWdzoHpoPOoq/ Glo0iTOd7cu3wU6Y7S2Wjp5VbnBJ3A1nkz7JJomO5eK62Uo8HKfauxNWUD2mRKVF7ql7 0cYJeq6ayN+MmDv2UHlh+LfscjMKc1WmtSJaHM5jWbFTO7/Zg4DOa5vj95syIIQqxewp qiZA== X-Gm-Message-State: ANhLgQ2ougn90IJem2mdLWpYXx3JB501E9QZ4tK8ESTd4saHg0KQ+zqL U5ODuvpyLJtyMGfEX5ByBVvjpA== X-Google-Smtp-Source: ADFU+vvfZ+qhit8yI7fVEav4nHdqfpAwVAeCiMKsf3LZMu/WqYHyCiYaU+G01pALbh0CUrK9KNHGHw== X-Received: by 2002:a63:3d48:: with SMTP id k69mr19784007pga.395.1584948511935; Mon, 23 Mar 2020 00:28:31 -0700 (PDT) Received: from mcchou0.mtv.corp.google.com ([2620:15c:202:201:b46:ac84:1014:9555]) by smtp.gmail.com with ESMTPSA id z16sm12645399pfr.138.2020.03.23.00.28.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2020 00:28:31 -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 v1 0/2] btusb: Introduce the use of vendor extension(s) Date: Mon, 23 Mar 2020 00:28:22 -0700 Message-Id: <20200323072824.254495-1-mcchou@chromium.org> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 v1: - Add a bit mask of driver_info for Microsoft vendor extension. - Indicates the support of Microsoft vendor extension for Intel 9460/9560 and 9160/9260. - Add fields to struct hci_dev to facilitate the support of Microsoft vendor extension. - Add vendor_hci.h to facilitate opcodes and packet structures of vendor extension(s). - Add opcode for the HCI_VS_MSFT_Read_Supported_Features command from Microsoft vendor extension. - Issue a HCI_VS_MSFT_Read_Supported_Features command upon hci_dev_do_open and save the return values. 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 | 18 +++++++++-- include/net/bluetooth/hci.h | 2 ++ include/net/bluetooth/hci_core.h | 5 +++ include/net/bluetooth/vendor_hci.h | 51 ++++++++++++++++++++++++++++++ net/bluetooth/hci_core.c | 30 ++++++++++++++++++ net/bluetooth/hci_event.c | 49 +++++++++++++++++++++++++++- 6 files changed, 152 insertions(+), 3 deletions(-) create mode 100644 include/net/bluetooth/vendor_hci.h -- 2.24.1