From patchwork Mon Mar 23 07:28:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miao-chen Chou X-Patchwork-Id: 11452415 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3803492A for ; Mon, 23 Mar 2020 07:28:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1745E2074D for ; Mon, 23 Mar 2020 07:28:36 +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 S1727448AbgCWH2e (ORCPT ); Mon, 23 Mar 2020 03:28:34 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39440 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727350AbgCWH2e (ORCPT ); Mon, 23 Mar 2020 03:28:34 -0400 Received: by mail-pg1-f194.google.com with SMTP id b22so6756161pgb.6 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=iL5y0MDecIJWtXksLr8tBkzpSBNIlPZ1xEM5rG6CUdd/TE6FIbgqvhyn0sgoVDLcFl pTd59tOUroYKi4p6WtOZoPHPLi62F6JIGwtZC+uf+JdI/mAmWbV5GbeF7t652oV7s7/9 7QJhXIEZ0F+YDbxhk1EgXtPEiBjDKVVpf++DKaLKHEBbROY8nW06H7OyhdIf+U34CnKF 2fgkbeEl0uqUL0VSf3QoTWH4Z5HttHvPbJc9UJngLz+rsaiLVlnFExbWStIhObCwq8Oa tBBBBLpVPqpC6V+/90Jc3Xq8vq3nG8iZyjLx3TYVf3oCLH9eP5ulk4fG85zj+IOnwDOV CXZw== X-Gm-Message-State: ANhLgQ0z5yXcy5t3AEJO/C12t8yr3GkMxiy7TXceSa8g0VZWZZ/ye8JG zmJJJlsNs3r9XZK6H/T/n1QsWUdyhqQ= 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 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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