nimble/l2cap: Fix searching channel by dcid

Source CIDs are ordered in the list, but dcid not, therefore when
searching by dcid we cannot assume the order.
This commit is contained in:
Łukasz Rymanowski
2020-03-07 01:09:21 +01:00
parent e14ce24db3
commit 531c49e31a
-3
View File
@@ -83,9 +83,6 @@ ble_hs_conn_chan_find_by_dcid(struct ble_hs_conn *conn, uint16_t cid)
if (chan->dcid == cid) {
return chan;
}
if (chan->dcid > cid) {
return NULL;
}
}
return NULL;