|
@@ -3021,7 +3021,7 @@ static inline int l2cap_information_req(struct l2cap_conn *conn, struct l2cap_cm
|
|
struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) buf;
|
|
struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) buf;
|
|
rsp->type = cpu_to_le16(L2CAP_IT_FIXED_CHAN);
|
|
rsp->type = cpu_to_le16(L2CAP_IT_FIXED_CHAN);
|
|
rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS);
|
|
rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS);
|
|
- memcpy(buf + 4, l2cap_fixed_chan, 8);
|
|
|
|
|
|
+ memcpy(rsp->data, l2cap_fixed_chan, sizeof(l2cap_fixed_chan));
|
|
l2cap_send_cmd(conn, cmd->ident,
|
|
l2cap_send_cmd(conn, cmd->ident,
|
|
L2CAP_INFO_RSP, sizeof(buf), buf);
|
|
L2CAP_INFO_RSP, sizeof(buf), buf);
|
|
} else {
|
|
} else {
|