forked from Minki/linux
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 <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
2210246cf5
commit
23b9003b9a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user