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 9B575C43331 for ; Thu, 26 Mar 2020 07:59:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7213920719 for ; Thu, 26 Mar 2020 07:59:45 +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 S1727801AbgCZH7o (ORCPT ); Thu, 26 Mar 2020 03:59:44 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:43102 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbgCZH7o (ORCPT ); Thu, 26 Mar 2020 03:59:44 -0400 Received: by mail-pl1-f193.google.com with SMTP id v23so1827074ply.10 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=YyIEnFY5cjypkeM/qdlSkht76UIybdMPbhQhLQ8H77PC9kfShO1igGH6/pvTW8GH+B 6LcMvQGtEw/jSMEa25iObJO1MRt4uBSy9OcJ/P8Kx7YyW3QFKVIEKMn1GbzwhC/oXGXc M6M39N203T0f031MludcGnYQJu2lliHf0WqdWob7yfzQLLKhlcgJf1t27dTV3GYASbCr MT2vda1mvUmwsTneBM4GjpXP1i+Jje4f58XGnX10gf3XhLMS0nKI3DKfxh1MNKFc71F9 0Gkr6yhuRZRKxhjSwnFoNcL1dmjTccqVwe+HlgwmaQb8Lo1DVnvlqQJSa4+L+5qNxdAY vuiA== X-Gm-Message-State: ANhLgQ1xGkpJff6DBxEDiv3SF0FBuDPaL9xL4zE5KKDAf6501gr1TEi+ FoKhfwcPi9E68tEy3nvkUZaFuQ== 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: 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 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