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>
This commit is contained in:
Johan Hedberg 2014-06-16 19:25:18 +03:00 committed by Marcel Holtmann
parent ddf4ba078f
commit 533e35d401
1 changed files with 7 additions and 5 deletions

View File

@ -35,11 +35,13 @@
#define AUTH_REQ_MASK 0x07 #define AUTH_REQ_MASK 0x07
#define SMP_FLAG_TK_VALID 1 enum {
#define SMP_FLAG_CFM_PENDING 2 SMP_FLAG_TK_VALID,
#define SMP_FLAG_MITM_AUTH 3 SMP_FLAG_CFM_PENDING,
#define SMP_FLAG_COMPLETE 4 SMP_FLAG_MITM_AUTH,
#define SMP_FLAG_INITIATOR 5 SMP_FLAG_COMPLETE,
SMP_FLAG_INITIATOR,
};
struct smp_chan { struct smp_chan {
struct l2cap_conn *conn; struct l2cap_conn *conn;