From b78da3b715e116c369d07f79838d9ff40bf0abb4 Mon Sep 17 00:00:00 2001 From: baohongde Date: Fri, 29 Sep 2017 18:46:28 +0800 Subject: [PATCH] component/bt: Fix bug of set sec properity error --- components/bt/bluedroid/btif/bta_dm_co.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/bt/bluedroid/btif/bta_dm_co.c b/components/bt/bluedroid/btif/bta_dm_co.c index 1feb6c332..5d95ba9c1 100644 --- a/components/bt/bluedroid/btif/bta_dm_co.c +++ b/components/bt/bluedroid/btif/bta_dm_co.c @@ -442,9 +442,7 @@ void bta_dm_co_ble_io_req(BD_ADDR bd_addr, tBTA_IO_CAP *p_io_cap, /* *p_auth_req by default is FALSE for devices with NoInputNoOutput; TRUE for other devices. */ - if (bte_appl_cfg.ble_auth_req) { - *p_auth_req = bte_appl_cfg.ble_auth_req | (bte_appl_cfg.ble_auth_req & 0x04) | ((*p_auth_req) & 0x04); - } + *p_auth_req = bte_appl_cfg.ble_auth_req | (bte_appl_cfg.ble_auth_req & 0x04) | ((*p_auth_req) & 0x04); if (bte_appl_cfg.ble_io_cap <= 4) { *p_io_cap = bte_appl_cfg.ble_io_cap;