Loading system/stack/btm/btm_ble_bgconn.cc +9 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ extern void btm_send_hci_create_connection( uint16_t conn_timeout, uint16_t min_ce_len, uint16_t max_ce_len, uint8_t phy); extern void btm_ble_create_conn_cancel(); void wl_remove_complete(uint8_t* p_data, uint16_t /* evt_len */); // Unfortunately (for now?) we have to maintain a copy of the device whitelist // on the host to determine if a device is pending to be connected or not. This Loading Loading @@ -72,7 +73,14 @@ static void background_connection_add(uint8_t addr_type, BackgroundConnection{address, addr_type, false, 0, false}; } else { BackgroundConnection* connection = &map_iter->second; if (addr_type != connection->addr_type) { LOG(INFO) << __func__ << " Addr type mismatch " << address; btsnd_hcic_ble_remove_from_white_list( connection->addr_type_in_wl, connection->address, base::Bind(&wl_remove_complete)); connection->addr_type = addr_type; connection->in_controller_wl = false; } connection->pending_removal = false; } } Loading Loading
system/stack/btm/btm_ble_bgconn.cc +9 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ extern void btm_send_hci_create_connection( uint16_t conn_timeout, uint16_t min_ce_len, uint16_t max_ce_len, uint8_t phy); extern void btm_ble_create_conn_cancel(); void wl_remove_complete(uint8_t* p_data, uint16_t /* evt_len */); // Unfortunately (for now?) we have to maintain a copy of the device whitelist // on the host to determine if a device is pending to be connected or not. This Loading Loading @@ -72,7 +73,14 @@ static void background_connection_add(uint8_t addr_type, BackgroundConnection{address, addr_type, false, 0, false}; } else { BackgroundConnection* connection = &map_iter->second; if (addr_type != connection->addr_type) { LOG(INFO) << __func__ << " Addr type mismatch " << address; btsnd_hcic_ble_remove_from_white_list( connection->addr_type_in_wl, connection->address, base::Bind(&wl_remove_complete)); connection->addr_type = addr_type; connection->in_controller_wl = false; } connection->pending_removal = false; } } Loading