Loading system/stack/btm/btm_sec.cc +2 −3 Original line number Diff line number Diff line Loading @@ -4834,9 +4834,8 @@ void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported, } } // Return DEV_CLASS (uint8_t[3]) of bda // Return DEV_CLASS (uint8_t[3]) of bda. If record doesn't exist, create one. const uint8_t* btm_get_dev_class(const RawAddress& bda) { tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); if (p_dev_rec == nullptr) return nullptr; tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); return p_dev_rec->dev_class; } system/stack/btm/btm_sec.h +1 −1 Original line number Diff line number Diff line Loading @@ -779,5 +779,5 @@ void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported, bool sc_supported, bool hci_role_switch_supported); // Return DEV_CLASS (uint8_t[3]) of bda // Return DEV_CLASS (uint8_t[3]) of bda. If record doesn't exist, create one. const uint8_t* btm_get_dev_class(const RawAddress& bda); Loading
system/stack/btm/btm_sec.cc +2 −3 Original line number Diff line number Diff line Loading @@ -4834,9 +4834,8 @@ void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported, } } // Return DEV_CLASS (uint8_t[3]) of bda // Return DEV_CLASS (uint8_t[3]) of bda. If record doesn't exist, create one. const uint8_t* btm_get_dev_class(const RawAddress& bda) { tBTM_SEC_DEV_REC* p_dev_rec = btm_find_dev(bda); if (p_dev_rec == nullptr) return nullptr; tBTM_SEC_DEV_REC* p_dev_rec = btm_find_or_alloc_dev(bda); return p_dev_rec->dev_class; }
system/stack/btm/btm_sec.h +1 −1 Original line number Diff line number Diff line Loading @@ -779,5 +779,5 @@ void btm_sec_set_peer_sec_caps(uint16_t hci_handle, bool ssp_supported, bool sc_supported, bool hci_role_switch_supported); // Return DEV_CLASS (uint8_t[3]) of bda // Return DEV_CLASS (uint8_t[3]) of bda. If record doesn't exist, create one. const uint8_t* btm_get_dev_class(const RawAddress& bda);