LOG_INFO("UNIMPLEMENTED %s", __func__);
}
void Link::OnRoleDiscoveryComplete(hci::Role current_role) {
- LOG_INFO("UNIMPLEMENTED %s current_role:%s", __func__, hci::RoleText(current_role).c_str());
+ role_ = current_role;
}
void Link::OnReadLinkPolicySettingsComplete(uint16_t link_policy_settings) {
LOG_INFO("UNIMPLEMENTED %s link_policy_settings:0x%x", __func__, link_policy_settings);
return acl_handle_;
}
+ hci::Role GetRole() const {
+ return role_;
+ }
+
private:
friend class DumpsysHelper;
void connect_to_pending_dynamic_channels();
ClassicSignallingManager signalling_manager_;
uint16_t acl_handle_;
Mtu remote_connectionless_mtu_ = kMinimumClassicMtu;
+ hci::Role role_ = hci::Role::CENTRAL;
bool remote_extended_feature_received_ = false;
bool remote_supports_ertm_ = false;
bool remote_supports_fcs_ = false;
return acl_handle_;
}
+ hci::Role GetRole() override {
+ return link_manager_->GetLink(remote_)->GetRole();
+ }
+
os::Handler* handler_;
LinkManager* link_manager_;
hci::Address remote_;
virtual void EnsureEncrypted() = 0;
virtual uint16_t GetAclHandle() = 0;
+
+ virtual hci::Role GetRole() {
+ return hci::Role::CENTRAL;
+ }
};
class LinkSecurityInterfaceListener {