From patchwork Wed Mar 25 07:03:34 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: 11457061 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 D16986CA for ; Wed, 25 Mar 2020 07:03:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0AC320BED for ; Wed, 25 Mar 2020 07:03:59 +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 S1727388AbgCYHD7 (ORCPT ); Wed, 25 Mar 2020 03:03:59 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44046 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbgCYHDm (ORCPT ); Wed, 25 Mar 2020 03:03:42 -0400 Received: by mail-pf1-f195.google.com with SMTP id b72so583586pfb.11 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=DwdT1ZmMYiDNgqkTfMLNxYkzIJm7L8PgShdNdR/gImf81zzmRJ3NCH8vartjF4dBcX HTd/yZflTIEOj8a0/tF9OHTTy1hbnwifvGoqkyY7NhPMBIo5WLWRFsundQm5EsSwUiu2 0tKmFVNpWRsyPfaRhR6j6cyLxoac9PWtKbtb5oTFHv4P5dMS5by5nkOrQT7KJxg4frdH CLnqwB1RcmPGdIOlUB7BeMhSbqCx2+6FbIU/jh6B5Jis1+zIs6gFYAHzR4iqtgmbLHv1 Z1naSSXmXGsEGzZ5NwIZNGEMwL8qFY50e0Dge+BQcjRNZwqk0Idlp2zccmq1bcnLplwd +Blg== X-Gm-Message-State: ANhLgQ2Soz70yJo34a9fhNUvSOw21epqfhuv8X5ilTx+XrIRzwGZT6Po CzEaK/gSuSZM0EfFFIRb5L7giN0A9b0= 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 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 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