diff mbox series

[v1,2/2] Bluetooth: hci_sync: Don't scan on Coded PHY when HCI_PA_SYNC is set

Message ID 20240221143810.531710-2-luiz.dentz@gmail.com
State New
Headers show
Series [v1,1/2] Bluetooth: hci_sync: Use address filtering when HCI_PA_SYNC is set | expand

Commit Message

Luiz Augusto von Dentz Feb. 21, 2024, 2:38 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This disables Coded PHY when HCI_PA_SYNC is enabled.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
 net/bluetooth/hci_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index ab609089ac4c..e7ac9a993a07 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -2786,7 +2786,7 @@  static int hci_le_set_ext_scan_param_sync(struct hci_dev *hdev, u8 type,
 		phy++;
 	}
 
-	if (scan_coded(hdev)) {
+	if (scan_coded(hdev) && !hci_dev_test_flag(hdev, HCI_PA_SYNC)) {
 		cp->scanning_phys |= LE_SCAN_PHY_CODED;
 
 		phy->type = type;