Lines Matching defs:hdev
70 /* This function requires the caller holds hdev->lock */
74 struct hci_dev *hdev = conn->hdev;
83 irk = hci_get_irk(hdev, bdaddr, bdaddr_type);
89 params = hci_pend_le_action_lookup(&hdev->pend_le_conns, bdaddr,
110 mgmt_connect_failed(hdev, &conn->dst, conn->type,
124 hci_conn_params_del(hdev, bdaddr, bdaddr_type);
129 hci_pend_le_list_add(params, &hdev->pend_le_conns);
132 hci_pend_le_list_add(params, &hdev->pend_le_reports);
138 hci_update_passive_scan(hdev);
143 struct hci_dev *hdev = conn->hdev;
146 hci_conn_params_del(conn->hdev, &conn->dst, conn->dst_type);
149 hci_remove_link_key(hdev, &conn->dst);
153 hci_conn_hash_del(hdev, conn);
156 ida_free(&hdev->unset_handle_ida, conn->handle);
165 if (hdev->notify)
166 hdev->notify(hdev, HCI_NOTIFY_DISABLE_SCO);
170 if (hdev->notify)
171 hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);
178 hci_dev_put(hdev);
183 struct hci_dev *hdev = conn->hdev;
197 if (test_bit(HCI_INQUIRY, &hdev->flags)) {
202 hci_send_cmd(hdev, HCI_OP_INQUIRY_CANCEL, 0, NULL);
212 conn->link_policy = hdev->link_policy;
218 ie = hci_inquiry_cache_lookup(hdev, &conn->dst);
231 if (lmp_rswitch_capable(hdev) && !(hdev->link_mode & HCI_LM_MASTER))
236 hci_send_cmd(hdev, HCI_OP_CREATE_CONN, sizeof(cp), &cp);
250 struct hci_dev *hdev = conn->hdev;
254 hci_send_cmd(hdev, HCI_OP_READ_CLOCK_OFFSET, sizeof(clkoff_cp),
263 struct hci_dev *hdev = conn->hdev;
276 hci_send_cmd(hdev, HCI_OP_ADD_SCO, sizeof(cp), &cp);
296 static int configure_datapath_sync(struct hci_dev *hdev, struct bt_codec *codec)
302 err = hdev->get_codec_config_data(hdev, ESCO_LINK, codec, &vnd_len,
313 err = hdev->get_data_path_id(hdev, &cmd->data_path_id);
321 __hci_cmd_sync_status(hdev, HCI_CONFIGURE_DATA_PATH,
325 err = __hci_cmd_sync_status(hdev, HCI_CONFIGURE_DATA_PATH,
335 static int hci_enhanced_setup_sync(struct hci_dev *hdev, void *data)
345 bt_dev_dbg(hdev, "hcon %p", conn);
349 configure_datapath_sync(hdev, &conn->codec);
453 if (hci_send_cmd(hdev, HCI_OP_ENHANCED_SETUP_SYNC_CONN, sizeof(cp), &cp) < 0)
461 struct hci_dev *hdev = conn->hdev;
465 bt_dev_dbg(hdev, "hcon %p", conn);
505 if (hci_send_cmd(hdev, HCI_OP_SETUP_SYNC_CONN, sizeof(cp), &cp) < 0)
516 if (enhanced_sync_conn_capable(conn->hdev)) {
524 result = hci_cmd_sync_queue(conn->hdev, hci_enhanced_setup_sync,
538 struct hci_dev *hdev = conn->hdev;
542 hci_dev_lock(hdev);
544 params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type);
552 hci_dev_unlock(hdev);
563 hci_send_cmd(hdev, HCI_OP_LE_CONN_UPDATE, sizeof(cp), &cp);
574 struct hci_dev *hdev = conn->hdev;
586 hci_send_cmd(hdev, HCI_OP_LE_START_ENC, sizeof(cp), &cp);
601 if (lmp_esco_capable(conn->hdev))
639 struct hci_dev *hdev = conn->hdev;
643 if (!lmp_sniff_capable(hdev) || !lmp_sniff_capable(conn))
649 if (lmp_sniffsubr_capable(hdev) && lmp_sniffsubr_capable(conn)) {
655 hci_send_cmd(hdev, HCI_OP_SNIFF_SUBRATE, sizeof(cp), &cp);
661 cp.max_interval = cpu_to_le16(hdev->sniff_max_interval);
662 cp.min_interval = cpu_to_le16(hdev->sniff_min_interval);
665 hci_send_cmd(hdev, HCI_OP_SNIFF_MODE, sizeof(cp), &cp);
674 hci_send_cmd(conn->hdev, HCI_OP_USER_CONFIRM_REPLY, sizeof(conn->dst),
678 static void le_disable_advertising(struct hci_dev *hdev)
680 if (ext_adv_capable(hdev)) {
686 hci_send_cmd(hdev, HCI_OP_LE_SET_EXT_ADV_ENABLE, sizeof(cp),
690 hci_send_cmd(hdev, HCI_OP_LE_SET_ADV_ENABLE, sizeof(enable),
699 struct hci_dev *hdev = conn->hdev;
710 le_disable_advertising(hdev);
711 hci_dev_lock(hdev);
713 hci_dev_unlock(hdev);
756 static int terminate_big_sync(struct hci_dev *hdev, void *data)
760 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", d->big, d->bis);
762 hci_remove_ext_adv_instance_sync(hdev, d->bis, NULL);
768 return hci_le_terminate_big_sync(hdev, d->big,
772 static void terminate_big_destroy(struct hci_dev *hdev, void *data, int err)
777 static int hci_le_terminate_big(struct hci_dev *hdev, struct hci_conn *conn)
782 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", conn->iso_qos.bcast.big,
793 ret = hci_cmd_sync_queue(hdev, terminate_big_sync, d,
801 static int big_terminate_sync(struct hci_dev *hdev, void *data)
805 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", d->big,
809 hci_le_big_terminate_sync(hdev, d->big);
812 return hci_le_pa_terminate_sync(hdev, d->sync_handle);
817 static int hci_le_big_terminate(struct hci_dev *hdev, u8 big, struct hci_conn *conn)
822 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", big, conn->sync_handle);
833 ret = hci_cmd_sync_queue(hdev, big_terminate_sync, d,
849 struct hci_dev *hdev = conn->hdev;
852 bt_dev_dbg(hdev, "conn %p", conn);
861 bis = hci_conn_hash_lookup_big(hdev, conn->iso_qos.bcast.big);
865 hci_le_terminate_big(hdev, conn);
867 bis = hci_conn_hash_lookup_big_any_dst(hdev,
873 hci_le_big_terminate(hdev, conn->iso_qos.bcast.big,
878 static int remove_cig_sync(struct hci_dev *hdev, void *data)
882 return hci_le_remove_cig_sync(hdev, handle);
885 static int hci_le_remove_cig(struct hci_dev *hdev, u8 handle)
887 bt_dev_dbg(hdev, "handle 0x%2.2x", handle);
889 return hci_cmd_sync_queue(hdev, remove_cig_sync, UINT_PTR(handle),
910 struct hci_dev *hdev = conn->hdev;
922 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_BOUND, &d);
923 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECT, &d);
924 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK, BT_CONNECTED, &d);
928 hci_le_remove_cig(hdev, conn->iso_qos.ucast.cig);
931 static int hci_conn_hash_alloc_unset(struct hci_dev *hdev)
933 return ida_alloc_range(&hdev->unset_handle_ida, HCI_CONN_HANDLE_MAX + 1,
937 struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst,
942 bt_dev_dbg(hdev, "dst %pMR handle 0x%4.4x", dst, handle);
949 bacpy(&conn->src, &hdev->bdaddr);
951 conn->hdev = hdev;
957 conn->io_capability = hdev->io_capability;
976 conn->pkt_type = hdev->pkt_type & ACL_PTYPE_MASK;
980 hci_copy_identity_address(hdev, &conn->src, &conn->src_type);
984 hci_copy_identity_address(hdev, &conn->src, &conn->src_type);
994 if (lmp_esco_capable(hdev))
995 conn->pkt_type = (hdev->esco_type & SCO_ESCO_MASK) |
996 (hdev->esco_type & EDR_ESCO_MASK);
998 conn->pkt_type = hdev->pkt_type & SCO_PTYPE_MASK;
1001 conn->pkt_type = hdev->esco_type & ~EDR_ESCO_MASK;
1017 hci_dev_hold(hdev);
1019 hci_conn_hash_add(hdev, conn);
1026 if (hdev->notify)
1027 hdev->notify(hdev, HCI_NOTIFY_CONN_ADD);
1035 struct hci_conn *hci_conn_add_unset(struct hci_dev *hdev, int type,
1040 bt_dev_dbg(hdev, "dst %pMR", dst);
1042 handle = hci_conn_hash_alloc_unset(hdev);
1046 return hci_conn_add(hdev, type, dst, role, handle);
1074 struct hci_dev *hdev = conn->hdev;
1076 bt_dev_dbg(hdev, "hcon %p", conn);
1086 /* If hdev is down it means
1091 if (!test_bit(HCI_UP, &hdev->flags))
1116 struct hci_dev *hdev = conn->hdev;
1118 BT_DBG("%s hcon %p handle %d", hdev->name, conn, conn->handle);
1128 hdev->acl_cnt += conn->sent;
1132 if (hdev->le_pkts)
1133 hdev->le_cnt += conn->sent;
1135 hdev->acl_cnt += conn->sent;
1139 if (hdev->iso_pkts)
1140 hdev->iso_cnt += conn->sent;
1141 else if (hdev->le_pkts)
1142 hdev->le_cnt += conn->sent;
1144 hdev->acl_cnt += conn->sent;
1161 struct hci_dev *hdev = NULL, *d;
1202 hdev = d; break;
1206 hdev = d; break;
1211 if (hdev)
1212 hdev = hci_dev_hold(hdev);
1215 return hdev;
1219 /* This function requires the caller holds hdev->lock */
1222 struct hci_dev *hdev = conn->hdev;
1229 hci_enable_advertising(hdev);
1232 /* This function requires the caller holds hdev->lock */
1235 struct hci_dev *hdev = conn->hdev;
1237 bt_dev_dbg(hdev, "status 0x%2.2x", status);
1244 mgmt_connect_failed(hdev, &conn->dst, conn->type,
1254 /* This function requires the caller holds hdev->lock */
1257 struct hci_dev *hdev = conn->hdev;
1259 bt_dev_dbg(hdev, "hcon %p handle 0x%4.4x", conn, handle);
1265 bt_dev_err(hdev, "Invalid handle: 0x%4.4x > 0x%4.4x",
1277 ida_free(&hdev->unset_handle_ida, conn->handle);
1284 static void create_le_conn_complete(struct hci_dev *hdev, void *data, int err)
1289 conn = hci_conn_hash_lookup_handle(hdev, handle);
1293 bt_dev_dbg(hdev, "err %d", err);
1295 hci_dev_lock(hdev);
1303 if (conn != hci_lookup_le_connect(hdev))
1311 hci_dev_unlock(hdev);
1314 static int hci_connect_le_sync(struct hci_dev *hdev, void *data)
1319 conn = hci_conn_hash_lookup_handle(hdev, handle);
1323 bt_dev_dbg(hdev, "conn %p", conn);
1328 return hci_le_create_conn_sync(hdev, conn);
1331 struct hci_conn *hci_connect_le(struct hci_dev *hdev, bdaddr_t *dst,
1340 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
1341 if (lmp_le_capable(hdev))
1350 if (hci_lookup_le_connect(hdev))
1358 conn = hci_conn_hash_lookup_le(hdev, dst, dst_type);
1376 irk = hci_find_irk_by_addr(hdev, dst, dst_type);
1386 conn = hci_conn_add_unset(hdev, LE_LINK, dst, role);
1397 err = hci_cmd_sync_queue(hdev, hci_connect_le_sync,
1408 static bool is_connected(struct hci_dev *hdev, bdaddr_t *addr, u8 type)
1412 conn = hci_conn_hash_lookup_le(hdev, addr, type);
1422 /* This function requires the caller holds hdev->lock */
1423 static int hci_explicit_conn_params_set(struct hci_dev *hdev,
1428 if (is_connected(hdev, addr, addr_type))
1431 params = hci_conn_params_lookup(hdev, addr, addr_type);
1433 params = hci_conn_params_add(hdev, addr, addr_type);
1449 hci_pend_le_list_add(params, &hdev->pend_le_conns);
1460 static int qos_set_big(struct hci_dev *hdev, struct bt_iso_qos *qos)
1469 conn = hci_conn_hash_lookup_big(hdev, big);
1484 static int qos_set_bis(struct hci_dev *hdev, struct bt_iso_qos *qos)
1494 for (bis = 0x01; bis < hdev->le_num_of_adv_sets;
1497 conn = hci_conn_hash_lookup_bis(hdev, BDADDR_ANY, bis);
1502 if (bis == hdev->le_num_of_adv_sets)
1512 /* This function requires the caller holds hdev->lock */
1513 static struct hci_conn *hci_add_bis(struct hci_dev *hdev, bdaddr_t *dst,
1521 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
1522 if (lmp_le_capable(hdev))
1527 err = qos_set_big(hdev, qos);
1531 err = qos_set_bis(hdev, qos);
1536 conn = hci_conn_hash_lookup_per_adv_bis(hdev, dst, qos->bcast.big,
1544 conn = hci_conn_hash_lookup_big(hdev, qos->bcast.big);
1551 conn = hci_conn_add_unset(hdev, ISO_LINK, dst, HCI_ROLE_MASTER);
1561 /* This function requires the caller holds hdev->lock */
1562 struct hci_conn *hci_connect_le_scan(struct hci_dev *hdev, bdaddr_t *dst,
1570 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
1571 if (lmp_le_capable(hdev))
1586 conn = hci_conn_hash_lookup_le(hdev, dst, dst_type);
1595 conn = hci_conn_add_unset(hdev, LE_LINK, dst, HCI_ROLE_MASTER);
1599 if (hci_explicit_conn_params_set(hdev, dst, dst_type) < 0) {
1612 hci_update_passive_scan(hdev);
1619 struct hci_conn *hci_connect_acl(struct hci_dev *hdev, bdaddr_t *dst,
1625 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) {
1626 if (lmp_bredr_capable(hdev))
1635 if (!bacmp(&hdev->bdaddr, dst)) {
1636 bt_dev_dbg(hdev, "Reject connection with same BD_ADDR %pMR\n",
1641 acl = hci_conn_hash_lookup_ba(hdev, ACL_LINK, dst);
1643 acl = hci_conn_add_unset(hdev, ACL_LINK, dst, HCI_ROLE_MASTER);
1664 struct hci_dev *hdev = parent->hdev;
1667 bt_dev_dbg(hdev, "parent %p hcon %p", parent, conn);
1689 struct hci_conn *hci_connect_sco(struct hci_dev *hdev, int type, bdaddr_t *dst,
1696 acl = hci_connect_acl(hdev, dst, BT_SECURITY_LOW, HCI_AT_NO_BONDING,
1701 sco = hci_conn_hash_lookup_ba(hdev, type, dst);
1703 sco = hci_conn_add_unset(hdev, type, dst, HCI_ROLE_MASTER);
1739 struct hci_dev *hdev = conn->hdev;
1750 hci_conn_hash_list_state(hdev, bis_list, ISO_LINK,
1766 return hci_send_cmd(hdev, HCI_OP_LE_CREATE_BIG, sizeof(cp), &cp);
1769 static int set_cig_params_sync(struct hci_dev *hdev, void *data)
1777 conn = hci_conn_hash_lookup_cig(hdev, cig_id);
1801 conn = hci_conn_hash_lookup_cis(hdev, NULL, 0, cig_id, cis_id);
1822 return __hci_cmd_sync_status(hdev, HCI_OP_LE_SET_CIG_PARAMS,
1830 struct hci_dev *hdev = conn->hdev;
1840 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK,
1845 hci_conn_hash_list_state(hdev, find_cis, ISO_LINK,
1859 if (hci_conn_hash_lookup_cis(hdev, NULL, 0, qos->ucast.cig,
1868 if (!hci_conn_hash_lookup_cis(hdev, NULL, 0, data.cig,
1880 if (hci_cmd_sync_queue(hdev, set_cig_params_sync,
1887 struct hci_conn *hci_bind_cis(struct hci_dev *hdev, bdaddr_t *dst,
1892 cis = hci_conn_hash_lookup_cis(hdev, dst, dst_type, qos->ucast.cig,
1895 cis = hci_conn_add_unset(hdev, ISO_LINK, dst, HCI_ROLE_MASTER);
1955 struct hci_dev *hdev = conn->hdev;
1966 if (hci_send_cmd(hdev, HCI_OP_LE_SETUP_ISO_PATH, sizeof(cmd),
1977 if (hci_send_cmd(hdev, HCI_OP_LE_SETUP_ISO_PATH, sizeof(cmd),
1997 static int hci_create_cis_sync(struct hci_dev *hdev, void *data)
1999 return hci_le_create_cis_sync(hdev);
2002 int hci_le_create_cis_pending(struct hci_dev *hdev)
2009 list_for_each_entry_rcu(conn, &hdev->conn_hash.list, list) {
2025 return hci_cmd_sync_queue(hdev, hci_create_cis_sync, NULL, NULL);
2028 static void hci_iso_qos_setup(struct hci_dev *hdev, struct hci_conn *conn,
2033 if (hdev->iso_mtu > 0)
2034 qos->sdu = hdev->iso_mtu;
2035 else if (hdev->le_mtu > 0)
2036 qos->sdu = hdev->le_mtu;
2038 qos->sdu = hdev->acl_mtu;
2055 static int create_big_sync(struct hci_dev *hdev, void *data)
2072 err = hci_start_per_adv_sync(hdev, qos->bcast.bis, conn->le_per_adv_data_len,
2081 static void create_pa_complete(struct hci_dev *hdev, void *data, int err)
2085 bt_dev_dbg(hdev, "");
2088 bt_dev_err(hdev, "Unable to create PA: %d", err);
2093 static int create_pa_sync(struct hci_dev *hdev, void *data)
2098 err = __hci_cmd_sync_status(hdev, HCI_OP_LE_PA_CREATE_SYNC,
2101 hci_dev_clear_flag(hdev, HCI_PA_SYNC);
2105 return hci_update_passive_scan_sync(hdev);
2108 int hci_pa_create_sync(struct hci_dev *hdev, bdaddr_t *dst, __u8 dst_type,
2113 if (hci_dev_test_and_set_flag(hdev, HCI_PA_SYNC))
2118 hci_dev_clear_flag(hdev, HCI_PA_SYNC);
2131 return hci_cmd_sync_queue(hdev, create_pa_sync, cp, create_pa_complete);
2134 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
2147 err = qos_set_big(hdev, qos);
2164 return hci_send_cmd(hdev, HCI_OP_LE_BIG_CREATE_SYNC,
2168 static void create_big_complete(struct hci_dev *hdev, void *data, int err)
2172 bt_dev_dbg(hdev, "conn %p", conn);
2175 bt_dev_err(hdev, "Unable to create BIG: %d", err);
2181 struct hci_conn *hci_bind_bis(struct hci_dev *hdev, bdaddr_t *dst,
2193 conn = hci_add_bis(hdev, dst, qos, base_len, eir);
2207 hci_iso_qos_setup(hdev, conn, &qos->bcast.out,
2209 hdev->le_tx_def_phys);
2233 struct hci_conn *hci_connect_bis(struct hci_dev *hdev, bdaddr_t *dst,
2241 conn = hci_bind_bis(hdev, dst, qos, base_len, base);
2252 hci_conn_hash_list_state(hdev, bis_mark_per_adv, ISO_LINK,
2256 err = hci_cmd_sync_queue(hdev, create_big_sync, conn,
2266 struct hci_conn *hci_connect_cis(struct hci_dev *hdev, bdaddr_t *dst,
2273 if (hci_dev_test_flag(hdev, HCI_ADVERTISING))
2274 le = hci_connect_le(hdev, dst, dst_type, false,
2279 le = hci_connect_le_scan(hdev, dst, dst_type,
2286 hci_iso_qos_setup(hdev, le, &qos->ucast.out,
2287 le->le_tx_phy ? le->le_tx_phy : hdev->le_tx_def_phys);
2288 hci_iso_qos_setup(hdev, le, &qos->ucast.in,
2289 le->le_rx_phy ? le->le_rx_phy : hdev->le_rx_def_phys);
2291 cis = hci_bind_cis(hdev, dst, dst_type, qos);
2309 hci_le_create_cis_pending(hdev);
2323 if (hci_dev_test_flag(conn->hdev, HCI_SC_ONLY)) {
2342 bt_dev_err(conn->hdev,
2376 hci_send_cmd(conn->hdev, HCI_OP_AUTH_REQUESTED,
2398 hci_send_cmd(conn->hdev, HCI_OP_SET_CONN_ENCRYPT, sizeof(cp),
2519 hci_send_cmd(conn->hdev, HCI_OP_SWITCH_ROLE, sizeof(cp), &cp);
2529 struct hci_dev *hdev = conn->hdev;
2542 hci_send_cmd(hdev, HCI_OP_EXIT_SNIFF_MODE, sizeof(cp), &cp);
2546 if (hdev->idle_timeout > 0)
2547 queue_delayed_work(hdev->workqueue, &conn->idle_work,
2548 msecs_to_jiffies(hdev->idle_timeout));
2552 void hci_conn_hash_flush(struct hci_dev *hdev)
2554 struct list_head *head = &hdev->conn_hash.list;
2557 BT_DBG("hdev %s", hdev->name);
2573 void hci_conn_check_pending(struct hci_dev *hdev)
2577 BT_DBG("hdev %s", hdev->name);
2579 hci_dev_lock(hdev);
2581 conn = hci_conn_hash_lookup_state(hdev, ACL_LINK, BT_CONNECT2);
2585 hci_dev_unlock(hdev);
2615 struct hci_dev *hdev;
2630 hdev = hci_dev_get(req.dev_id);
2631 if (!hdev) {
2638 hci_dev_lock(hdev);
2639 list_for_each_entry(c, &hdev->conn_hash.list, list) {
2649 hci_dev_unlock(hdev);
2651 cl->dev_id = hdev->id;
2655 hci_dev_put(hdev);
2663 int hci_get_conn_info(struct hci_dev *hdev, void __user *arg)
2673 hci_dev_lock(hdev);
2674 conn = hci_conn_hash_lookup_ba(hdev, req.type, &req.bdaddr);
2683 hci_dev_unlock(hdev);
2691 int hci_get_auth_info(struct hci_dev *hdev, void __user *arg)
2699 hci_dev_lock(hdev);
2700 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &req.bdaddr);
2703 hci_dev_unlock(hdev);
2713 struct hci_dev *hdev = conn->hdev;
2716 BT_DBG("%s hcon %p", hdev->name, conn);
2739 struct hci_dev *hdev = conn->hdev;
2741 BT_DBG("%s hcon %p chan %p", hdev->name, conn, chan);
2779 struct hci_chan *hci_chan_lookup_handle(struct hci_dev *hdev, __u16 handle)
2781 struct hci_conn_hash *h = &hdev->conn_hash;
2901 static int abort_conn_sync(struct hci_dev *hdev, void *data)
2906 conn = hci_conn_hash_lookup_handle(hdev, handle);
2910 return hci_abort_conn_sync(hdev, conn, conn->abort_reason);
2915 struct hci_dev *hdev = conn->hdev;
2923 bt_dev_dbg(hdev, "handle 0x%2.2x reason 0x%2.2x", conn->handle, reason);
2934 if (conn->state == BT_CONNECT && hdev->req_status == HCI_REQ_PEND) {
2935 switch (hci_skb_event(hdev->sent_cmd)) {
2939 hci_cmd_sync_cancel(hdev, ECANCELED);
2944 return hci_cmd_sync_queue(hdev, abort_conn_sync, UINT_PTR(conn->handle),