Skip to content

Commit 93e0cc8

Browse files
sjancnashif
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 5f4707a commit 93e0cc8

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
@@ -132,6 +132,8 @@ static void disconnected_cb(struct bt_l2cap_chan *l2cap_chan)
132132
}
133133
}
134134

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

0 commit comments

Comments
 (0)