Bluetooth: Clearly distinguish mgmt LTK type from authenticated property
On the mgmt level we have a key type parameter which currently accepts two possible values: 0x00 for unauthenticated and 0x01 for authenticated. However, in the internal struct smp_ltk representation we have an explicit "authenticated" boolean value. To make this distinction clear, add defines for the possible mgmt values and do conversion to and from the internal authenticated value. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
1cc6114402
commit
d7b2545023
@@ -181,6 +181,9 @@ struct mgmt_cp_load_link_keys {
|
||||
} __packed;
|
||||
#define MGMT_LOAD_LINK_KEYS_SIZE 3
|
||||
|
||||
#define MGMT_LTK_UNAUTHENTICATED 0x00
|
||||
#define MGMT_LTK_AUTHENTICATED 0x01
|
||||
|
||||
struct mgmt_ltk_info {
|
||||
struct mgmt_addr_info addr;
|
||||
__u8 type;
|
||||
|
Reference in New Issue
Block a user