aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/a2mp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-05 14:47:44 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-06 04:23:39 -0400
commit6ed971ca4f6bd96e26b3166cb5a94f7f8158fe77 (patch)
tree77e17e15e41e9eea1167295dddd6fd3b3334506a /net/bluetooth/a2mp.c
parentece6912648da3fcf257a40774e3aad531c3e5fac (diff)
Bluetooth: Use explicit AMP controller id value for BR/EDR
The special AMP controller id 0 is reserved for the BR/EDR controller that has the main link. It is a fixed value and so use a constant for this throughout the code to make it more visible when the handling is for the BR/EDR channel or when it is for the AMP channel. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c
index b2ef3d392a0e..6d62d3140cf8 100644
--- a/net/bluetooth/a2mp.c
+++ b/net/bluetooth/a2mp.c
@@ -77,7 +77,7 @@ u8 __next_ident(struct amp_mgr *mgr)
77 77
78static inline void __a2mp_cl_bredr(struct a2mp_cl *cl) 78static inline void __a2mp_cl_bredr(struct a2mp_cl *cl)
79{ 79{
80 cl->id = 0; 80 cl->id = AMP_ID_BREDR;
81 cl->type = AMP_TYPE_BREDR; 81 cl->type = AMP_TYPE_BREDR;
82 cl->status = 1; 82 cl->status = 1;
83} 83}
@@ -216,7 +216,7 @@ static int a2mp_discover_rsp(struct amp_mgr *mgr, struct sk_buff *skb,
216 BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type, 216 BT_DBG("Remote AMP id %d type %d status %d", cl->id, cl->type,
217 cl->status); 217 cl->status);
218 218
219 if (cl->id != HCI_BREDR_ID && cl->type == HCI_AMP) { 219 if (cl->id != AMP_ID_BREDR && cl->type == HCI_AMP) {
220 struct a2mp_info_req req; 220 struct a2mp_info_req req;
221 221
222 found = true; 222 found = true;