From 1211a4ba9a637ac1775a19dec5bc0db996641968 Mon Sep 17 00:00:00 2001 From: lee Date: Thu, 17 Mar 2022 14:26:20 +0800 Subject: [PATCH] fixed a1483c0 from https://gitee.com/lilong32/communication_bluetooth/pulls/113 modify br sec Signed-off-by: lee --- services/bluetooth_standard/stack/src/gap/gap_br_sec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/bluetooth_standard/stack/src/gap/gap_br_sec.c b/services/bluetooth_standard/stack/src/gap/gap_br_sec.c index 5b9b814d..ab9a3e56 100644 --- a/services/bluetooth_standard/stack/src/gap/gap_br_sec.c +++ b/services/bluetooth_standard/stack/src/gap/gap_br_sec.c @@ -1637,8 +1637,8 @@ void GapOnEncryptionChangeEvent(const HciEncryptionChangeEventParam *eventParam) } else { GapUpdateSecurityRequest(devInfo, GAP_SEC_EVENT_ENC_FAILED, eventParam->status); } - if (devInfo->status == GAP_DEV_SEC_STATUS_ACTION && devInfo->actionReq->status != GAP_SEC_REQ_STATUS_ACTION) { - devInfo->actionReq = NULL; + devInfo->actionReq = NULL; + if (devInfo->status == GAP_DEV_SEC_STATUS_ACTION) { devInfo->status = GAP_DEV_SEC_STATUS_WAIT_DISC; } } -- Gitee