hci_event.c (971e3a4bbcbf7378315b85150853d86be59cffe0) | hci_event.c (f9b49306dc0b9f514ffb275ae853c50d7ccd6856) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 901 unchanged lines hidden (view full) --- 910 BT_DBG("%s status 0x%x", hdev->name, rp->status); 911 912 if (rp->status) 913 return; 914 915 hci_req_complete(hdev, HCI_OP_LE_LTK_NEG_REPLY, rp->status); 916} 917 | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved. 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 901 unchanged lines hidden (view full) --- 910 BT_DBG("%s status 0x%x", hdev->name, rp->status); 911 912 if (rp->status) 913 return; 914 915 hci_req_complete(hdev, HCI_OP_LE_LTK_NEG_REPLY, rp->status); 916} 917 |
918static inline void hci_cc_write_le_host_supported(struct hci_dev *hdev, 919 struct sk_buff *skb) 920{ 921 struct hci_cp_read_local_ext_features cp; 922 __u8 status = *((__u8 *) skb->data); 923 924 BT_DBG("%s status 0x%x", hdev->name, status); 925 926 if (status) 927 return; 928 929 cp.page = 0x01; 930 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_EXT_FEATURES, sizeof(cp), &cp); 931} 932 |
|
918static inline void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) 919{ 920 BT_DBG("%s status 0x%x", hdev->name, status); 921 922 if (status) { 923 hci_req_complete(hdev, HCI_OP_INQUIRY, status); 924 hci_conn_check_pending(hdev); 925 return; --- 990 unchanged lines hidden (view full) --- 1916 case HCI_OP_LE_LTK_REPLY: 1917 hci_cc_le_ltk_reply(hdev, skb); 1918 break; 1919 1920 case HCI_OP_LE_LTK_NEG_REPLY: 1921 hci_cc_le_ltk_neg_reply(hdev, skb); 1922 break; 1923 | 933static inline void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) 934{ 935 BT_DBG("%s status 0x%x", hdev->name, status); 936 937 if (status) { 938 hci_req_complete(hdev, HCI_OP_INQUIRY, status); 939 hci_conn_check_pending(hdev); 940 return; --- 990 unchanged lines hidden (view full) --- 1931 case HCI_OP_LE_LTK_REPLY: 1932 hci_cc_le_ltk_reply(hdev, skb); 1933 break; 1934 1935 case HCI_OP_LE_LTK_NEG_REPLY: 1936 hci_cc_le_ltk_neg_reply(hdev, skb); 1937 break; 1938 |
1939 case HCI_OP_WRITE_LE_HOST_SUPPORTED: 1940 hci_cc_write_le_host_supported(hdev, skb); 1941 break; 1942 |
|
1924 default: 1925 BT_DBG("%s opcode 0x%x", hdev->name, opcode); 1926 break; 1927 } 1928 1929 if (ev->opcode != HCI_OP_NOP) 1930 del_timer(&hdev->cmd_timer); 1931 --- 1120 unchanged lines hidden --- | 1943 default: 1944 BT_DBG("%s opcode 0x%x", hdev->name, opcode); 1945 break; 1946 } 1947 1948 if (ev->opcode != HCI_OP_NOP) 1949 del_timer(&hdev->cmd_timer); 1950 --- 1120 unchanged lines hidden --- |