From: Marcel Holtmann Date: Sat, 5 Oct 2013 18:47:40 +0000 (-0700) Subject: Bluetooth: Fix controller list for AMP discover response X-Git-Tag: MMI-PSA29.97-13-9~12877^2~3^2^2~364^2~133 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=23b9003b9ae8dac111460597ba683844e9195e4e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index 17f33a62f6db..eb0f05e09cd5 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c @@ -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 */