Lines Matching refs:status
91 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
95 * which case the latter event should have status of Command
100 if (rp->status == 0x0c && !test_bit(HCI_INQUIRY, &hdev->flags)) {
102 rp->status = 0x00;
105 if (rp->status)
106 return rp->status;
123 return rp->status;
131 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
133 if (rp->status)
134 return rp->status;
138 return rp->status;
146 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
148 if (rp->status)
149 return rp->status;
155 return rp->status;
163 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
165 return rp->status;
174 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
176 if (rp->status)
177 return rp->status;
187 return rp->status;
196 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
198 if (rp->status)
199 return rp->status;
209 return rp->status;
219 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
221 if (rp->status)
222 return rp->status;
226 return rp->status;
236 return rp->status;
244 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
246 if (rp->status)
247 return rp->status;
251 return rp->status;
260 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
262 if (rp->status)
263 return rp->status;
267 return rp->status;
271 return rp->status;
278 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
282 if (rp->status)
283 return rp->status;
306 return rp->status;
315 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
319 return rp->status;
321 if (!rp->status && sent->read_all == 0x01) {
326 return rp->status;
335 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
337 if (rp->status)
338 return rp->status;
347 return rp->status;
356 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
360 return rp->status;
365 mgmt_set_local_name_complete(hdev, sent, rp->status);
366 else if (!rp->status)
371 return rp->status;
379 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
381 if (rp->status)
382 return rp->status;
388 return rp->status;
397 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
401 return rp->status;
405 if (!rp->status) {
415 mgmt_auth_enable_complete(hdev, rp->status);
419 return rp->status;
429 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
431 if (rp->status)
432 return rp->status;
436 return rp->status;
445 return rp->status;
455 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
459 return rp->status;
465 if (rp->status) {
483 return rp->status;
493 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
495 if (rp->status)
496 return rp->status;
500 return rp->status;
509 return rp->status;
520 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
522 if (rp->status)
523 return rp->status;
530 return rp->status;
539 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
543 return rp->status;
547 if (!rp->status)
551 mgmt_set_class_of_dev_complete(hdev, sent, rp->status);
555 return rp->status;
564 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
566 if (rp->status)
567 return rp->status;
572 return rp->status;
581 return rp->status;
591 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
593 if (rp->status)
594 return rp->status;
598 return rp->status;
603 return rp->status;
612 return rp->status;
620 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
622 if (rp->status)
623 return rp->status;
629 return rp->status;
638 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
642 return rp->status;
646 if (!rp->status) {
653 if (!rp->status) {
662 return rp->status;
671 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
675 return rp->status;
679 if (!rp->status) {
686 if (!hci_dev_test_flag(hdev, HCI_MGMT) && !rp->status) {
695 return rp->status;
703 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
705 if (rp->status)
706 return rp->status;
717 return rp->status;
726 u8 status = rp->status;
728 bt_dev_dbg(hdev, "status 0x%2.2x", status);
736 status = 0xFF;
744 if (status) {
750 status = 0;
756 * nothing with the non-zero status.
761 status = HCI_ERROR_AUTH_FAILURE;
767 hci_encrypt_cfm(conn, status);
772 return status;
780 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
782 if (rp->status)
783 return rp->status;
789 return rp->status;
798 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
800 if (rp->status)
801 return rp->status;
811 return rp->status;
821 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
825 return rp->status;
831 rp->status = 0xff;
835 if (!rp->status)
841 return rp->status;
849 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
851 if (rp->status)
852 return rp->status;
893 return rp->status;
901 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
903 if (rp->status)
904 return rp->status;
917 return rp->status;
925 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
927 if (rp->status)
928 return rp->status;
932 return rp->status;
940 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
942 if (rp->status)
943 return rp->status;
961 return rp->status;
969 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
971 if (rp->status)
972 return rp->status;
980 return rp->status;
988 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
990 if (rp->status)
991 return rp->status;
999 return rp->status;
1007 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1009 if (rp->status)
1010 return rp->status;
1017 return rp->status;
1026 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1028 if (rp->status)
1029 return rp->status;
1033 return rp->status;
1038 return rp->status;
1046 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1048 if (rp->status)
1049 return rp->status;
1054 return rp->status;
1063 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1065 if (rp->status)
1066 return rp->status;
1072 return rp->status;
1080 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1082 if (rp->status)
1083 return rp->status;
1094 return rp->status;
1104 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1106 if (rp->status)
1107 return rp->status;
1128 return rp->status;
1136 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1138 if (rp->status)
1139 return rp->status;
1152 return rp->status;
1160 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1162 if (rp->status)
1163 return rp->status;
1167 return rp->status;
1175 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1177 if (rp->status)
1178 return rp->status;
1182 return rp->status;
1191 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1193 if (rp->status)
1194 return rp->status;
1198 return rp->status;
1202 return rp->status;
1212 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1217 mgmt_pin_code_reply_complete(hdev, &rp->bdaddr, rp->status);
1219 if (rp->status)
1232 return rp->status;
1240 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1246 rp->status);
1250 return rp->status;
1258 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1260 if (rp->status)
1261 return rp->status;
1270 return rp->status;
1278 BT_DBG("%s status 0x%2.2x", hdev->name, rp->status);
1280 if (rp->status)
1281 return rp->status;
1285 return rp->status;
1293 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1295 if (rp->status)
1296 return rp->status;
1300 return rp->status;
1308 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1314 rp->status);
1318 return rp->status;
1326 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1332 ACL_LINK, 0, rp->status);
1336 return rp->status;
1344 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1350 0, rp->status);
1354 return rp->status;
1362 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1368 ACL_LINK, 0, rp->status);
1372 return rp->status;
1380 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1382 return rp->status;
1390 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1392 return rp->status;
1401 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1403 if (rp->status)
1404 return rp->status;
1408 return rp->status;
1422 return rp->status;
1431 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1433 if (rp->status)
1434 return rp->status;
1438 return rp->status;
1447 return rp->status;
1457 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1459 if (rp->status)
1460 return rp->status;
1468 return rp->status;
1485 return rp->status;
1495 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1497 if (rp->status)
1498 return rp->status;
1502 return rp->status;
1513 return rp->status;
1523 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1525 if (rp->status)
1526 return rp->status;
1529 return rp->status;
1544 return rp->status;
1552 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1554 if (rp->status)
1555 return rp->status;
1560 return rp->status;
1570 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1572 if (rp->status)
1573 return rp->status;
1577 return rp->status;
1587 return rp->status;
1596 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1598 if (rp->status)
1599 return rp->status;
1603 return rp->status;
1626 return rp->status;
1637 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1639 if (rp->status)
1640 return rp->status;
1644 return rp->status;
1691 return rp->status;
1700 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1702 if (rp->status)
1703 return rp->status;
1707 return rp->status;
1715 return rp->status;
1725 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1727 if (rp->status)
1728 return rp->status;
1732 return rp->status;
1742 return rp->status;
1839 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1841 if (rp->status)
1842 return rp->status;
1846 return rp->status;
1850 return rp->status;
1859 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1861 if (rp->status)
1862 return rp->status;
1866 return rp->status;
1870 return rp->status;
1878 bt_dev_dbg(hdev, "status 0x%2.2x No of Adv sets %u", rp->status,
1881 if (rp->status)
1882 return rp->status;
1886 return rp->status;
1894 bt_dev_dbg(hdev, "status 0x%2.2x size %u", rp->status, rp->size);
1896 if (rp->status)
1897 return rp->status;
1901 return rp->status;
1909 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1911 if (rp->status)
1912 return rp->status;
1918 return rp->status;
1927 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1929 if (rp->status)
1930 return rp->status;
1934 return rp->status;
1941 return rp->status;
1950 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1952 if (rp->status)
1953 return rp->status;
1957 return rp->status;
1964 return rp->status;
1972 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1974 if (rp->status)
1975 return rp->status;
1979 return rp->status;
1987 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
1989 if (rp->status)
1990 return rp->status;
1995 return rp->status;
2004 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2006 if (rp->status)
2007 return rp->status;
2011 return rp->status;
2016 return rp->status;
2025 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2027 if (rp->status)
2028 return rp->status;
2032 return rp->status;
2040 return rp->status;
2049 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2051 if (rp->status)
2052 return rp->status;
2056 return rp->status;
2063 return rp->status;
2071 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2073 if (rp->status)
2074 return rp->status;
2080 return rp->status;
2088 bt_dev_dbg(hdev, "status 0x%2.2x size %u", rp->status, rp->size);
2090 if (rp->status)
2091 return rp->status;
2095 return rp->status;
2104 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2106 if (rp->status)
2107 return rp->status;
2111 return rp->status;
2122 return rp->status;
2130 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2132 if (rp->status)
2133 return rp->status;
2140 return rp->status;
2149 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2151 if (rp->status)
2152 return rp->status;
2156 return rp->status;
2176 return rp->status;
2185 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2187 if (rp->status)
2188 return rp->status;
2192 return rp->status;
2198 return rp->status;
2208 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2210 if (rp->status)
2211 return rp->status;
2215 return rp->status;
2232 return rp->status;
2241 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2243 if (rp->status)
2244 return rp->status;
2254 return rp->status;
2264 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2266 if (rp->status)
2267 return rp->status;
2271 return rp->status;
2290 return rp->status;
2299 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
2301 if (rp->status)
2302 return rp->status;
2308 return rp->status;
2311 static void hci_cs_inquiry(struct hci_dev *hdev, __u8 status)
2313 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2315 if (status) {
2324 static void hci_cs_create_conn(struct hci_dev *hdev, __u8 status)
2329 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2341 if (status) {
2343 if (status != 0x0c || conn->attempt > 2) {
2345 hci_connect_cfm(conn, status);
2362 static void hci_cs_add_sco(struct hci_dev *hdev, __u8 status)
2369 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2371 if (!status)
2391 hci_connect_cfm(link->conn, status);
2399 static void hci_cs_auth_requested(struct hci_dev *hdev, __u8 status)
2404 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2406 if (!status)
2418 hci_connect_cfm(conn, status);
2426 static void hci_cs_set_conn_encrypt(struct hci_dev *hdev, __u8 status)
2431 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2433 if (!status)
2445 hci_connect_cfm(conn, status);
2560 static void hci_cs_remote_name_req(struct hci_dev *hdev, __u8 status)
2565 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2569 if (!status)
2603 static void hci_cs_read_remote_features(struct hci_dev *hdev, __u8 status)
2608 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2610 if (!status)
2622 hci_connect_cfm(conn, status);
2630 static void hci_cs_read_remote_ext_features(struct hci_dev *hdev, __u8 status)
2635 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2637 if (!status)
2649 hci_connect_cfm(conn, status);
2658 __u8 status)
2663 bt_dev_dbg(hdev, "handle 0x%4.4x status 0x%2.2x", handle, status);
2674 hci_connect_cfm(link->conn, status);
2682 static void hci_cs_setup_sync_conn(struct hci_dev *hdev, __u8 status)
2686 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2688 if (!status)
2695 hci_setup_sync_conn_status(hdev, __le16_to_cpu(cp->handle), status);
2698 static void hci_cs_enhanced_setup_sync_conn(struct hci_dev *hdev, __u8 status)
2702 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2704 if (!status)
2711 hci_setup_sync_conn_status(hdev, __le16_to_cpu(cp->handle), status);
2714 static void hci_cs_sniff_mode(struct hci_dev *hdev, __u8 status)
2719 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2721 if (!status)
2735 hci_sco_setup(conn, status);
2741 static void hci_cs_exit_sniff_mode(struct hci_dev *hdev, __u8 status)
2746 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2748 if (!status)
2762 hci_sco_setup(conn, status);
2768 static void hci_cs_disconnect(struct hci_dev *hdev, u8 status)
2775 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2777 /* Wait for HCI_EV_DISCONN_COMPLETE if status 0x00 and not suspended
2780 if (!status && !hdev->suspended)
2793 if (status) {
2795 conn->dst_type, status);
2899 static void hci_cs_le_create_conn(struct hci_dev *hdev, u8 status)
2903 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2909 if (status)
2924 static void hci_cs_le_ext_create_conn(struct hci_dev *hdev, u8 status)
2928 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2934 if (status)
2949 static void hci_cs_le_read_remote_features(struct hci_dev *hdev, u8 status)
2954 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2956 if (!status)
2968 hci_connect_cfm(conn, status);
2976 static void hci_cs_le_start_enc(struct hci_dev *hdev, u8 status)
2981 bt_dev_dbg(hdev, "status 0x%2.2x", status);
2983 if (!status)
3006 static void hci_cs_switch_role(struct hci_dev *hdev, u8 status)
3011 BT_DBG("%s status 0x%2.2x", hdev->name, status);
3013 if (!status)
3036 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3139 u8 status = ev->status;
3141 bt_dev_dbg(hdev, "status 0x%2.2x", status);
3147 /* In case of error status and there is no connection pending
3150 if (ev->status)
3196 if (!status) {
3197 status = hci_conn_set_handle(conn, __le16_to_cpu(ev->handle));
3198 if (status)
3243 hci_sco_setup(conn, ev->status);
3246 if (status) {
3247 hci_conn_failed(conn, status);
3256 hci_connect_cfm(conn, status);
3407 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3415 if (ev->status) {
3417 conn->dst_type, ev->status);
3489 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3497 if (!ev->status) {
3502 if (ev->status == HCI_ERROR_PIN_OR_KEY_MISSING)
3505 mgmt_auth_failed(conn, ev->status);
3511 if (!ev->status && hci_conn_ssp_enabled(conn)) {
3519 hci_connect_cfm(conn, ev->status);
3523 hci_auth_cfm(conn, ev->status);
3531 if (!ev->status) {
3539 hci_encrypt_cfm(conn, ev->status);
3553 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3562 if (ev->status == 0)
3594 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3602 if (!ev->status) {
3625 if (ev->status && conn->type == LE_LINK) {
3634 ev->status = HCI_ERROR_AUTH_FAILURE;
3636 if (ev->status && conn->state == BT_CONNECTED) {
3637 if (ev->status == HCI_ERROR_PIN_OR_KEY_MISSING)
3643 hci_encrypt_cfm(conn, ev->status);
3650 if (!ev->status && ev->encrypt && conn->type == ACL_LINK) {
3694 hci_encrypt_cfm(conn, ev->status);
3706 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3712 if (!ev->status)
3717 hci_key_change_cfm(conn, ev->status);
3729 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
3737 if (!ev->status)
3743 if (!ev->status && lmp_ext_feat_capable(hdev) &&
3753 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) {
3765 hci_connect_cfm(conn, ev->status);
3796 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3798 if (rp->status)
3799 return rp->status;
3812 return rp->status;
3815 static void hci_unbound_cis_failed(struct hci_dev *hdev, u8 cig, u8 status)
3827 hci_conn_failed(conn, status);
3837 u8 status = rp->status;
3841 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3844 if (!rp->status && (!cp || rp->num_handles != cp->num_cis ||
3847 status = HCI_ERROR_UNSPECIFIED;
3858 if (status) {
3860 hci_unbound_cis_failed(hdev, rp->cig_id, status);
3893 return rp->status;
3903 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3907 return rp->status;
3915 if (rp->status) {
3916 hci_connect_cfm(conn, rp->status);
3926 hci_connect_cfm(conn, rp->status);
3933 hci_connect_cfm(conn, rp->status);
3936 if (!rp->status && test_bit(HCI_CONN_BIG_SYNC, &conn->flags))
3944 return rp->status;
3947 static void hci_cs_le_create_big(struct hci_dev *hdev, u8 status)
3949 bt_dev_dbg(hdev, "status 0x%2.2x", status);
3958 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3960 if (rp->status)
3961 return rp->status;
3965 return rp->status;
3968 return rp->status;
3979 bt_dev_dbg(hdev, "status 0x%2.2x", rp->status);
3981 if (rp->status)
3982 return rp->status;
3986 return rp->status;
4018 return rp->status;
4237 struct sk_buff *skb, u16 *opcode, u8 *status,
4250 *status = hci_cc_func(hdev, &hci_cc_table[i], skb);
4256 /* Unknown opcode, assume byte 0 contains the status, so
4261 * the status.
4263 *status = skb->data[0];
4268 hci_req_cmd_complete(hdev, *opcode, *status, req_complete,
4281 static void hci_cs_le_create_cis(struct hci_dev *hdev, u8 status)
4287 bt_dev_dbg(hdev, "status 0x%2.2x", status);
4289 if (!status)
4311 hci_connect_cfm(conn, status);
4330 void (*func)(struct hci_dev *hdev, __u8 status);
4357 struct sk_buff *skb, u16 *opcode, u8 *status,
4365 *status = ev->status;
4371 hci_cs_table[i].func(hdev, ev->status);
4380 * command status we should try to flag the request as completed
4384 if (ev->status || (hdev->req_skb && !hci_skb_event(hdev->req_skb))) {
4385 hci_req_cmd_complete(hdev, *opcode, ev->status, req_complete,
4416 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
4422 if (!ev->status)
4427 hci_role_switch_cfm(conn, ev->status, ev->role);
4593 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
4610 hci_sco_setup(conn, ev->status);
4821 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
4826 if (conn && !ev->status) {
4845 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
4850 if (conn && !ev->status)
4968 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
4979 if (!ev->status && ev->page == 0x01) {
5007 if (!ev->status && !test_bit(HCI_CONN_MGMT_CONNECTED, &conn->flags)) {
5019 hci_connect_cfm(conn, ev->status);
5032 u8 status = ev->status;
5047 bt_dev_dbg(hdev, "status 0x%2.2x", status);
5081 switch (status) {
5083 status = hci_conn_set_handle(conn, __le16_to_cpu(ev->handle));
5084 if (status) {
5132 hci_connect_cfm(conn, status);
5133 if (status)
5218 bt_dev_dbg(hdev, "status 0x%2.2x handle 0x%4.4x", ev->status,
5233 if (!ev->status)
5238 if (ev->status && conn->state == BT_CONNECTED) {
5245 if (!ev->status)
5248 hci_connect_cfm(conn, ev->status);
5251 hci_auth_cfm(conn, ev->status);
5594 if (!test_bit(HCI_CONN_AUTH_PEND, &conn->flags) && ev->status)
5595 mgmt_auth_failed(conn, ev->status);
5701 bt_dev_dbg(hdev, "handle 0x%2.2x status 0x%2.2x", ev->phy_handle,
5702 ev->status);
5713 if (ev->status) {
5744 bt_dev_dbg(hdev, "log_handle 0x%4.4x phy_handle 0x%2.2x status 0x%2.2x",
5745 le16_to_cpu(ev->handle), ev->phy_handle, ev->status);
5781 bt_dev_dbg(hdev, "handle 0x%4.4x status 0x%2.2x",
5782 le16_to_cpu(ev->handle), ev->status);
5784 if (ev->status)
5805 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
5807 if (ev->status)
5876 static void le_conn_complete_evt(struct hci_dev *hdev, u8 status,
5896 /* In case of error status and there is no connection pending
5899 if (status)
5968 if (status || hci_conn_set_handle(conn, handle))
6028 hci_connect_cfm(conn, status);
6052 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6054 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type,
6066 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6068 le_conn_complete_evt(hdev, ev->status, &ev->bdaddr, ev->bdaddr_type,
6082 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6091 if (ev->status == HCI_ERROR_CANCELLED_BY_HOST) {
6100 if (ev->status) {
6151 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6153 if (ev->status)
6609 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6624 if (ev->status) {
6635 hci_connect_cfm(pa_sync, ev->status);
6666 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6672 if (!ev->status)
6676 __u8 status;
6687 if (!conn->out && ev->status == 0x1a &&
6689 status = 0x00;
6691 status = ev->status;
6694 hci_connect_cfm(conn, status);
6877 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6879 if (ev->status)
6904 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
6960 if (!ev->status) {
6969 hci_connect_cfm(conn, ev->status);
7064 BT_DBG("%s status 0x%2.2x", hdev->name, ev->status);
7084 if (!ev->status) {
7095 hci_connect_cfm(conn, ev->status);
7103 if (!ev->status && !i)
7123 bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
7131 if (!ev->status) {
7152 if (ev->status != 0x42)
7164 if (!ev->status) {
7173 if (ev->status)
7180 hci_connect_cfm(bis, ev->status);
7330 struct sk_buff *skb, u16 *opcode, u8 *status,
7521 struct sk_buff *skb, u16 *opcode, u8 *status,
7669 u16 *opcode, u8 *status,
7699 ev->func_req(hdev, data, skb, opcode, status, req_complete,
7711 u8 status = 0, event, req_evt = 0;
7734 status, &req_complete, &req_complete_skb);
7754 hci_event_func(hdev, event, skb, &opcode, &status, &req_complete,
7758 req_complete(hdev, status, opcode);
7764 req_complete_skb(hdev, status, opcode, orig_skb);