diff options
author | John W. Linville <linville@tuxdriver.com> | 2014-02-24 15:04:35 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-24 15:04:35 -0500 |
commit | db18014f65f62879e70be55898be3fd68a3363a8 (patch) | |
tree | 90d5e33852753f43d76d25f8d22a64a9e5bd94e8 /net/bluetooth/a2mp.c | |
parent | c77986c78aa941af8266272841567e78b72d54cc (diff) | |
parent | 668b7b19820b0801c425d31cc27fd6f499050e5c (diff) |
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
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; |