]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: 6lowpan: fix BDADDR_LE vs ADDR_LE_DEV address type confusion
authorPauli Virtanen <pav@iki.fi>
Mon, 3 Nov 2025 18:29:47 +0000 (20:29 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 10 Nov 2025 21:07:41 +0000 (16:07 -0500)
commitb454505bf57a2e4f5d49951d4deb03730a9348d9
tree23df2cb020b2b8ad1e2a3f294310e8e7326815be
parent3b78f50918276ab28fb22eac9aa49401ac436a3b
Bluetooth: 6lowpan: fix BDADDR_LE vs ADDR_LE_DEV address type confusion

Bluetooth 6lowpan.c confuses BDADDR_LE and ADDR_LE_DEV address types,
e.g. debugfs "connect" command takes the former, and "disconnect" and
"connect" to already connected device take the latter.  This is due to
using same value both for l2cap_chan_connect and hci_conn_hash_lookup_le
which take different dst_type values.

Fix address type passed to hci_conn_hash_lookup_le().

Retain the debugfs API difference between "connect" and "disconnect"
commands since it's been like this since 2015 and nobody apparently
complained.

Fixes: f5ad4ffceba0 ("Bluetooth: 6lowpan: Use hci_conn_hash_lookup_le() when possible")
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/6lowpan.c