Lines Matching refs:status
48 __u8 status = *((__u8 *) skb->data); in hci_cc_inquiry_cancel() local
50 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_inquiry_cancel()
59 if (status == 0x0c && !test_bit(HCI_INQUIRY, &hdev->flags)) { in hci_cc_inquiry_cancel()
61 status = 0x00; in hci_cc_inquiry_cancel()
64 *new_status = status; in hci_cc_inquiry_cancel()
66 if (status) in hci_cc_inquiry_cancel()
87 __u8 status = *((__u8 *) skb->data); in hci_cc_periodic_inq() local
89 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_periodic_inq()
91 if (status) in hci_cc_periodic_inq()
99 __u8 status = *((__u8 *) skb->data); in hci_cc_exit_periodic_inq() local
101 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_exit_periodic_inq()
103 if (status) in hci_cc_exit_periodic_inq()
122 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_role_discovery()
124 if (rp->status) in hci_cc_role_discovery()
141 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_link_policy()
143 if (rp->status) in hci_cc_read_link_policy()
161 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_write_link_policy()
163 if (rp->status) in hci_cc_write_link_policy()
184 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_def_link_policy()
186 if (rp->status) in hci_cc_read_def_link_policy()
195 __u8 status = *((__u8 *) skb->data); in hci_cc_write_def_link_policy() local
198 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_def_link_policy()
200 if (status) in hci_cc_write_def_link_policy()
212 __u8 status = *((__u8 *) skb->data); in hci_cc_reset() local
214 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_reset()
218 if (status) in hci_cc_reset()
249 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_stored_link_key()
255 if (!rp->status && sent->read_all == 0x01) { in hci_cc_read_stored_link_key()
266 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_delete_stored_link_key()
268 if (rp->status) in hci_cc_delete_stored_link_key()
279 __u8 status = *((__u8 *) skb->data); in hci_cc_write_local_name() local
282 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_local_name()
291 mgmt_set_local_name_complete(hdev, sent, status); in hci_cc_write_local_name()
292 else if (!status) in hci_cc_write_local_name()
302 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_name()
304 if (rp->status) in hci_cc_read_local_name()
314 __u8 status = *((__u8 *) skb->data); in hci_cc_write_auth_enable() local
317 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_auth_enable()
325 if (!status) { in hci_cc_write_auth_enable()
335 mgmt_auth_enable_complete(hdev, status); in hci_cc_write_auth_enable()
342 __u8 status = *((__u8 *) skb->data); in hci_cc_write_encrypt_mode() local
346 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_encrypt_mode()
348 if (status) in hci_cc_write_encrypt_mode()
365 __u8 status = *((__u8 *) skb->data); in hci_cc_write_scan_enable() local
369 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_scan_enable()
379 if (status) { in hci_cc_write_scan_enable()
402 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_class_of_dev()
404 if (rp->status) in hci_cc_read_class_of_dev()
415 __u8 status = *((__u8 *) skb->data); in hci_cc_write_class_of_dev() local
418 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_class_of_dev()
426 if (status == 0) in hci_cc_write_class_of_dev()
430 mgmt_set_class_of_dev_complete(hdev, sent, status); in hci_cc_write_class_of_dev()
440 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_voice_setting()
442 if (rp->status) in hci_cc_read_voice_setting()
461 __u8 status = *((__u8 *) skb->data); in hci_cc_write_voice_setting() local
465 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_voice_setting()
467 if (status) in hci_cc_write_voice_setting()
492 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_num_supported_iac()
494 if (rp->status) in hci_cc_read_num_supported_iac()
504 __u8 status = *((__u8 *) skb->data); in hci_cc_write_ssp_mode() local
507 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_ssp_mode()
515 if (!status) { in hci_cc_write_ssp_mode()
523 mgmt_ssp_enable_complete(hdev, sent->mode, status); in hci_cc_write_ssp_mode()
524 else if (!status) { in hci_cc_write_ssp_mode()
536 u8 status = *((u8 *) skb->data); in hci_cc_write_sc_support() local
539 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_sc_support()
547 if (!status) { in hci_cc_write_sc_support()
554 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !status) { in hci_cc_write_sc_support()
568 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_version()
570 if (rp->status) in hci_cc_read_local_version()
588 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_commands()
590 if (rp->status) in hci_cc_read_local_commands()
604 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_auth_payload_timeout()
606 if (rp->status) in hci_cc_read_auth_payload_timeout()
625 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_write_auth_payload_timeout()
627 if (rp->status) in hci_cc_write_auth_payload_timeout()
648 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_features()
650 if (rp->status) in hci_cc_read_local_features()
698 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_ext_features()
700 if (rp->status) in hci_cc_read_local_ext_features()
715 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_flow_control_mode()
717 if (rp->status) in hci_cc_read_flow_control_mode()
727 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_buffer_size()
729 if (rp->status) in hci_cc_read_buffer_size()
753 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_bd_addr()
755 if (rp->status) in hci_cc_read_bd_addr()
770 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_pairing_opts()
772 if (rp->status) in hci_cc_read_local_pairing_opts()
787 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_activity()
789 if (rp->status) in hci_cc_read_page_scan_activity()
801 u8 status = *((u8 *) skb->data); in hci_cc_write_page_scan_activity() local
804 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_page_scan_activity()
806 if (status) in hci_cc_write_page_scan_activity()
822 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_page_scan_type()
824 if (rp->status) in hci_cc_read_page_scan_type()
834 u8 status = *((u8 *) skb->data); in hci_cc_write_page_scan_type() local
837 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_page_scan_type()
839 if (status) in hci_cc_write_page_scan_type()
852 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_data_block_size()
854 if (rp->status) in hci_cc_read_data_block_size()
878 if (rp->status) in hci_cc_read_clock()
907 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_amp_info()
909 if (rp->status) in hci_cc_read_local_amp_info()
929 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_inq_rsp_tx_power()
931 if (rp->status) in hci_cc_read_inq_rsp_tx_power()
942 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_def_err_data_reporting()
944 if (rp->status) in hci_cc_read_def_err_data_reporting()
953 __u8 status = *((__u8 *)skb->data); in hci_cc_write_def_err_data_reporting() local
956 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_def_err_data_reporting()
958 if (status) in hci_cc_write_def_err_data_reporting()
974 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_reply()
979 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status); in hci_cc_pin_code_reply()
981 if (rp->status) in hci_cc_pin_code_reply()
1000 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_pin_code_neg_reply()
1006 rp->status); in hci_cc_pin_code_neg_reply()
1016 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_buffer_size()
1018 if (rp->status) in hci_cc_le_read_buffer_size()
1034 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_local_features()
1036 if (rp->status) in hci_cc_le_read_local_features()
1047 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_adv_tx_power()
1049 if (rp->status) in hci_cc_le_read_adv_tx_power()
1059 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_reply()
1065 rp->status); in hci_cc_user_confirm_reply()
1075 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_confirm_neg_reply()
1081 ACL_LINK, 0, rp->status); in hci_cc_user_confirm_neg_reply()
1090 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_reply()
1096 0, rp->status); in hci_cc_user_passkey_reply()
1106 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_user_passkey_neg_reply()
1112 ACL_LINK, 0, rp->status); in hci_cc_user_passkey_neg_reply()
1122 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_data()
1130 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_local_oob_ext_data()
1135 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_random_addr() local
1138 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_random_addr()
1140 if (status) in hci_cc_le_set_random_addr()
1156 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_default_phy() local
1159 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_default_phy()
1161 if (status) in hci_cc_le_set_default_phy()
1179 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_adv_set_random_addr() local
1183 if (status) in hci_cc_le_set_adv_set_random_addr()
1207 __u8 *sent, status = *((__u8 *) skb->data); in hci_cc_le_set_adv_enable() local
1209 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_adv_enable()
1211 if (status) in hci_cc_le_set_adv_enable()
1244 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_ext_adv_enable() local
1246 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_ext_adv_enable()
1248 if (status) in hci_cc_le_set_ext_adv_enable()
1277 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_scan_param() local
1279 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_scan_param()
1281 if (status) in hci_cc_le_set_scan_param()
1299 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_ext_scan_param() local
1302 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_ext_scan_param()
1304 if (status) in hci_cc_le_set_ext_scan_param()
1413 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_scan_enable() local
1415 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_scan_enable()
1417 if (status) in hci_cc_le_set_scan_enable()
1431 __u8 status = *((__u8 *) skb->data); in hci_cc_le_set_ext_scan_enable() local
1433 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_ext_scan_enable()
1435 if (status) in hci_cc_le_set_ext_scan_enable()
1450 BT_DBG("%s status 0x%2.2x No of Adv sets %u", hdev->name, rp->status, in hci_cc_le_read_num_adv_sets()
1453 if (rp->status) in hci_cc_le_read_num_adv_sets()
1464 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); in hci_cc_le_read_white_list_size()
1466 if (rp->status) in hci_cc_le_read_white_list_size()
1475 __u8 status = *((__u8 *) skb->data); in hci_cc_le_clear_white_list() local
1477 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_clear_white_list()
1479 if (status) in hci_cc_le_clear_white_list()
1489 __u8 status = *((__u8 *) skb->data); in hci_cc_le_add_to_white_list() local
1491 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_add_to_white_list()
1493 if (status) in hci_cc_le_add_to_white_list()
1508 __u8 status = *((__u8 *) skb->data); in hci_cc_le_del_from_white_list() local
1510 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_del_from_white_list()
1512 if (status) in hci_cc_le_del_from_white_list()
1528 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_supported_states()
1530 if (rp->status) in hci_cc_le_read_supported_states()
1541 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_def_data_len()
1543 if (rp->status) in hci_cc_le_read_def_data_len()
1554 __u8 status = *((__u8 *) skb->data); in hci_cc_le_write_def_data_len() local
1556 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_write_def_data_len()
1558 if (status) in hci_cc_le_write_def_data_len()
1573 __u8 status = *((__u8 *) skb->data); in hci_cc_le_add_to_resolv_list() local
1575 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_add_to_resolv_list()
1577 if (status) in hci_cc_le_add_to_resolv_list()
1593 __u8 status = *((__u8 *) skb->data); in hci_cc_le_del_from_resolv_list() local
1595 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_del_from_resolv_list()
1597 if (status) in hci_cc_le_del_from_resolv_list()
1611 __u8 status = *((__u8 *) skb->data); in hci_cc_le_clear_resolv_list() local
1613 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_clear_resolv_list()
1615 if (status) in hci_cc_le_clear_resolv_list()
1626 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size); in hci_cc_le_read_resolv_list_size()
1628 if (rp->status) in hci_cc_le_read_resolv_list_size()
1637 __u8 *sent, status = *((__u8 *) skb->data); in hci_cc_le_set_addr_resolution_enable() local
1639 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_le_set_addr_resolution_enable()
1641 if (status) in hci_cc_le_set_addr_resolution_enable()
1663 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_le_read_max_data_len()
1665 if (rp->status) in hci_cc_le_read_max_data_len()
1678 __u8 status = *((__u8 *) skb->data); in hci_cc_write_le_host_supported() local
1680 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_le_host_supported()
1682 if (status) in hci_cc_write_le_host_supported()
1711 u8 status = *((u8 *) skb->data); in hci_cc_set_adv_param() local
1713 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_set_adv_param()
1715 if (status) in hci_cc_set_adv_param()
1733 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_set_ext_adv_param()
1735 if (rp->status) in hci_cc_set_ext_adv_param()
1763 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_rssi()
1765 if (rp->status) in hci_cc_read_rssi()
1783 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status); in hci_cc_read_tx_power()
1785 if (rp->status) in hci_cc_read_tx_power()
1813 u8 status = *((u8 *) skb->data); in hci_cc_write_ssp_debug_mode() local
1816 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cc_write_ssp_debug_mode()
1818 if (status) in hci_cc_write_ssp_debug_mode()
1826 static void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) in hci_cs_inquiry() argument
1828 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_inquiry()
1830 if (status) { in hci_cs_inquiry()
1838 static void hci_cs_create_conn(struct hci_dev *hdev, __u8 status) in hci_cs_create_conn() argument
1843 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_create_conn()
1855 if (status) { in hci_cs_create_conn()
1857 if (status != 0x0c || conn->attempt > 2) { in hci_cs_create_conn()
1859 hci_connect_cfm(conn, status); in hci_cs_create_conn()
1876 static void hci_cs_add_sco(struct hci_dev *hdev, __u8 status) in hci_cs_add_sco() argument
1882 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_add_sco()
1884 if (!status) in hci_cs_add_sco()
1903 hci_connect_cfm(sco, status); in hci_cs_add_sco()
1911 static void hci_cs_auth_requested(struct hci_dev *hdev, __u8 status) in hci_cs_auth_requested() argument
1916 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_auth_requested()
1918 if (!status) in hci_cs_auth_requested()
1930 hci_connect_cfm(conn, status); in hci_cs_auth_requested()
1938 static void hci_cs_set_conn_encrypt(struct hci_dev *hdev, __u8 status) in hci_cs_set_conn_encrypt() argument
1943 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_set_conn_encrypt()
1945 if (!status) in hci_cs_set_conn_encrypt()
1957 hci_connect_cfm(conn, status); in hci_cs_set_conn_encrypt()
2071 static void hci_cs_remote_name_req(struct hci_dev *hdev, __u8 status) in hci_cs_remote_name_req() argument
2076 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_remote_name_req()
2080 if (!status) in hci_cs_remote_name_req()
2114 static void hci_cs_read_remote_features(struct hci_dev *hdev, __u8 status) in hci_cs_read_remote_features() argument
2119 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_read_remote_features()
2121 if (!status) in hci_cs_read_remote_features()
2133 hci_connect_cfm(conn, status); in hci_cs_read_remote_features()
2141 static void hci_cs_read_remote_ext_features(struct hci_dev *hdev, __u8 status) in hci_cs_read_remote_ext_features() argument
2146 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_read_remote_ext_features()
2148 if (!status) in hci_cs_read_remote_ext_features()
2160 hci_connect_cfm(conn, status); in hci_cs_read_remote_ext_features()
2168 static void hci_cs_setup_sync_conn(struct hci_dev *hdev, __u8 status) in hci_cs_setup_sync_conn() argument
2174 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_setup_sync_conn()
2176 if (!status) in hci_cs_setup_sync_conn()
2195 hci_connect_cfm(sco, status); in hci_cs_setup_sync_conn()
2203 static void hci_cs_sniff_mode(struct hci_dev *hdev, __u8 status) in hci_cs_sniff_mode() argument
2208 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_sniff_mode()
2210 if (!status) in hci_cs_sniff_mode()
2224 hci_sco_setup(conn, status); in hci_cs_sniff_mode()
2230 static void hci_cs_exit_sniff_mode(struct hci_dev *hdev, __u8 status) in hci_cs_exit_sniff_mode() argument
2235 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_exit_sniff_mode()
2237 if (!status) in hci_cs_exit_sniff_mode()
2251 hci_sco_setup(conn, status); in hci_cs_exit_sniff_mode()
2257 static void hci_cs_disconnect(struct hci_dev *hdev, u8 status) in hci_cs_disconnect() argument
2262 if (!status) in hci_cs_disconnect()
2276 conn->dst_type, status); in hci_cs_disconnect()
2342 static void hci_cs_le_create_conn(struct hci_dev *hdev, u8 status) in hci_cs_le_create_conn() argument
2346 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_create_conn()
2352 if (status) in hci_cs_le_create_conn()
2367 static void hci_cs_le_ext_create_conn(struct hci_dev *hdev, u8 status) in hci_cs_le_ext_create_conn() argument
2371 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_ext_create_conn()
2377 if (status) in hci_cs_le_ext_create_conn()
2392 static void hci_cs_le_read_remote_features(struct hci_dev *hdev, u8 status) in hci_cs_le_read_remote_features() argument
2397 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_read_remote_features()
2399 if (!status) in hci_cs_le_read_remote_features()
2411 hci_connect_cfm(conn, status); in hci_cs_le_read_remote_features()
2419 static void hci_cs_le_start_enc(struct hci_dev *hdev, u8 status) in hci_cs_le_start_enc() argument
2424 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_le_start_enc()
2426 if (!status) in hci_cs_le_start_enc()
2449 static void hci_cs_switch_role(struct hci_dev *hdev, u8 status) in hci_cs_switch_role() argument
2454 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_cs_switch_role()
2456 if (!status) in hci_cs_switch_role()
2474 __u8 status = *((__u8 *) skb->data); in hci_inquiry_complete_evt() local
2478 BT_DBG("%s status 0x%2.2x", hdev->name, status); in hci_inquiry_complete_evt()
2612 if (!ev->status) { in hci_conn_complete_evt()
2658 conn->dst_type, ev->status); in hci_conn_complete_evt()
2662 hci_sco_setup(conn, ev->status); in hci_conn_complete_evt()
2664 if (ev->status) { in hci_conn_complete_evt()
2665 hci_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
2675 hci_connect_cfm(conn, ev->status); in hci_conn_complete_evt()
2813 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_complete_evt()
2821 if (ev->status) { in hci_disconn_complete_evt()
2823 conn->dst_type, ev->status); in hci_disconn_complete_evt()
2901 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_auth_complete_evt()
2909 if (!ev->status) { in hci_auth_complete_evt()
2920 if (ev->status == HCI_ERROR_PIN_OR_KEY_MISSING) in hci_auth_complete_evt()
2923 mgmt_auth_failed(conn, ev->status); in hci_auth_complete_evt()
2930 if (!ev->status && hci_conn_ssp_enabled(conn)) { in hci_auth_complete_evt()
2938 hci_connect_cfm(conn, ev->status); in hci_auth_complete_evt()
2942 hci_auth_cfm(conn, ev->status); in hci_auth_complete_evt()
2950 if (!ev->status) { in hci_auth_complete_evt()
2958 hci_encrypt_cfm(conn, ev->status); in hci_auth_complete_evt()
2982 if (ev->status == 0) in hci_remote_name_evt()
3008 static void read_enc_key_size_complete(struct hci_dev *hdev, u8 status, in read_enc_key_size_complete() argument
3015 BT_DBG("%s status 0x%02x", hdev->name, status); in read_enc_key_size_complete()
3035 if (rp->status) { in read_enc_key_size_complete()
3054 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_encrypt_change_evt()
3062 if (!ev->status) { in hci_encrypt_change_evt()
3085 if (ev->status && conn->type == LE_LINK) { in hci_encrypt_change_evt()
3094 ev->status = HCI_ERROR_AUTH_FAILURE; in hci_encrypt_change_evt()
3096 if (ev->status && conn->state == BT_CONNECTED) { in hci_encrypt_change_evt()
3097 if (ev->status == HCI_ERROR_PIN_OR_KEY_MISSING) in hci_encrypt_change_evt()
3103 hci_encrypt_cfm(conn, ev->status); in hci_encrypt_change_evt()
3110 if (!ev->status && ev->encrypt && conn->type == ACL_LINK) { in hci_encrypt_change_evt()
3157 hci_encrypt_cfm(conn, ev->status); in hci_encrypt_change_evt()
3169 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_change_link_key_complete_evt()
3175 if (!ev->status) in hci_change_link_key_complete_evt()
3180 hci_key_change_cfm(conn, ev->status); in hci_change_link_key_complete_evt()
3192 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_remote_features_evt()
3200 if (!ev->status) in hci_remote_features_evt()
3206 if (!ev->status && lmp_ext_feat_capable(hdev) && in hci_remote_features_evt()
3216 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_features_evt()
3227 hci_connect_cfm(conn, ev->status); in hci_remote_features_evt()
3236 u16 *opcode, u8 *status, in hci_cmd_complete_evt() argument
3243 *status = skb->data[sizeof(*ev)]; in hci_cmd_complete_evt()
3249 hci_cc_inquiry_cancel(hdev, skb, status); in hci_cmd_complete_evt()
3595 hci_req_cmd_complete(hdev, *opcode, *status, req_complete, in hci_cmd_complete_evt()
3609 u16 *opcode, u8 *status, in hci_cmd_status_evt() argument
3618 *status = ev->status; in hci_cmd_status_evt()
3622 hci_cs_inquiry(hdev, ev->status); in hci_cmd_status_evt()
3626 hci_cs_create_conn(hdev, ev->status); in hci_cmd_status_evt()
3630 hci_cs_disconnect(hdev, ev->status); in hci_cmd_status_evt()
3634 hci_cs_add_sco(hdev, ev->status); in hci_cmd_status_evt()
3638 hci_cs_auth_requested(hdev, ev->status); in hci_cmd_status_evt()
3642 hci_cs_set_conn_encrypt(hdev, ev->status); in hci_cmd_status_evt()
3646 hci_cs_remote_name_req(hdev, ev->status); in hci_cmd_status_evt()
3650 hci_cs_read_remote_features(hdev, ev->status); in hci_cmd_status_evt()
3654 hci_cs_read_remote_ext_features(hdev, ev->status); in hci_cmd_status_evt()
3658 hci_cs_setup_sync_conn(hdev, ev->status); in hci_cmd_status_evt()
3662 hci_cs_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
3666 hci_cs_exit_sniff_mode(hdev, ev->status); in hci_cmd_status_evt()
3670 hci_cs_switch_role(hdev, ev->status); in hci_cmd_status_evt()
3674 hci_cs_le_create_conn(hdev, ev->status); in hci_cmd_status_evt()
3678 hci_cs_le_read_remote_features(hdev, ev->status); in hci_cmd_status_evt()
3682 hci_cs_le_start_enc(hdev, ev->status); in hci_cmd_status_evt()
3686 hci_cs_le_ext_create_conn(hdev, ev->status); in hci_cmd_status_evt()
3706 if (ev->status || in hci_cmd_status_evt()
3708 hci_req_cmd_complete(hdev, *opcode, ev->status, req_complete, in hci_cmd_status_evt()
3735 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_role_change_evt()
3741 if (!ev->status) in hci_role_change_evt()
3746 hci_role_switch_cfm(conn, ev->status, ev->role); in hci_role_change_evt()
3896 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_mode_change_evt()
3913 hci_sco_setup(conn, ev->status); in hci_mode_change_evt()
4114 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_clock_offset_evt()
4119 if (conn && !ev->status) { in hci_clock_offset_evt()
4137 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_pkt_type_change_evt()
4142 if (conn && !ev->status) in hci_pkt_type_change_evt()
4254 if (!ev->status && ev->page == 0x01) { in hci_remote_ext_features_evt()
4282 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) { in hci_remote_ext_features_evt()
4293 hci_connect_cfm(conn, ev->status); in hci_remote_ext_features_evt()
4307 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_sync_conn_complete_evt()
4330 switch (ev->status) { in hci_sync_conn_complete_evt()
4389 hci_connect_cfm(conn, ev->status); in hci_sync_conn_complete_evt()
4390 if (ev->status) in hci_sync_conn_complete_evt()
4470 BT_DBG("%s status 0x%2.2x handle 0x%4.4x", hdev->name, ev->status, in hci_key_refresh_complete_evt()
4485 if (!ev->status) in hci_key_refresh_complete_evt()
4490 if (ev->status && conn->state == BT_CONNECTED) { in hci_key_refresh_complete_evt()
4497 if (!ev->status) in hci_key_refresh_complete_evt()
4500 hci_connect_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
4503 hci_auth_cfm(conn, ev->status); in hci_key_refresh_complete_evt()
4840 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status) in hci_simple_pair_complete_evt()
4841 mgmt_auth_failed(conn, ev->status); in hci_simple_pair_complete_evt()
4949 ev->status); in hci_phy_link_complete_evt()
4964 if (ev->status) { in hci_phy_link_complete_evt()
4996 ev->status); in hci_loglink_complete_evt()
5033 le16_to_cpu(ev->handle), ev->status); in hci_disconn_loglink_complete_evt()
5035 if (ev->status) in hci_disconn_loglink_complete_evt()
5056 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_disconn_phylink_complete_evt()
5058 if (ev->status) in hci_disconn_phylink_complete_evt()
5127 static void le_conn_complete_evt(struct hci_dev *hdev, u8 status, in le_conn_complete_evt() argument
5196 if (status) { in le_conn_complete_evt()
5197 hci_le_conn_failed(conn, status); in le_conn_complete_evt()
5247 hci_connect_cfm(conn, status); in le_conn_complete_evt()
5270 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_conn_complete_evt()
5272 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type, in hci_le_conn_complete_evt()
5284 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_enh_conn_complete_evt()
5286 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type, in hci_le_enh_conn_complete_evt()
5303 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_ext_adv_term_evt()
5305 if (ev->status) { in hci_le_ext_adv_term_evt()
5344 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_conn_update_complete_evt()
5346 if (ev->status) in hci_le_conn_update_complete_evt()
5763 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_remote_feat_complete_evt()
5769 if (!ev->status) in hci_le_remote_feat_complete_evt()
5773 __u8 status; in hci_le_remote_feat_complete_evt() local
5785 !conn->out && ev->status == 0x1a) in hci_le_remote_feat_complete_evt()
5786 status = 0x00; in hci_le_remote_feat_complete_evt()
5788 status = ev->status; in hci_le_remote_feat_complete_evt()
5791 hci_connect_cfm(conn, status); in hci_le_remote_feat_complete_evt()
5958 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status); in hci_le_phy_update_evt()
5960 if (ev->status) in hci_le_phy_update_evt()
6159 u8 status = 0, event = hdr->evt, req_evt = 0; in hci_event_packet() local
6170 hci_req_cmd_complete(hdev, opcode, status, &req_complete, in hci_event_packet()
6231 hci_cmd_complete_evt(hdev, skb, &opcode, &status, in hci_event_packet()
6236 hci_cmd_status_evt(hdev, skb, &opcode, &status, &req_complete, in hci_event_packet()
6376 req_complete(hdev, status, opcode); in hci_event_packet()
6382 req_complete_skb(hdev, status, opcode, orig_skb); in hci_event_packet()