Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5340009pxj; Wed, 26 May 2021 08:21:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjHmjtsPnKzlCtl51HY+oxZpJnC82oaATFLXpsC4gJi13+acfh+2qULlDk7fmrHSaNUo2+ X-Received: by 2002:a7b:cc10:: with SMTP id f16mr30305746wmh.24.1622042465153; Wed, 26 May 2021 08:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622042465; cv=none; d=google.com; s=arc-20160816; b=E49JlAujbUNfAsG72bHFbkFWzWszN+bafEieS72z7J4jvbs4joAvZ76YlfGMSuzEkD y7onmBCLLC5EdyITQovfalQHrzxyVpvKnCNqaC4E3rKhEgwlJ2XfPWUvKPnAwdgjMO86 /Uzt+ScvTcdw/7wZ5HgV+Z4cpvPBMtaWyAYKkB9ZFjLz3QNGSICO8DzeAKxc2vPDotFz jDhq1GQneSl6xWa2loMzlIXV7pVYS0H5O+nE23r6Hd+74pdd7CIaXiNc7PyHNaCJUkLE FDWm7mT+Pcl1srOghgmtvp619Z4GQNEGDbS5dRDeKz3P2b0Gtb8QR4Fwii0+dRl8nb0O H1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=kjqwiNqQg9KXKDsMB+fbf9wPbOa1BQjJ//TCWohiFyM=; b=K5KNLPYs9I271i5Brj4KZbi/AFAzCzSBa8Ai0HIs42gbLrXDiEBjS9+lFN41MwTW6d Ja7Tz17YcqIEqrrsyAW/EyhPjRKMlVRpQgCIlyTlxd/n+RgRXr0zEKmLdwRAss62UZhJ /gHy+pGwpWwK0JffjJKe3ZYX5ctUeKtwscE4SmqIzG1Es+e+VxbiHwECdQYVNsOn9sHX 7unYnzmBT/s7etD8vvpCITJs++8NigCNg10mjUZMuS1spy7L+xwvXFKPMiv214uRRkOD 5Tmnnv0m70LZKxgvnMuFKxtJ8KV0wIev6+/k4hdnKeePcZmI6CLUHKtseHOpnDw6qNo6 ylVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si18128990eju.389.2021.05.26.08.20.41; Wed, 26 May 2021 08:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235326AbhEZPTZ (ORCPT + 99 others); Wed, 26 May 2021 11:19:25 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:57501 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235128AbhEZPTX (ORCPT ); Wed, 26 May 2021 11:19:23 -0400 Received: from smtpclient.apple (p4fefc9d6.dip0.t-ipconnect.de [79.239.201.214]) by mail.holtmann.org (Postfix) with ESMTPSA id 7CC7BCED1D; Wed, 26 May 2021 17:25:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [PATCH v2] Bluetooth: disable filter dup when scan for adv monitor From: Marcel Holtmann In-Reply-To: <20210520131145.v2.1.I69e82377dd94ad7cba0cde75bcac2dce62fbc542@changeid> Date: Wed, 26 May 2021 17:17:49 +0200 Cc: linux-bluetooth , CrosBT Upstreaming , Yun-Hao Chung , Archie Pusaka , Manish Mandlik , "David S. Miller" , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20210520131145.v2.1.I69e82377dd94ad7cba0cde75bcac2dce62fbc542@changeid> To: Howard Chung X-Mailer: Apple Mail (2.3654.100.0.2.22) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Howard, > Disable duplicates filter when scanning for advertisement monitor for > the following reasons. The scanning includes active scan and passive > scan. > > For HW pattern filtering (ex. MSFT), Realtek and Qualcomm controllers > ignore RSSI_Sampling_Period when the duplicates filter is enabled. > > For SW pattern filtering, when we're not doing interleaved scanning, it > is necessary to disable duplicates filter, otherwise hosts can only > receive one advertisement and it's impossible to know if a peer is still > in range. > > Reviewed-by: Archie Pusaka > Reviewed-by: Manish Mandlik > > Signed-off-by: Yun-Hao Chung > > --- > > Changes in v2: > - include the vendor name in the comment and commit messages > > net/bluetooth/hci_request.c | 46 +++++++++++++++++++++++++++++++++---- > 1 file changed, 41 insertions(+), 5 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel