diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-05 16:57:53 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-06 04:42:54 -0400 |
commit | a646bd81945b337b1cf37dea4734847947a0d9ad (patch) | |
tree | 8a75f00a348b742a2ba95a6034764aff29b7208c /net/bluetooth/a2mp.c | |
parent | 1df7b17a87b1aa4d08c461fce06226d33910bf94 (diff) |
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>
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r-- | net/bluetooth/a2mp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index 529789d81159..ad8bda3a6fd1 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
@@ -210,7 +210,7 @@ static int a2mp_discover_rsp(struct amp_mgr *mgr, struct sk_buff *skb, | |||
210 | BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type, | 210 | BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type, |
211 | cl->status); | 211 | cl->status); |
212 | 212 | ||
213 | if (cl->id != AMP_ID_BREDR && cl->type == HCI_AMP) { | 213 | if (cl->id != AMP_ID_BREDR && cl->type != AMP_TYPE_BREDR) { |
214 | struct a2mp_info_req req; | 214 | struct a2mp_info_req req; |
215 | 215 | ||
216 | found = true; | 216 | found = true; |