hci_conn_lookup_type
switch (hci_conn_lookup_type(hdev, handle)) {
type = hci_conn_lookup_type(hdev, hci_handle(handle));