Skip to content

Commit 5f16b9c

Browse files
sjanccfriedt
authored andcommitted
tests: bluetooth: tester: Fix not marking chan as unused on disconnect
This fix not being able to re-connect channel after disconnect. Signed-off-by: Szymon Janc <[email protected]>
1 parent f445cb9 commit 5f16b9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/bluetooth/tester/src/l2cap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ static void disconnected_cb(struct bt_l2cap_chan *l2cap_chan)
133133
}
134134
}
135135

136+
chan->in_use = false;
137+
136138
tester_send(BTP_SERVICE_ID_L2CAP, L2CAP_EV_DISCONNECTED,
137139
CONTROLLER_INDEX, (uint8_t *) &ev, sizeof(ev));
138140
}

0 commit comments

Comments
 (0)