Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1270936ybz; Fri, 17 Apr 2020 20:10:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLvJfM8RIzwwDQO7Ee0Oq2jVbNqIls6suI2avs1UiPpgFeCh8eGKF9v+rpu2PwzRkfEE2f7 X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr5870145ejr.3.1587179454840; Fri, 17 Apr 2020 20:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587179454; cv=none; d=google.com; s=arc-20160816; b=BRhYnfj2qEzCs3sJGkZHBAJLwL4p+DielKsCeydW2RQgQDpwHLG44B9pabTUueLVCi p5wsMIL2ICetOUzGP2QqWXhE4Tmib4cxPSL+EYWDXVHI33ePauu0cuPPGaIFBxJC2RT6 X4xpgXT75yyIexQ4yva+YTfckXwB3Q00XzquB5z6ZNMl75/RxWEGheR+AqGtWy3t9Xbd TVPPW2Og4CU/4KDdXaEfip2CcTo8BS3TvL4Gaph7lubO8wsaQxAGcRsr63aAybba5sBI 764dvaCgmwY5bgb82nZIcC7vG3rcpeVkNIY/2JCGCBIT+SBYetsUHwaoDOl3pJXx9YkX EuGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7epjNujTEWtV2z+kYZ+rP7ZeTkhIS5HfNwOqOHLAvB4=; b=nRpioHwmau0W1Op+nzBR5jumVX6pmyA2bn5MA+hYJV1PsAsSTJ1c131zo9N3K6hSpq HjhYBHua3ECTlCC+n4LN3Ozc0pQNkxK519dYseYeaYyV/rNDk4gWSfHgpa3zZw4ffiIZ ioCSUbKyidk4AheeyuojFDL+DCPbUUr14NIv6ZGGL33KbVbJzMyegYK7UCJAVsekmgYc ysscVH4mAzd8LssLgFNJAk9SnKewfo90O6BzpAGe7zzMAkyNpHMnnyUk2Pq5ku5XesmJ WWrsg8YysVTZ5ayGNWoX/USXIr0tgmeVpeQWmGcV3cTJy0EYLKpMtNkuXJ3GANNCzmkn tIMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NlLNGOSR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si1923874edi.38.2020.04.17.20.10.06; Fri, 17 Apr 2020 20:10:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NlLNGOSR; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725964AbgDRDJb (ORCPT + 99 others); Fri, 17 Apr 2020 23:09:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725320AbgDRDJb (ORCPT ); Fri, 17 Apr 2020 23:09:31 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC1FC061A0C for ; Fri, 17 Apr 2020 20:09:29 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id a22so1842747pjk.5 for ; Fri, 17 Apr 2020 20:09:29 -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=7epjNujTEWtV2z+kYZ+rP7ZeTkhIS5HfNwOqOHLAvB4=; b=NlLNGOSRtbqhRdny0x6DiQs8TgZ4o5msZZCAQXcb6XJUHM5rCTldLVql79ZCXqQkbO LGqu4ITNVmUumx/UTfgyb3wzo5Z5JQCMnWie81lX5wXNI20lCYo+BqtFKih0aBqpT5zg GbXEJKLcL+Arf6hhaeDszwQ2QwdYFEcYwkUDM= 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=7epjNujTEWtV2z+kYZ+rP7ZeTkhIS5HfNwOqOHLAvB4=; b=PMS+b3SYiCPRXnxJ1lvWYEH+MZWNLdWk+8rEZUgE1HB+bje4VvqU2Nv/JmBicpyLji fv5JsXvAyx01tzjK2hw6iV5t1BLmavTFF8Xg89vIm+slacyB+q/hwrEDlUFD39uNYIcn 2r91oTZwxsrrtOrLyNxfpQoh6dPSYnw/MbSUZJm1vqE/G1BI5l8iMvH9W5eUS0evz1D4 aT7li7pJMxRUVmkhqij/0+XwJRwBzFnIAqIOTVFzpmp6dOdsQThoSgyQCql0D1SMNO5O PhSJMzX1drJvFJQMBESJ7yl5TaRUBydmG7DgUASbt5FqldCit1xNtn1IKWbIcqNSODA3 tgsg== X-Gm-Message-State: AGi0PubtDrPmmwKCLCnKxnuWP0us8JgE3Vszb31Pc+l9MsP0GyiTmJ+/ WXUpFzT9Z9MVJ4yfRlRHUeNVj8EHrb4= X-Received: by 2002:a17:902:b108:: with SMTP id q8mr6841773plr.214.1587179368978; Fri, 17 Apr 2020 20:09:28 -0700 (PDT) Received: from mcchou0.mtv.corp.google.com ([2620:15c:202:201:b46:ac84:1014:9555]) by smtp.gmail.com with ESMTPSA id g2sm20885794pfh.193.2020.04.17.20.09.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Apr 2020 20:09:28 -0700 (PDT) From: Miao-chen Chou To: Bluetooth Kernel Mailing List Cc: Alain Michaud , Luiz Augusto von Dentz , Marcel Holtmann , Michael Sun , Yoni Shavit , Miao-chen Chou Subject: [BlueZ PATCH v1] doc: Describe the new Advertisement Monitor support Date: Fri, 17 Apr 2020 20:09:24 -0700 Message-Id: <20200417200903.BlueZ.v1.1.If9f6be992cbaeaa35423de29da6db28675b35fcc@changeid> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This describes the following commands. - Add Advertisement Patterns Monitor - Remove Advertisement Monitor - Remove All Advertisement Monitors Note that the content of a monitor can differ based on its type. For now we introduce only pattern-based monitor, so you may find that unlike commands for removing monitor(s), the Add command is tied to a specific type. Signed-off-by: Miao-chen Chou --- doc/mgmt-api.txt | 68 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt index 39f23c456..fcd281a35 100644 --- a/doc/mgmt-api.txt +++ b/doc/mgmt-api.txt @@ -3138,6 +3138,74 @@ Read Security Information Command Invalid Index +Add Advertisement Patterns Monitor Command +========================================= + + Command Code: 0x0049 + Controller Index: + Command Parameters: Pattern_count (1 Octets) + Pattern1 { + AD_Data_Type (1 Octet) + Index (1 Octet) + Length (1 Octet) + Value (variable length) + } + Pattern2 { } + ... + Return Parameters: Monitor_Index (8 Octets) + + This command is used to add an advertisement monitor whose filtering + conditions are patterns. The kernel would track the number of registered + monitors to determine whether to perform LE scanning while there is + ongoing LE scanning for other intentions, such as auto-reconnection and + discovery session. If the controller supports Microsoft HCI extension, + the kernel would offload the content filtering to the controller in + order to reduce power consumption; otherwise the kernel ignore the + content of the monitor. + + Possible errors: Failed + Busy + Invalid Parameters + + +Remove Advertisement Monitor Command +==================================== + + Command Code: 0x004A + Controller Index: + Command Parameters: Monitor_Index (8 Octets) + Return Parameters: Monitor_Index (8 Octets) + + This command is used to remove an advertisement monitor. The kernel + would remove the monitor with Monitor_Index and update the LE scanning. + If the controller supports Microsoft HCI extension and the monitor has + been offloaded, the kernel would cancel the offloading; otherwise the + kernel takes no further actions other than removing it from the list. + + Possible errors: Failed + Busy + Invalid Index + + +Remove All Advertisement Monitors Command +========================================= + + Command Code: 0x004B + Controller Index: + Command Parameters: + Return Parameters: Num_removed_Monitors (2 Octets) + Monitor_Index[i] (2 Octets) + + This command is used to remove all advertisement monitors. The kernel + would remove all monitors and update the LE scanning if needed. If the + controller supports Microsoft HCI extension the monitors have been + offloaded, the kernel would cancel all offloadings; otherwise the kernel + takes no further actions other than removing all monitors from the list. + + Possible errors: Failed + Busy + + Command Complete Event ====================== -- 2.24.1