3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:39:39 +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:
James Prestwood 2024-05-13 11:00:41 -07:00 committed by Denis Kenzior
parent b05c1cafcd
commit 8a1f8d1a9a
2 changed files with 0 additions and 27 deletions

View File

@ -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;

View File

@ -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);