You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/06/07 14:41:10 UTC
[03/12] incubator-mynewt-core git commit: BLE Host - Don't change enc
status on SMP timeout.
BLE Host - Don't change enc status on SMP timeout.
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/88a1ea7b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/88a1ea7b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/88a1ea7b
Branch: refs/heads/upf54
Commit: 88a1ea7bc52b1fb9fa09a56576b7fba6febfb65e
Parents: b0eebf9
Author: Christopher Collins <cc...@apache.org>
Authored: Tue Jun 7 08:07:48 2016 +0800
Committer: Christopher Collins <cc...@apache.org>
Committed: Tue Jun 7 22:40:09 2016 +0800
----------------------------------------------------------------------
net/nimble/host/src/ble_sm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/88a1ea7b/net/nimble/host/src/ble_sm.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/ble_sm.c b/net/nimble/host/src/ble_sm.c
index f4b384b..32c2583 100644
--- a/net/nimble/host/src/ble_sm.c
+++ b/net/nimble/host/src/ble_sm.c
@@ -2034,9 +2034,11 @@ ble_sm_heartbeat(void)
/* Notify application of each failure and free the corresponding procedure
* object.
+ * XXX: Mark connection as tainted; don't allow any subsequent SMP
+ * procedures without reconnect.
*/
while ((proc = STAILQ_FIRST(&exp_list)) != NULL) {
- ble_sm_enc_event(proc, BLE_HS_ETIMEOUT, 0);
+ ble_sm_enc_event(proc, BLE_HS_ETIMEOUT, BLE_SM_ENC_STATE_NO_CHANGE);
STAILQ_REMOVE_HEAD(&exp_list, next);
ble_sm_proc_free(proc);