* [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode
@ 2022-07-14 18:12 Luiz Augusto von Dentz
2022-07-14 18:12 ` [PATCH v2 2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list Luiz Augusto von Dentz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2022-07-14 18:12 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
When programming a new entry into the resolving list it shall default
to network mode since the params may contain the mode programmed when
the device was last added to the resolving list.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=209745
Fixes: 853b70b506a20 ("Bluetooth: hci_sync: Set Privacy Mode when updating the resolving list")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tested-by: Zhengping Jiang <jiangzp@google.com>
---
v2: Use HCI_NETWORK_PRIVACY instead of 0x00
net/bluetooth/hci_sync.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index ca97378fd81f..256ece5640b7 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -1636,6 +1636,9 @@ static int hci_le_add_resolve_list_sync(struct hci_dev *hdev,
bacpy(&cp.bdaddr, ¶ms->addr);
memcpy(cp.peer_irk, irk->val, 16);
+ /* Default privacy mode is always Network */
+ params->privacy_mode = HCI_NETWORK_PRIVACY;
+
done:
if (hci_dev_test_flag(hdev, HCI_PRIVACY))
memcpy(cp.local_irk, hdev->irk, 16);
--
2.35.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list
2022-07-14 18:12 [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode Luiz Augusto von Dentz
@ 2022-07-14 18:12 ` Luiz Augusto von Dentz
2022-07-14 19:11 ` [v2,1/2] Bluetooth: hci_sync: Fix not updating privacy_mode bluez.test.bot
2022-07-18 23:20 ` [PATCH v2 1/2] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2022-07-14 18:12 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
These devices are likely going to be reprogrammed when disconnected so
this avoid a whole bunch of commands attempt to remove and the add back
to the list.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
net/bluetooth/hci_sync.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index 256ece5640b7..c746714f218f 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -1892,12 +1892,15 @@ static u8 hci_update_accept_list_sync(struct hci_dev *hdev)
}
/* Go through the current accept 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
+ * controller one by one and check if that address is connected or is
+ * still in the list of pending connections or list of devices to
* report. If not present in either list, then remove it from
* the controller.
*/
list_for_each_entry_safe(b, t, &hdev->le_accept_list, list) {
+ if (hci_conn_hash_lookup_le(hdev, &b->bdaddr, b->bdaddr_type))
+ continue;
+
pend_conn = hci_pend_le_action_lookup(&hdev->pend_le_conns,
&b->bdaddr,
b->bdaddr_type);
--
2.35.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [v2,1/2] Bluetooth: hci_sync: Fix not updating privacy_mode
2022-07-14 18:12 [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode Luiz Augusto von Dentz
2022-07-14 18:12 ` [PATCH v2 2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list Luiz Augusto von Dentz
@ 2022-07-14 19:11 ` bluez.test.bot
2022-07-18 23:20 ` [PATCH v2 1/2] " patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2022-07-14 19:11 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=659825
---Test result---
Test Summary:
CheckPatch PASS 1.84 seconds
GitLint PASS 0.88 seconds
SubjectPrefix PASS 0.57 seconds
BuildKernel PASS 38.85 seconds
BuildKernel32 PASS 34.10 seconds
Incremental Build with patchesPASS 56.43 seconds
TestRunner: Setup PASS 576.79 seconds
TestRunner: l2cap-tester PASS 18.82 seconds
TestRunner: bnep-tester PASS 6.65 seconds
TestRunner: mgmt-tester PASS 112.16 seconds
TestRunner: rfcomm-tester PASS 10.48 seconds
TestRunner: sco-tester PASS 10.12 seconds
TestRunner: smp-tester PASS 10.37 seconds
TestRunner: userchan-tester PASS 6.86 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode
2022-07-14 18:12 [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode Luiz Augusto von Dentz
2022-07-14 18:12 ` [PATCH v2 2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list Luiz Augusto von Dentz
2022-07-14 19:11 ` [v2,1/2] Bluetooth: hci_sync: Fix not updating privacy_mode bluez.test.bot
@ 2022-07-18 23:20 ` patchwork-bot+bluetooth
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+bluetooth @ 2022-07-18 23:20 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 14 Jul 2022 11:12:23 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> When programming a new entry into the resolving list it shall default
> to network mode since the params may contain the mode programmed when
> the device was last added to the resolving list.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=209745
> Fixes: 853b70b506a20 ("Bluetooth: hci_sync: Set Privacy Mode when updating the resolving list")
> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> Tested-by: Zhengping Jiang <jiangzp@google.com>
>
> [...]
Here is the summary with links:
- [v2,1/2] Bluetooth: hci_sync: Fix not updating privacy_mode
https://git.kernel.org/bluetooth/bluetooth-next/c/ab345b04433d
- [v2,2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list
https://git.kernel.org/bluetooth/bluetooth-next/c/ff1688aab0d1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-07-18 23:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14 18:12 [PATCH v2 1/2] Bluetooth: hci_sync: Fix not updating privacy_mode Luiz Augusto von Dentz
2022-07-14 18:12 ` [PATCH v2 2/2] Bluetooth: hci_sync: Don't remove connected devices from accept list Luiz Augusto von Dentz
2022-07-14 19:11 ` [v2,1/2] Bluetooth: hci_sync: Fix not updating privacy_mode bluez.test.bot
2022-07-18 23:20 ` [PATCH v2 1/2] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).