diff options
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r-- | net/bluetooth/a2mp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index efcd108822c4..f986b9968bdb 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
@@ -235,7 +235,7 @@ static int a2mp_discover_rsp(struct amp_mgr *mgr, struct sk_buff *skb, | |||
235 | BT_DBG("chan %p state %s", chan, | 235 | BT_DBG("chan %p state %s", chan, |
236 | state_to_string(chan->state)); | 236 | state_to_string(chan->state)); |
237 | 237 | ||
238 | if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) | 238 | if (chan->scid == L2CAP_CID_A2MP) |
239 | continue; | 239 | continue; |
240 | 240 | ||
241 | l2cap_chan_lock(chan); | 241 | l2cap_chan_lock(chan); |
@@ -726,7 +726,11 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn, bool locked) | |||
726 | 726 | ||
727 | BT_DBG("chan %p", chan); | 727 | BT_DBG("chan %p", chan); |
728 | 728 | ||
729 | chan->chan_type = L2CAP_CHAN_CONN_FIX_A2MP; | 729 | chan->chan_type = L2CAP_CHAN_FIXED; |
730 | chan->scid = L2CAP_CID_A2MP; | ||
731 | chan->dcid = L2CAP_CID_A2MP; | ||
732 | chan->omtu = L2CAP_A2MP_DEFAULT_MTU; | ||
733 | chan->imtu = L2CAP_A2MP_DEFAULT_MTU; | ||
730 | chan->flush_to = L2CAP_DEFAULT_FLUSH_TO; | 734 | chan->flush_to = L2CAP_DEFAULT_FLUSH_TO; |
731 | 735 | ||
732 | chan->ops = &a2mp_chan_ops; | 736 | chan->ops = &a2mp_chan_ops; |