Skip to content

Commit 53cb419

Browse files
committed
Bluetooth: hci_sync: Fix using the same interval and window for Coded PHY
Coded PHY recommended intervals are 3 time bigger than the 1M PHY so this aligns with that by multiplying by 3 the values given to 1M PHY since the code already used recommended values for that. Fixes: 288c902 ("Bluetooth: Enable all supported LE PHY by default") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent b37cab5 commit 53cb419

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/bluetooth/hci_sync.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,8 +2814,8 @@ static int hci_le_set_ext_scan_param_sync(struct hci_dev *hdev, u8 type,
28142814
if (qos->bcast.in.phy & BT_ISO_PHY_CODED) {
28152815
cp->scanning_phys |= LE_SCAN_PHY_CODED;
28162816
hci_le_scan_phy_params(phy, type,
2817-
interval,
2818-
window);
2817+
interval * 3,
2818+
window * 3);
28192819
num_phy++;
28202820
phy++;
28212821
}
@@ -2835,7 +2835,7 @@ static int hci_le_set_ext_scan_param_sync(struct hci_dev *hdev, u8 type,
28352835

28362836
if (scan_coded(hdev)) {
28372837
cp->scanning_phys |= LE_SCAN_PHY_CODED;
2838-
hci_le_scan_phy_params(phy, type, interval, window);
2838+
hci_le_scan_phy_params(phy, type, interval * 3, window * 3);
28392839
num_phy++;
28402840
phy++;
28412841
}

0 commit comments

Comments
 (0)