OSDN Git Service

Add main/shim/acl_legacy_interface::btm_acl_role_changed
authorChris Manton <cmanton@google.com>
Thu, 22 Oct 2020 17:32:05 +0000 (10:32 -0700)
committerChris Manton <cmanton@google.com>
Thu, 22 Oct 2020 20:46:07 +0000 (13:46 -0700)
Bug: 166280067
Tag: #refactor
Test: Pair classic device

Change-Id: Ie4f2c31ed449a5bf9353efb3ab640cbbbfab211f

main/shim/acl_legacy_interface.cc

index 75ca513..d9a8b50 100644 (file)
@@ -58,7 +58,7 @@ const acl_interface_t GetAclInterface() {
       .link.classic.on_read_remote_extended_features_complete = nullptr,
       .link.classic.on_read_rssi_complete = nullptr,
       .link.classic.on_read_transmit_power_level_complete = nullptr,
-      .link.classic.on_role_change = nullptr,
+      .link.classic.on_role_change = btm_acl_role_changed,
       .link.classic.on_role_discovery_complete = nullptr,
 
       .link.le.on_connection_update = nullptr,