Skip to contentSkip to conversation

Bluetooth: Fix controller list for AMP discover response

PATCH In review Marcel Holtmann 2 participants 2 messages Oct 5, 2013 – Oct 6, 2013

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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.

---
 net/bluetooth/a2mp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/a2mp.c +1 -1
index 17f33a6..eb0f05e 100644
@@ -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
#1 lore raw

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.

---
 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