Loading tools/rootcanal/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -294,7 +294,6 @@ python_test_host { "test/LL/CON_/PER/*.py", "test/LL/DDI/ADV/*.py", "test/LL/DDI/SCN/*.py", "test/LMP/LIH/*.py", "test/main.py", ], data: [ Loading tools/rootcanal/config.proto +4 −1 Original line number Diff line number Diff line Loading @@ -22,8 +22,11 @@ message ControllerQuirks { optional bool send_acl_data_before_connection_complete = 1; // Configure a default value for the LE random address. optional bool has_default_random_address = 2; // Send the Role Change event before the Connection Complete event // in the case where a role switch is initiated at connection establishment. optional bool send_role_change_before_connection_complete = 3; // Send an Hardware Error event if any command is called before HCI Reset. optional bool hardware_error_before_reset = 3; optional bool hardware_error_before_reset = 4; } message Controller { Loading tools/rootcanal/model/controller/acl_connection.cc +4 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,10 @@ void AclConnection::Encrypt() { encrypted_ = true; }; bool AclConnection::IsEncrypted() const { return encrypted_; }; uint16_t AclConnection::GetLinkPolicySettings() const { return link_policy_settings_; }; void AclConnection::SetLinkPolicySettings(uint16_t settings) { link_policy_settings_ = settings; } Loading tools/rootcanal/model/controller/acl_connection.h +1 −15 Original line number Diff line number Diff line Loading @@ -26,12 +26,6 @@ namespace rootcanal { using ::bluetooth::hci::AddressWithType; enum AclConnectionState { kActiveMode, kHoldMode, kSniffMode, }; // Model the connection of a device to the controller. class AclConnection { public: Loading @@ -50,15 +44,8 @@ class AclConnection { void Encrypt(); bool IsEncrypted() const; uint16_t GetLinkPolicySettings() const; void SetLinkPolicySettings(uint16_t settings); uint16_t GetLinkPolicySettings() const { return link_policy_settings_; } bool IsRoleSwitchEnabled() const { return (link_policy_settings_ & 0x1) != 0; } bool IsHoldModeEnabled() const { return (link_policy_settings_ & 0x2) != 0; } bool IsSniffModeEnabled() const { return (link_policy_settings_ & 0x4) != 0; } AclConnectionState GetMode() const { return state_; } bluetooth::hci::Role GetRole() const; void SetRole(bluetooth::hci::Role role); Loading Loading @@ -94,7 +81,6 @@ class AclConnection { // State variables bool encrypted_{false}; uint16_t link_policy_settings_{0}; AclConnectionState state_{kActiveMode}; bluetooth::hci::Role role_{bluetooth::hci::Role::CENTRAL}; std::chrono::steady_clock::time_point last_packet_timestamp_; std::chrono::steady_clock::duration timeout_; Loading tools/rootcanal/model/controller/controller_properties.cc +1 −0 Original line number Diff line number Diff line Loading @@ -1880,6 +1880,7 @@ ControllerProperties::ControllerProperties( config.quirks().hardware_error_before_reset(); } // TODO(b/270606199): support send_acl_data_before_connection_complete // TODO(b/274476773): support send_role_change_before_connection_complete } if (!CheckSupportedFeatures()) { Loading Loading
tools/rootcanal/Android.bp +0 −1 Original line number Diff line number Diff line Loading @@ -294,7 +294,6 @@ python_test_host { "test/LL/CON_/PER/*.py", "test/LL/DDI/ADV/*.py", "test/LL/DDI/SCN/*.py", "test/LMP/LIH/*.py", "test/main.py", ], data: [ Loading
tools/rootcanal/config.proto +4 −1 Original line number Diff line number Diff line Loading @@ -22,8 +22,11 @@ message ControllerQuirks { optional bool send_acl_data_before_connection_complete = 1; // Configure a default value for the LE random address. optional bool has_default_random_address = 2; // Send the Role Change event before the Connection Complete event // in the case where a role switch is initiated at connection establishment. optional bool send_role_change_before_connection_complete = 3; // Send an Hardware Error event if any command is called before HCI Reset. optional bool hardware_error_before_reset = 3; optional bool hardware_error_before_reset = 4; } message Controller { Loading
tools/rootcanal/model/controller/acl_connection.cc +4 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,10 @@ void AclConnection::Encrypt() { encrypted_ = true; }; bool AclConnection::IsEncrypted() const { return encrypted_; }; uint16_t AclConnection::GetLinkPolicySettings() const { return link_policy_settings_; }; void AclConnection::SetLinkPolicySettings(uint16_t settings) { link_policy_settings_ = settings; } Loading
tools/rootcanal/model/controller/acl_connection.h +1 −15 Original line number Diff line number Diff line Loading @@ -26,12 +26,6 @@ namespace rootcanal { using ::bluetooth::hci::AddressWithType; enum AclConnectionState { kActiveMode, kHoldMode, kSniffMode, }; // Model the connection of a device to the controller. class AclConnection { public: Loading @@ -50,15 +44,8 @@ class AclConnection { void Encrypt(); bool IsEncrypted() const; uint16_t GetLinkPolicySettings() const; void SetLinkPolicySettings(uint16_t settings); uint16_t GetLinkPolicySettings() const { return link_policy_settings_; } bool IsRoleSwitchEnabled() const { return (link_policy_settings_ & 0x1) != 0; } bool IsHoldModeEnabled() const { return (link_policy_settings_ & 0x2) != 0; } bool IsSniffModeEnabled() const { return (link_policy_settings_ & 0x4) != 0; } AclConnectionState GetMode() const { return state_; } bluetooth::hci::Role GetRole() const; void SetRole(bluetooth::hci::Role role); Loading Loading @@ -94,7 +81,6 @@ class AclConnection { // State variables bool encrypted_{false}; uint16_t link_policy_settings_{0}; AclConnectionState state_{kActiveMode}; bluetooth::hci::Role role_{bluetooth::hci::Role::CENTRAL}; std::chrono::steady_clock::time_point last_packet_timestamp_; std::chrono::steady_clock::duration timeout_; Loading
tools/rootcanal/model/controller/controller_properties.cc +1 −0 Original line number Diff line number Diff line Loading @@ -1880,6 +1880,7 @@ ControllerProperties::ControllerProperties( config.quirks().hardware_error_before_reset(); } // TODO(b/270606199): support send_acl_data_before_connection_complete // TODO(b/274476773): support send_role_change_before_connection_complete } if (!CheckSupportedFeatures()) { Loading