aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-17 13:52:20 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-17 19:53:15 -0500
commit38da1703060a520e69b00405f9bdf765d1396cd0 (patch)
tree40ecf418532711b858635ae05431ba7819d97195 /include/net
parentc19a495c8bccc15acd299f26d72b5d51eb3acb1d (diff)
Bluetooth: Use shorter "rand" name for "randomizer"
The common short form of "randomizer" is "rand" in many places (including the Bluetooth specification). The shorter version also makes for easier to read code with less forced line breaks. This patch renames all occurences of "randomizer" to "rand" in the Bluetooth subsystem code. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h12
-rw-r--r--include/net/bluetooth/hci_core.h14
-rw-r--r--include/net/bluetooth/mgmt.h12
3 files changed, 19 insertions, 19 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index d5f85d7746bc..e56f9099f8e3 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -639,7 +639,7 @@ struct hci_cp_user_passkey_reply {
639struct hci_cp_remote_oob_data_reply { 639struct hci_cp_remote_oob_data_reply {
640 bdaddr_t bdaddr; 640 bdaddr_t bdaddr;
641 __u8 hash[16]; 641 __u8 hash[16];
642 __u8 randomizer[16]; 642 __u8 rand[16];
643} __packed; 643} __packed;
644 644
645#define HCI_OP_REMOTE_OOB_DATA_NEG_REPLY 0x0433 645#define HCI_OP_REMOTE_OOB_DATA_NEG_REPLY 0x0433
@@ -731,9 +731,9 @@ struct hci_rp_set_csb {
731struct hci_cp_remote_oob_ext_data_reply { 731struct hci_cp_remote_oob_ext_data_reply {
732 bdaddr_t bdaddr; 732 bdaddr_t bdaddr;
733 __u8 hash192[16]; 733 __u8 hash192[16];
734 __u8 randomizer192[16]; 734 __u8 rand192[16];
735 __u8 hash256[16]; 735 __u8 hash256[16];
736 __u8 randomizer256[16]; 736 __u8 rand256[16];
737} __packed; 737} __packed;
738 738
739#define HCI_OP_SNIFF_MODE 0x0803 739#define HCI_OP_SNIFF_MODE 0x0803
@@ -940,7 +940,7 @@ struct hci_cp_write_ssp_mode {
940struct hci_rp_read_local_oob_data { 940struct hci_rp_read_local_oob_data {
941 __u8 status; 941 __u8 status;
942 __u8 hash[16]; 942 __u8 hash[16];
943 __u8 randomizer[16]; 943 __u8 rand[16];
944} __packed; 944} __packed;
945 945
946#define HCI_OP_READ_INQ_RSP_TX_POWER 0x0c58 946#define HCI_OP_READ_INQ_RSP_TX_POWER 0x0c58
@@ -1024,9 +1024,9 @@ struct hci_cp_write_sc_support {
1024struct hci_rp_read_local_oob_ext_data { 1024struct hci_rp_read_local_oob_ext_data {
1025 __u8 status; 1025 __u8 status;
1026 __u8 hash192[16]; 1026 __u8 hash192[16];
1027 __u8 randomizer192[16]; 1027 __u8 rand192[16];
1028 __u8 hash256[16]; 1028 __u8 hash256[16];
1029 __u8 randomizer256[16]; 1029 __u8 rand256[16];
1030} __packed; 1030} __packed;
1031 1031
1032#define HCI_OP_READ_LOCAL_VERSION 0x1001 1032#define HCI_OP_READ_LOCAL_VERSION 0x1001
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index fe2d5f299e12..a805b3d97c0b 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -140,9 +140,9 @@ struct oob_data {
140 struct list_head list; 140 struct list_head list;
141 bdaddr_t bdaddr; 141 bdaddr_t bdaddr;
142 u8 hash192[16]; 142 u8 hash192[16];
143 u8 randomizer192[16]; 143 u8 rand192[16];
144 u8 hash256[16]; 144 u8 hash256[16];
145 u8 randomizer256[16]; 145 u8 rand256[16];
146}; 146};
147 147
148#define HCI_MAX_SHORT_NAME_LENGTH 10 148#define HCI_MAX_SHORT_NAME_LENGTH 10
@@ -943,10 +943,10 @@ void hci_remote_oob_data_clear(struct hci_dev *hdev);
943struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev, 943struct oob_data *hci_find_remote_oob_data(struct hci_dev *hdev,
944 bdaddr_t *bdaddr); 944 bdaddr_t *bdaddr);
945int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr, 945int hci_add_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr,
946 u8 *hash, u8 *randomizer); 946 u8 *hash, u8 *rand);
947int hci_add_remote_oob_ext_data(struct hci_dev *hdev, bdaddr_t *bdaddr, 947int hci_add_remote_oob_ext_data(struct hci_dev *hdev, bdaddr_t *bdaddr,
948 u8 *hash192, u8 *randomizer192, 948 u8 *hash192, u8 *rand192,
949 u8 *hash256, u8 *randomizer256); 949 u8 *hash256, u8 *rand256);
950int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr); 950int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr);
951 951
952void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb); 952void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb);
@@ -1374,8 +1374,8 @@ void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class,
1374 u8 status); 1374 u8 status);
1375void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status); 1375void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status);
1376void mgmt_read_local_oob_data_complete(struct hci_dev *hdev, u8 *hash192, 1376void mgmt_read_local_oob_data_complete(struct hci_dev *hdev, u8 *hash192,
1377 u8 *randomizer192, u8 *hash256, 1377 u8 *rand192, u8 *hash256, u8 *rand256,
1378 u8 *randomizer256, u8 status); 1378 u8 status);
1379void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, 1379void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
1380 u8 addr_type, u8 *dev_class, s8 rssi, u32 flags, 1380 u8 addr_type, u8 *dev_class, s8 rssi, u32 flags,
1381 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len); 1381 u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len);
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 414cd2f9a437..b391fd663468 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -299,28 +299,28 @@ struct mgmt_cp_user_passkey_neg_reply {
299#define MGMT_READ_LOCAL_OOB_DATA_SIZE 0 299#define MGMT_READ_LOCAL_OOB_DATA_SIZE 0
300struct mgmt_rp_read_local_oob_data { 300struct mgmt_rp_read_local_oob_data {
301 __u8 hash[16]; 301 __u8 hash[16];
302 __u8 randomizer[16]; 302 __u8 rand[16];
303} __packed; 303} __packed;
304struct mgmt_rp_read_local_oob_ext_data { 304struct mgmt_rp_read_local_oob_ext_data {
305 __u8 hash192[16]; 305 __u8 hash192[16];
306 __u8 randomizer192[16]; 306 __u8 rand192[16];
307 __u8 hash256[16]; 307 __u8 hash256[16];
308 __u8 randomizer256[16]; 308 __u8 rand256[16];
309} __packed; 309} __packed;
310 310
311#define MGMT_OP_ADD_REMOTE_OOB_DATA 0x0021 311#define MGMT_OP_ADD_REMOTE_OOB_DATA 0x0021
312struct mgmt_cp_add_remote_oob_data { 312struct mgmt_cp_add_remote_oob_data {
313 struct mgmt_addr_info addr; 313 struct mgmt_addr_info addr;
314 __u8 hash[16]; 314 __u8 hash[16];
315 __u8 randomizer[16]; 315 __u8 rand[16];
316} __packed; 316} __packed;
317#define MGMT_ADD_REMOTE_OOB_DATA_SIZE (MGMT_ADDR_INFO_SIZE + 32) 317#define MGMT_ADD_REMOTE_OOB_DATA_SIZE (MGMT_ADDR_INFO_SIZE + 32)
318struct mgmt_cp_add_remote_oob_ext_data { 318struct mgmt_cp_add_remote_oob_ext_data {
319 struct mgmt_addr_info addr; 319 struct mgmt_addr_info addr;
320 __u8 hash192[16]; 320 __u8 hash192[16];
321 __u8 randomizer192[16]; 321 __u8 rand192[16];
322 __u8 hash256[16]; 322 __u8 hash256[16];
323 __u8 randomizer256[16]; 323 __u8 rand256[16];
324} __packed; 324} __packed;
325#define MGMT_ADD_REMOTE_OOB_EXT_DATA_SIZE (MGMT_ADDR_INFO_SIZE + 64) 325#define MGMT_ADD_REMOTE_OOB_EXT_DATA_SIZE (MGMT_ADDR_INFO_SIZE + 64)
326 326