aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
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/bluetooth/mgmt.h
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/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h12
1 files changed, 6 insertions, 6 deletions
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