You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ry...@apache.org on 2020/03/07 00:09:32 UTC

[mynewt-nimble] 01/11: nimble/l2cap: Fix searching channel by dcid

This is an automated email from the ASF dual-hosted git repository.

rymek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit 531c49e31a801dc2a0ce8ae10f97fae7c0c3aac7
Author: Ɓukasz Rymanowski <lu...@codecoup.pl>
AuthorDate: Mon Feb 10 14:30:18 2020 +0100

    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.
---
 nimble/host/src/ble_hs_conn.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/nimble/host/src/ble_hs_conn.c b/nimble/host/src/ble_hs_conn.c
index ebed9ce..fa75a09 100644
--- a/nimble/host/src/ble_hs_conn.c
+++ b/nimble/host/src/ble_hs_conn.c
@@ -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;