]> git.itanic.dy.fi Git - linux-stable/commit
Bluetooth: hci_sync: Use advertised PHYs on hci_le_ext_create_conn_sync
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Apr 2024 20:40:33 +0000 (16:40 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 24 Apr 2024 20:26:08 +0000 (16:26 -0400)
commit2e7ed5f5e69b6fe93dd3c6b651d041e0a7a456d1
treefaae1a6046a227b48aaf20684b2f07c5cdb9d0c1
parent9bf4e919ccad613b3596eebf1ff37b05b6405307
Bluetooth: hci_sync: Use advertised PHYs on hci_le_ext_create_conn_sync

The extended advertising reports do report the PHYs so this store then
in hci_conn so it can be later used in hci_le_ext_create_conn_sync to
narrow the PHYs to be scanned since the controller will also perform a
scan having a smaller set of PHYs shall reduce the time it takes to
find and connect peers.

Fixes: 288c90224eec ("Bluetooth: Enable all supported LE PHY by default")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c
net/bluetooth/l2cap_core.c