diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/l2cap_sock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index f401592e5837..e4cae72895a7 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c | |||
@@ -125,6 +125,9 @@ static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) | |||
125 | goto done; | 125 | goto done; |
126 | } | 126 | } |
127 | 127 | ||
128 | bacpy(&chan->src, &la.l2_bdaddr); | ||
129 | chan->src_type = la.l2_bdaddr_type; | ||
130 | |||
128 | if (la.l2_cid) | 131 | if (la.l2_cid) |
129 | err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); | 132 | err = l2cap_add_scid(chan, __le16_to_cpu(la.l2_cid)); |
130 | else | 133 | else |
@@ -156,9 +159,6 @@ static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) | |||
156 | break; | 159 | break; |
157 | } | 160 | } |
158 | 161 | ||
159 | bacpy(&chan->src, &la.l2_bdaddr); | ||
160 | chan->src_type = la.l2_bdaddr_type; | ||
161 | |||
162 | if (chan->psm && bdaddr_type_is_le(chan->src_type)) | 162 | if (chan->psm && bdaddr_type_is_le(chan->src_type)) |
163 | chan->mode = L2CAP_MODE_LE_FLOWCTL; | 163 | chan->mode = L2CAP_MODE_LE_FLOWCTL; |
164 | 164 | ||