summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-05 20:47:40 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-06 10:19:53 +0200
commit23b9003b9ae8dac111460597ba683844e9195e4e (patch)
tree073bedc3e7c521543d763086c109d3cb3dce47e4
parentBluetooth: Fix re-enabling advertising after a connection (diff)
downloadlinux-23b9003b9ae8dac111460597ba683844e9195e4e.tar.xz
linux-23b9003b9ae8dac111460597ba683844e9195e4e.zip
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>
-rw-r--r--net/bluetooth/a2mp.c2
1 files changed, 1 insertions, 1 deletions
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 */