]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: hci_conn: Fix using conn->le_{tx,rx}_phy as supported PHYs
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 10 Dec 2025 16:38:08 +0000 (11:38 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 29 Jan 2026 18:21:40 +0000 (13:21 -0500)
commit129d1ef3c5e60d51678e6359beaba85771a49e46
treec71816e2362ff034ee70e28379a6f03fe240a001
parentfce1a9244a0f85683be8530e623bc729f24c5067
Bluetooth: hci_conn: Fix using conn->le_{tx,rx}_phy as supported PHYs

conn->le_{tx,rx}_phy is not actually a bitfield as it set by
HCI_EV_LE_PHY_UPDATE_COMPLETE it is actually correspond to the current
PHY in use not what is supported by the controller, so this introduces
different fields (conn->le_{tx,rx}_def_phys) to track what PHYs are
supported by the connection.

Fixes: eab2404ba798 ("Bluetooth: Add BT_PHY socket option")
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