mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +01:00
ie: Add IE_CIPHER_IS_GCMP_CCMP inline
Similar to IE_AKM_IS_* functions
This commit is contained in:
parent
b3c3b08785
commit
e61cada28f
8
src/ie.h
8
src/ie.h
@ -390,6 +390,14 @@ static inline bool IE_AKM_IS_8021X(uint32_t akm)
|
|||||||
IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384);
|
IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline bool IE_CIPHER_IS_GCMP_CCMP(uint32_t cipher_suite)
|
||||||
|
{
|
||||||
|
return cipher_suite & (IE_RSN_CIPHER_SUITE_CCMP |
|
||||||
|
IE_RSN_CIPHER_SUITE_CCMP_256 |
|
||||||
|
IE_RSN_CIPHER_SUITE_GCMP |
|
||||||
|
IE_RSN_CIPHER_SUITE_GCMP_256);
|
||||||
|
}
|
||||||
|
|
||||||
#define IE_LEN(ie) \
|
#define IE_LEN(ie) \
|
||||||
((ie) ? (ie)[1] + 2 : 0)
|
((ie) ? (ie)[1] + 2 : 0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user