Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp293282pxf; Tue, 6 Apr 2021 22:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNhOfiOviqcyxAPhU57T7IuwwjbYl/v6cp0jViJWEVnJsn6r4ZcT5ymeO0JDZF5LeXoeIr X-Received: by 2002:a05:6e02:1081:: with SMTP id r1mr1571908ilj.181.1617774526242; Tue, 06 Apr 2021 22:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617774526; cv=none; d=google.com; s=arc-20160816; b=g/msgDL00mBisoXc1Z4/aIounOOvNRKDVVzLgteCf5qQQa8hUl2i8SjVk10VCgt1z6 +FNwTU0I8VYmMpkqUDus6TZ7l2nWBbzeEsiDrOQlYN4HDFdRRND2GmmQWRzwFV04BXYD 405niYm8a6A8rfTHiBWBTthl5frIme9R9+WHxkG9AUHnDeq5hQrFFbNeGdFH+iehXQoQ +UENXzTI0emeCVHxvRnc1HdTc7jE09uLa8kdvWWlJuci6Re/720BNkyiSKXyC9wqVrBa 9G08UG94bN/dpXL106pLpawrpcW+F6KCo+rCdtNGtjVpdBtYCyP7eSoHJyYL2H9+uq9P OfYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=EoTJO5FbKGG+5sESqcpryB9OmFJ7UA3g0HUQSw+vzOE=; b=cZXLrmqg0dnllGTwYr2lWXuCuqCwXGHYhXjV32ob0ZLCYylW9htHgn0XGVIvuvwETZ XmE5ZJRgKFV66Jvd98S5u8vtSnx4z36a7ZHckwmNu4Q6DqIJEN9SGaVOQAduGTHsgl5Y RKKm/mq8l277NYmB6YGkdiAEAG8S9zj1ZyQyQsE/+UyVZ00IzzqG2Y3YPcWQcJIxL2Bb Kpk112vkyt/MJC/KMTLklPGCi7q7Pcu6iS6Ws3cZkpbWoOTIUbKnTFQ9noPLpgiZl/YX hMqr7DpgVUbVR8tk1g0rAlw+gkn2mOocy9FKDt9zr0D43Z/WMGsGgaZDutYlTnp7BYHN tMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b="P9oKSee/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s21si258246iov.70.2021.04.06.22.48.18; Tue, 06 Apr 2021 22:48:46 -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=@codecoup-pl.20150623.gappssmtp.com header.s=20150623 header.b="P9oKSee/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232594AbhDFOR0 (ORCPT + 99 others); Tue, 6 Apr 2021 10:17:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbhDFOR0 (ORCPT ); Tue, 6 Apr 2021 10:17:26 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE322C06174A for ; Tue, 6 Apr 2021 07:17:17 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id b14so22991729lfv.8 for ; Tue, 06 Apr 2021 07:17:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecoup-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:in-reply-to :references:mime-version:content-transfer-encoding; bh=EoTJO5FbKGG+5sESqcpryB9OmFJ7UA3g0HUQSw+vzOE=; b=P9oKSee/7qkq3grn4jpN3xiXHtgwqQTXA0dCYL7e2iQS6h625OxPs1lwCVcABCMVmP uQ/uNEV6TfPdEjSis0bDBEzPGvhCNqCueecJN5AkD5W+7hK7RDocxKsM4aZYQigUxrP1 fGXb1b/tOfBfILg0S4c9CvWo+M/BDRIOKoHlPpb4UI5kkQQpx8vdiy0c8s7gO2Mxh/5/ qul591CnScAXEX386FFLjVlER1DZfCzImxd8KWE3iJPImzrc/NDNHvdTdZRYobyDMfzf GjiKoKhVKWrrDXz0BiDoeF8ZQda/zKcws+gliILJzYWlu2YOPEz6OQrQXVn6dFKzLC4J cKMg== 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:organization :in-reply-to:references:mime-version:content-transfer-encoding; bh=EoTJO5FbKGG+5sESqcpryB9OmFJ7UA3g0HUQSw+vzOE=; b=dM8293RVfNhrrifO5VtkOcilMYhj7VdIeacd/wpdqHKGAjNBVCCXXQ51ayRh6P/KY0 maZ5CTU7Zu1Y2IonNHd5yUxHk88s3ySlDtnFH7FmWilaB/ZgkwPuWbUfEeB1lz5+KfrE /sTssj/lfIEwKvDFX4Ws1IPEYjZIQBprclbFo2lsyQ6pDlpZH7g7IDI7+tWhHYDrH/v7 ko4AoB74RCBQHjq+uhFkSYkzEWzBGgf1AQ55lvT9d0A1l5BE1Hsm+euuXc4OkoEho72d jsX7Q61oGKgXsNgVHPU2PUjDedDPSWfECdEBcar4BL9f1HoI2XeC4y68ESvntUZBKIgL ivwg== X-Gm-Message-State: AOAM531ncMD3kLJ7Z87uSMkhLhQjUQz361Hv4bBuDQv11DCV1WO1Iu43 W2X/oAs1TB+t9mHo/Yz7uIMUIyFDObz7nQQY X-Received: by 2002:ac2:5e8e:: with SMTP id b14mr20433032lfq.626.1617718636277; Tue, 06 Apr 2021 07:17:16 -0700 (PDT) Received: from ix.localnet ([95.143.243.62]) by smtp.gmail.com with ESMTPSA id c14sm2172993lfp.269.2021.04.06.07.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 07:17:15 -0700 (PDT) From: Szymon Janc To: linux-bluetooth@vger.kernel.org, Sathish Narasimman Cc: chethan.tumkur.narayan@intel.com, ravishankar.srivatsa@intel.com, Sathish Narasimman Subject: Re: [PATCH 2/2] Bluetooth: LL privacy allow RPA Date: Tue, 06 Apr 2021 16:17:13 +0200 Message-ID: <5698706.lOV4Wx5bFT@ix> Organization: CODECOUP In-Reply-To: <20210405143041.16168-1-sathish.narasimman@intel.com> References: <20210405143041.16168-1-sathish.narasimman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, On Monday, 5 April 2021 16:30:41 CEST Sathish Narasimman wrote: > allow RPA to add bd address to whitelist > > Signed-off-by: Sathish Narasimman > --- > net/bluetooth/hci_request.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c > index 0d78122342d5..560b74d421a8 100644 > --- a/net/bluetooth/hci_request.c > +++ b/net/bluetooth/hci_request.c > @@ -847,6 +847,10 @@ static u8 update_white_list(struct hci_request *req) > */ > bool allow_rpa = hdev->suspended; > > + if (use_ll_privacy(hdev) && > + hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) > + allow_rpa = true; > + > /* Go through the current white list programmed into the > * controller one by one and check if that address is still > * in the list of pending connections or list of devices to I'm bit confused by this patch. Why add RPA to whitelist if LL privacy is in use? -- pozdrawiam Szymon Janc