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/a4430354 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a4430354 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a4430354 Branch: refs/heads/master Commit: a4430354b14e932312210adcf6b2830070abb9cd Parents: eb576bc Author: Åukasz Rymanowski <[email protected]> Authored: Thu Feb 2 11:32:25 2017 +0100 Committer: Åukasz Rymanowski <[email protected]> Committed: Fri Mar 3 12:40:42 2017 +0100 ---------------------------------------------------------------------- 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/a4430354/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; }
