mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-07 02:27:56 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user