mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-18 18:29:29 +01:00
mpdu: add auth algorithms for FILS
This commit is contained in:
parent
e15cb7133a
commit
8f3627646a
10
src/mpdu.c
10
src/mpdu.c
@ -598,6 +598,10 @@ static bool validate_authentication_mmpdu(const struct mmpdu_header *mpdu,
|
||||
IE_TYPE_NEIGHBOR_REPORT,
|
||||
IE_TYPE_VENDOR_SPECIFIC,
|
||||
};
|
||||
static const enum ie_type ie_order_fils[] = {
|
||||
IE_TYPE_FILS_SESSION,
|
||||
IE_TYPE_FILS_WRAPPED_DATA,
|
||||
};
|
||||
|
||||
if (len < *offset + 6)
|
||||
return false;
|
||||
@ -630,6 +634,12 @@ static bool validate_authentication_mmpdu(const struct mmpdu_header *mpdu,
|
||||
false);
|
||||
case MMPDU_AUTH_ALGO_SAE:
|
||||
return *offset <= len;
|
||||
case MMPDU_AUTH_ALGO_FILS_SK:
|
||||
case MMPDU_AUTH_ALGO_FILS_SK_PFS:
|
||||
return validate_mgmt_ies(body->ies, len - *offset,
|
||||
ie_order_fils,
|
||||
L_ARRAY_SIZE(ie_order_fils),
|
||||
false);
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
@ -57,6 +57,9 @@ enum mmpdu_authentication_algorithm_number {
|
||||
MMPDU_AUTH_ALGO_SHARED_KEY,
|
||||
MMPDU_AUTH_ALGO_FT,
|
||||
MMPDU_AUTH_ALGO_SAE,
|
||||
MMPDU_AUTH_ALGO_FILS_SK,
|
||||
MMPDU_AUTH_ALGO_FILS_SK_PFS,
|
||||
MMPDU_AUTH_ALGO_FILS_PK,
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user