mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
cfg80211: Define IEEE P802.11ai (FILS) information elements
Define the Element IDs and Element ID Extensions from IEEE P802.11ai/D11.0. In addition, add a new cfg80211_find_ext_ie() wrapper to make it easier to find information elements that used the Element ID Extension field. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
60b8084e84
commit
3f817fe718
2 changed files with 41 additions and 0 deletions
|
|
@ -4180,6 +4180,27 @@ static inline const u8 *cfg80211_find_ie(u8 eid, const u8 *ies, int len)
|
|||
return cfg80211_find_ie_match(eid, ies, len, NULL, 0, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* cfg80211_find_ext_ie - find information element with EID Extension in data
|
||||
*
|
||||
* @ext_eid: element ID Extension
|
||||
* @ies: data consisting of IEs
|
||||
* @len: length of data
|
||||
*
|
||||
* Return: %NULL if the extended element ID could not be found or if
|
||||
* the element is invalid (claims to be longer than the given
|
||||
* data), or a pointer to the first byte of the requested
|
||||
* element, that is the byte containing the element ID.
|
||||
*
|
||||
* Note: There are no checks on the element length other than
|
||||
* having to fit into the given data.
|
||||
*/
|
||||
static inline const u8 *cfg80211_find_ext_ie(u8 ext_eid, const u8 *ies, int len)
|
||||
{
|
||||
return cfg80211_find_ie_match(WLAN_EID_EXTENSION, ies, len,
|
||||
&ext_eid, 1, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* cfg80211_find_vendor_ie - find vendor specific information element in data
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue