From 1a07a137278ce4e430c1dcda040f27ff0cb7e58f Mon Sep 17 00:00:00 2001 From: Yulong Date: Sat, 30 Sep 2017 04:05:21 -0400 Subject: [PATCH] component/bt: Change the 0x04 to Macro BTA_LE_AUTH_REQ_MITM. --- components/bt/bluedroid/btif/bta_dm_co.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/bluedroid/btif/bta_dm_co.c b/components/bt/bluedroid/btif/bta_dm_co.c index 5d95ba9c1..2c4ec22ae 100644 --- a/components/bt/bluedroid/btif/bta_dm_co.c +++ b/components/bt/bluedroid/btif/bta_dm_co.c @@ -442,7 +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. */ - *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 & BTA_LE_AUTH_REQ_MITM) | ((*p_auth_req) & BTA_LE_AUTH_REQ_MITM); if (bte_appl_cfg.ble_io_cap <= 4) { *p_io_cap = bte_appl_cfg.ble_io_cap;