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=-21.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham 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 1DF4EC63777 for ; Thu, 3 Dec 2020 10:30:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B0D5221527 for ; Thu, 3 Dec 2020 10:30:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388750AbgLCKa0 (ORCPT ); Thu, 3 Dec 2020 05:30:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387578AbgLCKa0 (ORCPT ); Thu, 3 Dec 2020 05:30:26 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4C96C061A4F for ; Thu, 3 Dec 2020 02:29:45 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id w8so2070873ybj.14 for ; Thu, 03 Dec 2020 02:29:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=zRqNYgUmSE76iYT5WRcqvOInql38s1jQQXDR9piPn7M=; b=n5DdBTUwOmAwYQskeWVbaZtHC1SPMDNbu8+e+yWVTQuHx2H4+2gSDCxEm7djuFVraU H9K3dx/xs4w3ujH0yaqvLe7YODEWKLwv3DHY0n29N1g2UG5+p8i/waa/CVyPEBAO3kPe GxanXBUhYMb24wbEswuhd/6ZT3XIzsao5to86dzVbO0PzByNZQcfsYf9p9w6BQ8gqnsS kr/WD8a2er+QUCdm10fZbN0dpT7HUD37TtF6W47L+F9eAxj+huPwv6mRoKmecdkp6G7P QdPPiyYI9nEjhOVT2JwkYOVDhYeyBIm9Xqc5ZZhzM54f3xKX2RDANZ/g+YXqaLKv5K/2 1nsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=zRqNYgUmSE76iYT5WRcqvOInql38s1jQQXDR9piPn7M=; b=gxwhBBplN4nmlfkiSACZtnHSlGxg6ne2wBJ3diQu0zpXb+I3NcjJ+uBnIVSbZBg54z DDrOGYuNhAhP3MPRzDa0/ursc4wCwvS8gTMcAARqNqHca3PCdyq+0+7jbg2RZZpcS8pS iEJEqIi3E3AKLGPx/lvTK3I0i7fmB1+sUuD2l43q89kPjIS7BXDH4frELrtp4lDn1sj2 nR1UbMWEF3XtakwUNtJbgbWEXoaa1NKph2iOnISZs7rItoy5PlmFr24UboeHN0KLZCpw W/HN8iTSVZhk4dXGOVONz4ZN0r1+OlT7HScPO7uI5VV93TqNV626O2gDpTwclr3qWBSj i5LQ== X-Gm-Message-State: AOAM532r2ACSWJCzHRtWZiJ8Er++dgH2HQ0ui8xEx4I8Hje2akH0XyQl sSYiwh+3J+T3d59C1MciHlJ3AJyVgfDy X-Google-Smtp-Source: ABdhPJzgThzsPymJjNZyRNKoGkPfrQvdGV5trnSCuPmuB7YXsIMWTsRyzBh/Pj8Fdo0Nxcw8NZbH3ibgxRhl Sender: "apusaka via sendgmr" X-Received: from apusaka-p920.tpe.corp.google.com ([2401:fa00:1:b:f693:9fff:fef4:2347]) (user=apusaka job=sendgmr) by 2002:a25:5442:: with SMTP id i63mr3997665ybb.344.1606991384895; Thu, 03 Dec 2020 02:29:44 -0800 (PST) Date: Thu, 3 Dec 2020 18:29:30 +0800 Message-Id: <20201203102936.4049556-1-apusaka@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog Subject: [PATCH v1 0/5] MSFT offloading support for advertisement monitor From: Archie Pusaka To: linux-bluetooth , Marcel Holtmann Cc: CrosBT Upstreaming , Archie Pusaka , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Archie Pusaka Hi linux-bluetooth, This series of patches manages the hardware offloading part of MSFT extension API. The full documentation can be accessed by this link: https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/microsoft-defined-bluetooth-hci-commands-and-events Only four of the HCI commands are planned to be implemented: HCI_VS_MSFT_Read_Supported_Features (implemented in previous patch), HCI_VS_MSFT_LE_Monitor_Advertisement, HCI_VS_MSFT_LE_Cancel_Monitor_Advertisement, and HCI_VS_MSFT_LE_Set_Advertisement_Filter_Enable. These are the commands which would be used for advertisement monitor feature. Only if the controller supports the MSFT extension would these commands be sent. Otherwise, software-based monitoring would be performed in the user space instead. Thanks in advance for your feedback! Archie Archie Pusaka (5): Bluetooth: advmon offload MSFT add rssi support Bluetooth: advmon offload MSFT add monitor Bluetooth: advmon offload MSFT remove monitor Bluetooth: advmon offload MSFT handle controller reset Bluetooth: advmon offload MSFT handle filter enablement include/net/bluetooth/hci_core.h | 34 ++- include/net/bluetooth/mgmt.h | 9 + net/bluetooth/hci_core.c | 173 +++++++++--- net/bluetooth/mgmt.c | 263 +++++++++++++----- net/bluetooth/msft.c | 456 ++++++++++++++++++++++++++++++- net/bluetooth/msft.h | 27 ++ 6 files changed, 853 insertions(+), 109 deletions(-) -- 2.29.2.454.gaff20da3a2-goog