summaryrefslogtreecommitdiff
path: root/emulator
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-11 14:50:23 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-04-13 14:12:28 -0700
commit1967b5311525846d94fca3a2a73f9efc743b0572 (patch)
tree2ddbeb524cf51f80d06cbf270c8d3a65d644c838 /emulator
parent7903bbe1005bd05f542f64cf6af251f0f648d3ac (diff)
downloadbluez-1967b5311525846d94fca3a2a73f9efc743b0572.tar.gz
btdev: Fix not cleanup ssp_status and ssp_auto_complete
This resets ssp_status and ssp_auto_complete flags on auth_complete.
Diffstat (limited to 'emulator')
-rw-r--r--emulator/btdev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/btdev.c b/emulator/btdev.c
index f70fa9136..ccfaed36b 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -1366,6 +1366,11 @@ static void auth_complete(struct btdev_conn *conn, uint8_t status)
ev.status = status;
send_event(conn->dev, BT_HCI_EVT_AUTH_COMPLETE, &ev, sizeof(ev));
+
+ conn->dev->ssp_status = 0;
+ conn->dev->ssp_auth_complete = false;
+ conn->link->dev->ssp_status = 0;
+ conn->link->dev->ssp_auth_complete = false;
}
static int cmd_link_key_reply_complete(struct btdev *dev, const void *data,