Loading system/stack/btm/btm_sec.cc +24 −24 Original line number Diff line number Diff line Loading @@ -2356,7 +2356,17 @@ void btm_sec_rmt_name_request_complete(const RawAddress* p_bd_addr, if (!p_bd_name) p_bd_name = (const uint8_t*)""; if (p_dev_rec != nullptr) { if (p_dev_rec == nullptr) { LOG_DEBUG( "Remote read request complete for unknown device pairing_state:%s " "status:%s name:%s", btm_pair_state_descr(btm_sec_cb.pairing_state), hci_status_code_text(status).c_str(), p_bd_name); call_registered_rmt_name_callbacks(p_bd_addr, nullptr, nullptr, status); return; } old_sec_state = p_dev_rec->sec_state; if (status == HCI_SUCCESS) { LOG_DEBUG( Loading Loading @@ -2389,19 +2399,9 @@ void btm_sec_rmt_name_request_complete(const RawAddress* p_bd_addr, /* Notify all clients waiting for name to be resolved */ call_registered_rmt_name_callbacks(p_bd_addr, p_dev_rec->dev_class, p_dev_rec->sec_bd_name, status); } else { LOG_DEBUG( "Remote read request complete for unknown device pairing_state:%s " "status:%s name:%s", btm_pair_state_descr(btm_sec_cb.pairing_state), hci_status_code_text(status).c_str(), p_bd_name); call_registered_rmt_name_callbacks(p_bd_addr, nullptr, nullptr, status); return; } /* If we were delaying asking UI for a PIN because name was not resolved, ask * now */ /* If we were delaying asking UI for a PIN because name was not resolved, * ask now */ if ((btm_sec_cb.pairing_state == BTM_PAIR_STATE_WAIT_LOCAL_PIN) && p_bd_addr && (btm_sec_cb.pairing_bda == *p_bd_addr)) { LOG_VERBOSE( Loading Loading
system/stack/btm/btm_sec.cc +24 −24 Original line number Diff line number Diff line Loading @@ -2356,7 +2356,17 @@ void btm_sec_rmt_name_request_complete(const RawAddress* p_bd_addr, if (!p_bd_name) p_bd_name = (const uint8_t*)""; if (p_dev_rec != nullptr) { if (p_dev_rec == nullptr) { LOG_DEBUG( "Remote read request complete for unknown device pairing_state:%s " "status:%s name:%s", btm_pair_state_descr(btm_sec_cb.pairing_state), hci_status_code_text(status).c_str(), p_bd_name); call_registered_rmt_name_callbacks(p_bd_addr, nullptr, nullptr, status); return; } old_sec_state = p_dev_rec->sec_state; if (status == HCI_SUCCESS) { LOG_DEBUG( Loading Loading @@ -2389,19 +2399,9 @@ void btm_sec_rmt_name_request_complete(const RawAddress* p_bd_addr, /* Notify all clients waiting for name to be resolved */ call_registered_rmt_name_callbacks(p_bd_addr, p_dev_rec->dev_class, p_dev_rec->sec_bd_name, status); } else { LOG_DEBUG( "Remote read request complete for unknown device pairing_state:%s " "status:%s name:%s", btm_pair_state_descr(btm_sec_cb.pairing_state), hci_status_code_text(status).c_str(), p_bd_name); call_registered_rmt_name_callbacks(p_bd_addr, nullptr, nullptr, status); return; } /* If we were delaying asking UI for a PIN because name was not resolved, ask * now */ /* If we were delaying asking UI for a PIN because name was not resolved, * ask now */ if ((btm_sec_cb.pairing_state == BTM_PAIR_STATE_WAIT_LOCAL_PIN) && p_bd_addr && (btm_sec_cb.pairing_bda == *p_bd_addr)) { LOG_VERBOSE( Loading