system/bt
リビジョン | 3e7b2389b3de374620bf2f5f8107a76f74ffbf24 (tree) |
---|---|
日時 | 2019-06-03 14:30:02 |
作者 | TreeHugger Robot <treehugger-gerrit@goog...> |
コミッター | Android (Google) Code Review |
Merge "DO NOT MERGE: btif: require pairing dialog for JustWorks SSP" into qt-dev
@@ -926,7 +926,6 @@ static void btif_dm_pin_req_evt(tBTA_DM_PIN_REQ* p_pin_req) { | ||
926 | 926 | static void btif_dm_ssp_cfm_req_evt(tBTA_DM_SP_CFM_REQ* p_ssp_cfm_req) { |
927 | 927 | bt_bdname_t bd_name; |
928 | 928 | uint32_t cod; |
929 | - bool is_incoming = !(pairing_cb.state == BT_BOND_STATE_BONDING); | |
930 | 929 | int dev_type; |
931 | 930 | |
932 | 931 | BTIF_TRACE_DEBUG("%s", __func__); |
@@ -971,28 +970,6 @@ static void btif_dm_ssp_cfm_req_evt(tBTA_DM_SP_CFM_REQ* p_ssp_cfm_req) { | ||
971 | 970 | |
972 | 971 | pairing_cb.is_ssp = true; |
973 | 972 | |
974 | - /* If JustWorks auto-accept */ | |
975 | - if (p_ssp_cfm_req->just_works) { | |
976 | - /* Pairing consent for JustWorks needed if: | |
977 | - * 1. Incoming (non-temporary) pairing is detected AND | |
978 | - * 2. local IO capabilities are DisplayYesNo AND | |
979 | - * 3. remote IO capabiltiies are DisplayOnly or NoInputNoOutput; | |
980 | - */ | |
981 | - if (is_incoming && pairing_cb.bond_type != BOND_TYPE_TEMPORARY && | |
982 | - ((p_ssp_cfm_req->loc_io_caps == HCI_IO_CAP_DISPLAY_YESNO) && | |
983 | - (p_ssp_cfm_req->rmt_io_caps == HCI_IO_CAP_DISPLAY_ONLY || | |
984 | - p_ssp_cfm_req->rmt_io_caps == HCI_IO_CAP_NO_IO))) { | |
985 | - BTIF_TRACE_EVENT( | |
986 | - "%s: User consent needed for incoming pairing request. loc_io_caps: " | |
987 | - "%d, rmt_io_caps: %d", | |
988 | - __func__, p_ssp_cfm_req->loc_io_caps, p_ssp_cfm_req->rmt_io_caps); | |
989 | - } else { | |
990 | - BTIF_TRACE_EVENT("%s: Auto-accept JustWorks pairing", __func__); | |
991 | - btif_dm_ssp_reply(&bd_addr, BT_SSP_VARIANT_CONSENT, true, 0); | |
992 | - return; | |
993 | - } | |
994 | - } | |
995 | - | |
996 | 973 | cod = devclass2uint(p_ssp_cfm_req->dev_class); |
997 | 974 | |
998 | 975 | if (cod == 0) { |