mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
ie: remove is_ie_default_sae_group_oui
This is no longer used and instead a generic option was added rather than referencing a static OUI list.
This commit is contained in:
parent
b05c1cafcd
commit
8a1f8d1a9a
26
src/ie.c
26
src/ie.c
@ -1509,32 +1509,6 @@ bool is_ie_wpa_ie(const uint8_t *data, uint8_t len)
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* List of vendor OUIs (prefixed with a length byte) which require forcing
|
||||
* the default SAE group.
|
||||
*/
|
||||
static const uint8_t use_default_sae_group_ouis[][5] = {
|
||||
{ 0x04, 0xf4, 0xf5, 0xe8, 0x05 },
|
||||
};
|
||||
|
||||
bool is_ie_default_sae_group_oui(const uint8_t *data, uint16_t len)
|
||||
{
|
||||
unsigned int i;
|
||||
const uint8_t *oui;
|
||||
|
||||
for (i = 0; i < L_ARRAY_SIZE(use_default_sae_group_ouis); i++) {
|
||||
oui = use_default_sae_group_ouis[i];
|
||||
|
||||
if (len < oui[0])
|
||||
continue;
|
||||
|
||||
if (!memcmp(oui + 1, data, oui[0]))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int ie_parse_wpa(struct ie_tlv_iter *iter, struct ie_rsn_info *out_info)
|
||||
{
|
||||
const uint8_t *data = iter->data;
|
||||
|
1
src/ie.h
1
src/ie.h
@ -634,7 +634,6 @@ int ie_parse_wpa_from_data(const uint8_t *data, size_t len,
|
||||
struct ie_rsn_info *info);
|
||||
bool is_ie_wfa_ie(const uint8_t *data, uint8_t len, uint8_t oi_type);
|
||||
bool is_ie_wpa_ie(const uint8_t *data, uint8_t len);
|
||||
bool is_ie_default_sae_group_oui(const uint8_t *data, uint16_t len);
|
||||
|
||||
bool ie_build_wpa(const struct ie_rsn_info *info, uint8_t *to);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user