Bluetooth: Fix controller list for AMP discover response
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/10 Bluetooth: Fix controller list for AMP discover response
The AMP discover response should list exactly one BR/EDR controller and ignore all other BR/EDR controller.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/a2mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/a2mp.c +1 -1
@@ -92,7 +92,7 @@ static void __a2mp_add_cl(struct amp_mgr *mgr, struct a2mp_cl *cl, u8 num_ctrl)list_for_each_entry (hdev, &hci_dev_list, list) {/* Iterate through AMP controllers */ -if (hdev->id ==HCI_BREDR_ID ) +if (hdev->dev_type !=HCI_AMP )continue ;/* Starting from second entry */
Signature · 1 line
1.8.3.1
Hi Marcel,
Quoted 7 lines · Marcel Holtmann
The AMP discover response should list exactly one BR/EDR controller and ignore all other BR/EDR controller.
Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/a2mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
All patches in this set have been applied to bluetooth-next. Thanks.
Johan