Commit 7a68f3c
Bluetooth: 6lowpan: fix BDADDR_LE vs ADDR_LE_DEV address type confusion
[ Upstream commit b454505 ]
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: f5ad4ff ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 2a9ff4086c265939a2c6d667d4f76f2cb5139ce9)
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>1 parent fcc16c6 commit 7a68f3c
1 file changed
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
| 959 | + | |
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
| 963 | + | |
963 | 964 | | |
964 | 965 | | |
965 | 966 | | |
| |||
970 | 971 | | |
971 | 972 | | |
972 | 973 | | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
973 | 993 | | |
974 | 994 | | |
975 | 995 | | |
976 | 996 | | |
977 | 997 | | |
978 | 998 | | |
979 | | - | |
| 999 | + | |
980 | 1000 | | |
981 | 1001 | | |
982 | 1002 | | |
| |||
1103 | 1123 | | |
1104 | 1124 | | |
1105 | 1125 | | |
1106 | | - | |
| 1126 | + | |
1107 | 1127 | | |
1108 | 1128 | | |
1109 | 1129 | | |
| |||
1140 | 1160 | | |
1141 | 1161 | | |
1142 | 1162 | | |
1143 | | - | |
| 1163 | + | |
1144 | 1164 | | |
1145 | 1165 | | |
1146 | 1166 | | |
| |||
0 commit comments