nimble/l2cap: Fix handling bad data in L2CAP update parameters response Returning error will cause sending L2CAP REJECT on that response and this is incorrect. This patch fixes that.
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/73705b08 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/73705b08 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/73705b08 Branch: refs/heads/1_0_0_dev Commit: 73705b0855a8e53ed59ce3b6064a75a5b80f8f26 Parents: e9d7750 Author: Åukasz Rymanowski <[email protected]> Authored: Thu Feb 2 11:32:25 2017 +0100 Committer: Marko Kiiskila <[email protected]> Committed: Mon Mar 6 15:51:42 2017 -0800 ---------------------------------------------------------------------- net/nimble/host/src/ble_l2cap_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/73705b08/net/nimble/host/src/ble_l2cap_sig.c ---------------------------------------------------------------------- diff --git a/net/nimble/host/src/ble_l2cap_sig.c b/net/nimble/host/src/ble_l2cap_sig.c index d6219d3..560311d 100644 --- a/net/nimble/host/src/ble_l2cap_sig.c +++ b/net/nimble/host/src/ble_l2cap_sig.c @@ -438,7 +438,7 @@ ble_l2cap_sig_update_rsp_rx(uint16_t conn_handle, default: cb_status = BLE_HS_EBADDATA; - rc = BLE_HS_EBADDATA; + rc = 0; break; }
