Commit 56c712d2 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Anas Nashif
Browse files

Bluetooth: L2CAP: Fix invalid BT_L2CAP_ECRED_CONN_RSP



For errors that means all connections have been refused there is no need
to add dcids since none will be valid.

Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent ab2476d8
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1169,10 +1169,6 @@ static void le_ecred_conn_req(struct bt_l2cap *l2cap, uint8_t ident,
	}

response:
	if (!i) {
		i = buf->len / sizeof(scid);
	}

	buf = l2cap_create_le_sig_pdu(buf, BT_L2CAP_ECRED_CONN_RSP, ident,
				      sizeof(*rsp) + (sizeof(scid) * i));