hci_event.c (cfdb0c2d095ac5d7f09cac1317b7d0a9e8178134) hci_event.c (545f2596b907f0747170c7cb71edc74cecf68c5c)
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

--- 1293 unchanged lines hidden (view full) ---

1302 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_WRITE_DEF_DATA_LEN);
1303 if (!sent)
1304 return;
1305
1306 hdev->le_def_tx_len = le16_to_cpu(sent->tx_len);
1307 hdev->le_def_tx_time = le16_to_cpu(sent->tx_time);
1308}
1309
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

--- 1293 unchanged lines hidden (view full) ---

1302 sent = hci_sent_cmd_data(hdev, HCI_OP_LE_WRITE_DEF_DATA_LEN);
1303 if (!sent)
1304 return;
1305
1306 hdev->le_def_tx_len = le16_to_cpu(sent->tx_len);
1307 hdev->le_def_tx_time = le16_to_cpu(sent->tx_time);
1308}
1309
1310static void hci_cc_le_clear_resolv_list(struct hci_dev *hdev,
1311 struct sk_buff *skb)
1312{
1313 __u8 status = *((__u8 *) skb->data);
1314
1315 BT_DBG("%s status 0x%2.2x", hdev->name, status);
1316
1317 if (status)
1318 return;
1319
1320 hci_bdaddr_list_clear(&hdev->le_resolv_list);
1321}
1322
1310static void hci_cc_le_read_resolv_list_size(struct hci_dev *hdev,
1311 struct sk_buff *skb)
1312{
1313 struct hci_rp_le_read_resolv_list_size *rp = (void *) skb->data;
1314
1315 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size);
1316
1317 if (rp->status)

--- 1706 unchanged lines hidden (view full) ---

3024 case HCI_OP_LE_READ_DEF_DATA_LEN:
3025 hci_cc_le_read_def_data_len(hdev, skb);
3026 break;
3027
3028 case HCI_OP_LE_WRITE_DEF_DATA_LEN:
3029 hci_cc_le_write_def_data_len(hdev, skb);
3030 break;
3031
1323static void hci_cc_le_read_resolv_list_size(struct hci_dev *hdev,
1324 struct sk_buff *skb)
1325{
1326 struct hci_rp_le_read_resolv_list_size *rp = (void *) skb->data;
1327
1328 BT_DBG("%s status 0x%2.2x size %u", hdev->name, rp->status, rp->size);
1329
1330 if (rp->status)

--- 1706 unchanged lines hidden (view full) ---

3037 case HCI_OP_LE_READ_DEF_DATA_LEN:
3038 hci_cc_le_read_def_data_len(hdev, skb);
3039 break;
3040
3041 case HCI_OP_LE_WRITE_DEF_DATA_LEN:
3042 hci_cc_le_write_def_data_len(hdev, skb);
3043 break;
3044
3045 case HCI_OP_LE_CLEAR_RESOLV_LIST:
3046 hci_cc_le_clear_resolv_list(hdev, skb);
3047 break;
3048
3032 case HCI_OP_LE_READ_RESOLV_LIST_SIZE:
3033 hci_cc_le_read_resolv_list_size(hdev, skb);
3034 break;
3035
3036 case HCI_OP_LE_READ_MAX_DATA_LEN:
3037 hci_cc_le_read_max_data_len(hdev, skb);
3038 break;
3039

--- 2445 unchanged lines hidden ---
3049 case HCI_OP_LE_READ_RESOLV_LIST_SIZE:
3050 hci_cc_le_read_resolv_list_size(hdev, skb);
3051 break;
3052
3053 case HCI_OP_LE_READ_MAX_DATA_LEN:
3054 hci_cc_le_read_max_data_len(hdev, skb);
3055 break;
3056

--- 2445 unchanged lines hidden ---