提交 4723c1ea 编写于 作者: S Sathish Narasimman 提交者: Zheng Zengkai

Bluetooth: LL privacy allow RPA

stable inclusion
from stable-v5.10.121
commit c024f6f11d4d2d9b4fa2be2ba4bc01a5bbe6ee4b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c024f6f11d4d2d9b4fa2be2ba4bc01a5bbe6ee4b

--------------------------------

[ Upstream commit 8ce85ada ]

allow RPA to add bd address to whitelist
Signed-off-by: NSathish Narasimman <sathish.narasimman@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 d46b4211
...@@ -842,6 +842,10 @@ static u8 update_white_list(struct hci_request *req) ...@@ -842,6 +842,10 @@ static u8 update_white_list(struct hci_request *req)
*/ */
bool allow_rpa = hdev->suspended; 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 /* Go through the current white list programmed into the
* controller one by one and check if that address is still * controller one by one and check if that address is still
* in the list of pending connections or list of devices to * in the list of pending connections or list of devices to
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册