This closes #190. Merge remote-tracking branch 'rymanluk/l2cap_coc' into develop
* rymanluk/l2cap_coc: (25 commits) nimble/l2cap: Add initial credits calculations nimble/l2cap: Improve L2CAP LE CoC connection handling nimble/l2cap: Fix hanlding broken ACL during L2CAP procedure nimble/l2cap: Fix for possible memory leak nimble/l2cap: Handle REJECT CMD on L2CAP LE CoC connection create req nibmle/l2cap: Clear LE CoC channel on ACL drop nimble/l2cap: Add suppport to send data over L2CAP LE CoC nimble/l2cap: Add helper to clean L2CAP LE CoC channel nimble/l2cap: Add handling receiving SDU over L2CAP LE CoC nimble/l2cap: Add LE credits update handling nimble/l2cap: Remove not needed **om from ble_l2cap_rx_fn nimble/l2cap: Make ble_l2cap_chan available in ble_l2cap_rx_fn nimble/l2cap: Remove not needed function ble_l2cap_sig_init_cmd nimble/l2cap: Refactor handling L2CAP reject command nimble/l2cap: Fix handling bad data in L2CAP update parameters response nimble/l2cap: Add helper to create L2CAP channel for LE CoC nimble/l2cap: Refactor update parameters handling nimble/l2cap: Fix L2CAP LE CoC disconnection handling nimble/l2cap: Memset response in L2CAP LE CoC connect request nimble/l2cap: Fix handling scid/dcid in the channel. ... 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/b2ea1dc2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/b2ea1dc2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/b2ea1dc2 Branch: refs/heads/develop Commit: b2ea1dc2caeb0706bad7d30e83488f48b56e1a3f Parents: e324152 750707b Author: Christopher Collins <[email protected]> Authored: Fri Mar 3 09:18:06 2017 -0800 Committer: Christopher Collins <[email protected]> Committed: Fri Mar 3 09:18:06 2017 -0800 ---------------------------------------------------------------------- apps/bletiny/src/bletiny.h | 1 + apps/bletiny/src/cmd.c | 54 +++- apps/bletiny/src/main.c | 118 ++++++- net/nimble/host/include/host/ble_l2cap.h | 1 + net/nimble/host/src/ble_att.c | 19 +- net/nimble/host/src/ble_att_priv.h | 2 +- net/nimble/host/src/ble_gap.c | 3 +- net/nimble/host/src/ble_hs_conn.c | 32 +- net/nimble/host/src/ble_hs_conn_priv.h | 6 +- net/nimble/host/src/ble_hs_hci_evt.c | 8 +- net/nimble/host/src/ble_hs_misc.c | 2 +- net/nimble/host/src/ble_l2cap.c | 33 +- net/nimble/host/src/ble_l2cap_coc.c | 383 ++++++++++++++++++++++- net/nimble/host/src/ble_l2cap_coc_priv.h | 21 +- net/nimble/host/src/ble_l2cap_priv.h | 11 +- net/nimble/host/src/ble_l2cap_sig.c | 269 ++++++++++------ net/nimble/host/src/ble_l2cap_sig_cmd.c | 168 +--------- net/nimble/host/src/ble_l2cap_sig_priv.h | 26 +- net/nimble/host/src/ble_sm.c | 31 +- net/nimble/host/src/ble_sm_priv.h | 2 +- net/nimble/host/test/src/ble_hs_conn_test.c | 6 +- net/nimble/host/test/src/ble_hs_test_util.c | 50 ++- net/nimble/host/test/src/ble_l2cap_test.c | 22 +- 23 files changed, 912 insertions(+), 356 deletions(-) ----------------------------------------------------------------------
