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 A377EC43331 for ; Thu, 26 Mar 2020 07:59:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79C7E20719 for ; Thu, 26 Mar 2020 07:59:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jEFZL2sS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727822AbgCZH7r (ORCPT ); Thu, 26 Mar 2020 03:59:47 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34923 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbgCZH7o (ORCPT ); Thu, 26 Mar 2020 03:59:44 -0400 Received: by mail-pl1-f194.google.com with SMTP id g6so1846457plt.2 for ; Thu, 26 Mar 2020 00:59:43 -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=xtU4BZ4dCOTEVBRYZDldU0zbmhEySGDZD1xJ5Lrg31U=; b=jEFZL2sSgB3oTYcjRmCSd3cbOQ8ODOMKxCLFBZ/eVqVh03jXnGKQMM5wSK3usYfgW2 YOtP/MXVLqOEcgJXBvYt1kPJhGTsd96ToM75m/URp6SRzC7z5Bgg8+byK1DbzrXfbzzh sJFlFPYwU0i1DkAUWTrobYNQjUyqksOnw06Mc= 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=xtU4BZ4dCOTEVBRYZDldU0zbmhEySGDZD1xJ5Lrg31U=; b=mE9RMZ+6dP3iboPa8bRFIOrX3EP4SedsLE9wi+9xzhRu4/uj4bBlfYGf55/HPKAm1f g5jVzTfKzzgb/AogjEp0oYxa+pWtYAdKYYVp2GADsq4uY2gHK0GEiHVh+2bDcgZhnlRH fQO/HDEeYZUSXTJ0eL1rIUCyzv27gakZBRJXI63wNRUP5LLNIu3GL92sCDgxbiFfv0z3 t+R/PIAKLeVHl0KYgYO60i1gEf6mwaRSj7xYQKuuSOmUaY2wY8zdQnLFNqZ9Hy1dSDGX wUR5yAmLKZLvl396io0alCu5DSmmBoxC+mFV7bG5w30kjNqMJkdIJTXUEMoI63ynmG3Q m8Rw== X-Gm-Message-State: ANhLgQ1oKIjST8uMqRduJbM2r9lpa3STJRDk0eYbvkevPqqk7Y8i/wio +ubiLSoXSZ9GT4+xmSQj6hqQQw== X-Google-Smtp-Source: ADFU+vtqZIsGCLABYNiME/GhQ8RqcB62mmcl6pfyfoQBzYkzBlMerk5B7oijurTrJSuvGqqdO+rK4Q== X-Received: by 2002:a17:90a:d585:: with SMTP id v5mr1759884pju.168.1585209582834; Thu, 26 Mar 2020 00:59:42 -0700 (PDT) Received: from mcchou0.mtv.corp.google.com ([2620:15c:202:201:b46:ac84:1014:9555]) by smtp.gmail.com with ESMTPSA id 8sm1036476pfv.65.2020.03.26.00.59.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2020 00:59:41 -0700 (PDT) From: Miao-chen Chou To: Bluetooth Kernel Mailing List Cc: Marcel Holtmann , Alain Michaud , Luiz Augusto von Dentz , Miao-chen Chou , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 0/2] btusb: Introduce the use of vendor extension(s) Date: Thu, 26 Mar 2020 00:59:36 -0700 Message-Id: <20200326075938.65053-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 v3: - Create net/bluetooth/msft.c with struct msft_vnd_ext defined internally and change the hdev->msft_ext field to void*. - Define and expose msft_vnd_ext_set_opcode() for btusb use. - Init hdev->msft_ext in hci_alloc_dev() and deinit it in hci_free_dev(). - Introduce msft_vnd_ext_do_open() and msft_vnd_ext_do_close(). 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 | 10 ++- include/net/bluetooth/hci_core.h | 4 ++ net/bluetooth/hci_core.c | 120 +++++++++++++++++++++++++++++++ net/bluetooth/msft.c | 52 ++++++++++++++ 4 files changed, 184 insertions(+), 2 deletions(-) create mode 100644 net/bluetooth/msft.c -- 2.24.1