Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/bluetooth/tester/src/bttester.h
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ struct l2cap_connect_cmd {
uint16_t psm;
uint16_t mtu;
uint8_t num;
uint8_t ecfc;
} __packed;
struct l2cap_connect_rp {
uint8_t num;
Expand Down
4 changes: 2 additions & 2 deletions tests/bluetooth/tester/src/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ static void connect(uint8_t *data, uint16_t len)
allocated_channels[i] = &chan->le.chan;
}

if (cmd->num == 1) {
if (cmd->num == 1 && cmd->ecfc == 0) {
err = bt_l2cap_chan_connect(conn, &chan->le.chan, cmd->psm);
if (err < 0) {
goto fail;
}
} else if (cmd->num > 1) {
} else if (cmd->ecfc == 1) {
#if defined(CONFIG_BT_L2CAP_ECRED)
err = bt_l2cap_ecred_chan_connect(conn, allocated_channels,
cmd->psm);
Expand Down