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 <szymon.janc@codecoup.pl>
This commit is contained in:
parent
f445cb9a7e
commit
5f16b9ce83
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ static void disconnected_cb(struct bt_l2cap_chan *l2cap_chan)
|
|||
}
|
||||
}
|
||||
|
||||
chan->in_use = false;
|
||||
|
||||
tester_send(BTP_SERVICE_ID_L2CAP, L2CAP_EV_DISCONNECTED,
|
||||
CONTROLLER_INDEX, (uint8_t *) &ev, sizeof(ev));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue