Loading system/conf/bt_stack.conf +3 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,9 @@ TRC_HID_DEV=2 # Start EATT without validation Server Supported Features #PTS_ConnectEattUncondictionally=true # Start EATT on unecrypted link #PTS_ConnectEattUnencrypted=true # Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors #PTS_DisableSDPOnLEPair=true Loading system/internal_include/stack_config.h +1 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ typedef struct { int (*get_pts_smp_failure_case)(void); bool (*get_pts_force_eatt_for_notifications)(void); bool (*get_pts_connect_eatt_unconditionally)(void); bool (*get_pts_connect_eatt_before_encryption)(void); config_t* (*get_all)(void); } stack_config_t; Loading system/main/stack_config.cc +7 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ const char* PTS_SMP_FAILURE_CASE_KEY = "PTS_SmpFailureCase"; const char* PTS_FORCE_EATT_FOR_NOTIFICATIONS = "PTS_ForceEattForNotifications"; const char* PTS_CONNECT_EATT_UNCONDITIONALLY = "PTS_ConnectEattUncondictionally"; const char* PTS_CONNECT_EATT_UNENCRYPTED = "PTS_ConnectEattUnencrypted"; static std::unique_ptr<config_t> config; } // namespace Loading Loading @@ -123,6 +124,11 @@ static bool get_pts_connect_eatt_unconditionally(void) { PTS_CONNECT_EATT_UNCONDITIONALLY, false); } static bool get_pts_connect_eatt_before_encryption(void) { return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_CONNECT_EATT_UNENCRYPTED, false); } static config_t* get_all(void) { return config.get(); } const stack_config_t interface = {get_trace_config_enabled, Loading @@ -134,6 +140,7 @@ const stack_config_t interface = {get_trace_config_enabled, get_pts_smp_failure_case, get_pts_force_eatt_for_notifications, get_pts_connect_eatt_unconditionally, get_pts_connect_eatt_before_encryption, get_all}; const stack_config_t* stack_config_get_interface(void) { return &interface; } system/profile/avrcp/tests/avrcp_device_fuzz/avrcp_device_fuzz.cc +2 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; void Callback(uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {} Loading system/profile/avrcp/tests/avrcp_device_test.cc +2 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; // TODO (apanicke): All the tests below are just basic positive unit tests. // Add more tests to increase code coverage. Loading Loading
system/conf/bt_stack.conf +3 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,9 @@ TRC_HID_DEV=2 # Start EATT without validation Server Supported Features #PTS_ConnectEattUncondictionally=true # Start EATT on unecrypted link #PTS_ConnectEattUnencrypted=true # Disable BR/EDR discovery after LE pairing to avoid cross key derivation errors #PTS_DisableSDPOnLEPair=true Loading
system/internal_include/stack_config.h +1 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ typedef struct { int (*get_pts_smp_failure_case)(void); bool (*get_pts_force_eatt_for_notifications)(void); bool (*get_pts_connect_eatt_unconditionally)(void); bool (*get_pts_connect_eatt_before_encryption)(void); config_t* (*get_all)(void); } stack_config_t; Loading
system/main/stack_config.cc +7 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ const char* PTS_SMP_FAILURE_CASE_KEY = "PTS_SmpFailureCase"; const char* PTS_FORCE_EATT_FOR_NOTIFICATIONS = "PTS_ForceEattForNotifications"; const char* PTS_CONNECT_EATT_UNCONDITIONALLY = "PTS_ConnectEattUncondictionally"; const char* PTS_CONNECT_EATT_UNENCRYPTED = "PTS_ConnectEattUnencrypted"; static std::unique_ptr<config_t> config; } // namespace Loading Loading @@ -123,6 +124,11 @@ static bool get_pts_connect_eatt_unconditionally(void) { PTS_CONNECT_EATT_UNCONDITIONALLY, false); } static bool get_pts_connect_eatt_before_encryption(void) { return config_get_bool(*config, CONFIG_DEFAULT_SECTION, PTS_CONNECT_EATT_UNENCRYPTED, false); } static config_t* get_all(void) { return config.get(); } const stack_config_t interface = {get_trace_config_enabled, Loading @@ -134,6 +140,7 @@ const stack_config_t interface = {get_trace_config_enabled, get_pts_smp_failure_case, get_pts_force_eatt_for_notifications, get_pts_connect_eatt_unconditionally, get_pts_connect_eatt_before_encryption, get_all}; const stack_config_t* stack_config_get_interface(void) { return &interface; }
system/profile/avrcp/tests/avrcp_device_fuzz/avrcp_device_fuzz.cc +2 −1 Original line number Diff line number Diff line Loading @@ -58,7 +58,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; void Callback(uint8_t, bool, std::unique_ptr<::bluetooth::PacketBuilder>) {} Loading
system/profile/avrcp/tests/avrcp_device_test.cc +2 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,8 @@ const stack_config_t interface = {nullptr, get_pts_avrcp_test, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr}; nullptr, nullptr, nullptr}; // TODO (apanicke): All the tests below are just basic positive unit tests. // Add more tests to increase code coverage. Loading