aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-02-27 19:00:28 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-28 05:36:04 -0500
commitfe39c7b2dacf7fd4dcddc26704d01315ab92b7cb (patch)
tree9eb0ab5c8daa3432201c6e0219468cd851669b06 /include/net/bluetooth/mgmt.h
parenta3172b7eb4a2719711187cfca12097d2326e85a7 (diff)
Bluetooth: Use __le64 type for LE random numbers
The random numbers in Bluetooth Low Energy are 64-bit numbers and should also be little endian since the HCI specification is little endian. Change the whole Low Energy pairing to use __le64 instead of a byte array. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index 62d560624e3d..0326648fd799 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -187,7 +187,7 @@ struct mgmt_ltk_info {
187 __u8 master; 187 __u8 master;
188 __u8 enc_size; 188 __u8 enc_size;
189 __le16 ediv; 189 __le16 ediv;
190 __u8 rand[8]; 190 __le64 rand;
191 __u8 val[16]; 191 __u8 val[16];
192} __packed; 192} __packed;
193 193