diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-06-16 12:25:18 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-03 11:42:42 -0400 |
commit | 533e35d40130c040e38ffa3ee0401c8c84da618d (patch) | |
tree | eba19c90e411f1301e929943a24560d1877a5d46 /net/bluetooth/smp.c | |
parent | ddf4ba078f80415a514e175768bf67631beee7eb (diff) |
Bluetooth: Convert SMP flags into an enum
There's no reason to have explicit values for these flags. Convert them
to an enum to be consistent with other similar flags.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r-- | net/bluetooth/smp.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 78b9573f4a73..72c5aa05a489 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c | |||
@@ -35,11 +35,13 @@ | |||
35 | 35 | ||
36 | #define AUTH_REQ_MASK 0x07 | 36 | #define AUTH_REQ_MASK 0x07 |
37 | 37 | ||
38 | #define SMP_FLAG_TK_VALID 1 | 38 | enum { |
39 | #define SMP_FLAG_CFM_PENDING 2 | 39 | SMP_FLAG_TK_VALID, |
40 | #define SMP_FLAG_MITM_AUTH 3 | 40 | SMP_FLAG_CFM_PENDING, |
41 | #define SMP_FLAG_COMPLETE 4 | 41 | SMP_FLAG_MITM_AUTH, |
42 | #define SMP_FLAG_INITIATOR 5 | 42 | SMP_FLAG_COMPLETE, |
43 | SMP_FLAG_INITIATOR, | ||
44 | }; | ||
43 | 45 | ||
44 | struct smp_chan { | 46 | struct smp_chan { |
45 | struct l2cap_conn *conn; | 47 | struct l2cap_conn *conn; |