You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by we...@apache.org on 2016/08/11 21:27:50 UTC

[50/50] [abbrv] incubator-mynewt-core git commit: BLE Host - Allow MTU to be checked for unconn peer

BLE Host - Allow MTU to be checked for unconn peer

A previous commit (8ec1b8d9aa8b33a1a26e0d47841331870e97cd88) went a
little overboard in assuming a peer is connected.  Some code checks a
peer's MTU without knowing if the peer is connected.  A return value of
0 indicates the peer is not connected.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/a13dd641
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a13dd641
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a13dd641

Branch: refs/heads/phyrx_no_mbuf
Commit: a13dd6410794e47800f7c5c03beb7c5f950ff701
Parents: 8e95fbe
Author: Christopher Collins <cc...@apache.org>
Authored: Wed Aug 10 17:30:21 2016 -0700
Committer: William San Filippo <wi...@runtime.io>
Committed: Thu Aug 11 14:26:27 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/ble_att.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a13dd641/net/nimble/host/src/ble_att.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_att.c b/net/nimble/host/src/ble_att.c
index d5160d0..29e359a 100644
--- a/net/nimble/host/src/ble_att.c
+++ b/net/nimble/host/src/ble_att.c
@@ -147,8 +147,8 @@ void
 ble_att_conn_chan_find(uint16_t conn_handle, struct ble_hs_conn **out_conn,
                        struct ble_l2cap_chan **out_chan)
 {
-    ble_hs_misc_conn_chan_find_reqd(conn_handle, BLE_L2CAP_CID_ATT,
-                                    out_conn, out_chan);
+    ble_hs_misc_conn_chan_find(conn_handle, BLE_L2CAP_CID_ATT,
+                               out_conn, out_chan);
 }
 
 void