Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: hci_conn: Fix default RX PHY initialization
@ 2026-10-14  2:01 Jackie Liu
  2026-10-14  7:09 ` bluez.test.bot
  0 siblings, 1 reply; 2+ messages in thread
From: Jackie Liu @ 2026-10-14  2:01 UTC (permalink / raw)
  To: marcel; +Cc: luiz.dentz, linux-bluetooth, linux-kernel

From: Jackie Liu <liuyun01@kylinos.cn>

Initialize the connection's default RX PHYs from hdev->le_rx_def_phys
instead of the TX defaults, which may differ from the RX configuration.

Fixes: 129d1ef3c5e6 ("Bluetooth: hci_conn: Fix using conn->le_{tx,rx}_phy as supported PHYs")
Reported-by: k2ci <kernel-bot@kylinos.cn>
Cc: stable@vger.kernel.org
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
---
 net/bluetooth/hci_conn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 96195d2fd10f..c8fd3e2c79bd 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -1102,7 +1102,7 @@ static struct hci_conn *__hci_conn_add(struct hci_dev *hdev, int type,
 		 * remote features are resolved.
 		 */
 		conn->le_tx_def_phys = hdev->le_tx_def_phys;
-		conn->le_rx_def_phys = hdev->le_tx_def_phys;
+		conn->le_rx_def_phys = hdev->le_rx_def_phys;
 		break;
 	case CIS_LINK:
 		/* conn->src should reflect the local identity address */
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-14  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14  2:01 [PATCH] Bluetooth: hci_conn: Fix default RX PHY initialization Jackie Liu
2026-10-14  7:09 ` bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox