mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
Bluetooth: Check for non BR/EDR controller in AMP discover response
Within the AMP discover response, all controllers that are not the primary BR/EDR controller are valid. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
1df7b17a87
commit
a646bd8194
@ -210,7 +210,7 @@ static int a2mp_discover_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
|
|||||||
BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type,
|
BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type,
|
||||||
cl->status);
|
cl->status);
|
||||||
|
|
||||||
if (cl->id != AMP_ID_BREDR && cl->type == HCI_AMP) {
|
if (cl->id != AMP_ID_BREDR && cl->type != AMP_TYPE_BREDR) {
|
||||||
struct a2mp_info_req req;
|
struct a2mp_info_req req;
|
||||||
|
|
||||||
found = true;
|
found = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user