Towards loggable code
Bug:
163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: act.py -tc BleCocTest
Change-Id: Ie70a5fecea4909a4755f98b9393843371009a2a3
int acl_ind = btm_pm_find_acl_ind(remote_bda);
if (acl_ind == MAX_L2CAP_LINKS) {
- LOG_ERROR("addr %s is unknown", remote_bda.ToString().c_str());
- return (BTM_UNKNOWN_ADDR);
+ if (btm_pm_is_le_link(remote_bda)) {
+ return BTM_MODE_UNSUPPORTED;
+ }
+ LOG_ERROR("br_edr acl addr %s is unknown", remote_bda.ToString().c_str());
+ return BTM_UNKNOWN_ADDR;
}
// per ACL link