mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
network: set use default ECC group in handshake setup
If either the settings specify it, or the scan_bss is flagged, set the use_default_ecc_group flag in the handshake. This also renames the flag to cover both OWE and SAE
This commit is contained in:
parent
b38f71f221
commit
988f68e916
@ -140,7 +140,7 @@ struct handshake_state {
|
|||||||
bool authenticator_ocvc : 1;
|
bool authenticator_ocvc : 1;
|
||||||
bool supplicant_ocvc : 1;
|
bool supplicant_ocvc : 1;
|
||||||
bool ext_key_id_capable : 1;
|
bool ext_key_id_capable : 1;
|
||||||
bool force_default_owe_group : 1;
|
bool force_default_ecc_group : 1;
|
||||||
uint8_t ssid[32];
|
uint8_t ssid[32];
|
||||||
size_t ssid_len;
|
size_t ssid_len;
|
||||||
char *passphrase;
|
char *passphrase;
|
||||||
|
@ -556,8 +556,8 @@ int network_handshake_setup(struct network *network, struct scan_bss *bss,
|
|||||||
handshake_state_set_protocol_version(hs, eapol_proto_version);
|
handshake_state_set_protocol_version(hs, eapol_proto_version);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hs->akm_suite == IE_RSN_AKM_SUITE_OWE)
|
hs->force_default_ecc_group = network->force_default_ecc_group ||
|
||||||
hs->force_default_owe_group = network->force_default_ecc_group;
|
bss->force_default_sae_group;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The randomization options in the provisioning file are dependent on
|
* The randomization options in the provisioning file are dependent on
|
||||||
|
@ -45,7 +45,7 @@ struct owe_sm {
|
|||||||
|
|
||||||
static bool owe_reset(struct owe_sm *owe)
|
static bool owe_reset(struct owe_sm *owe)
|
||||||
{
|
{
|
||||||
if (owe->hs->force_default_owe_group) {
|
if (owe->hs->force_default_ecc_group) {
|
||||||
if (owe->retry != 0) {
|
if (owe->retry != 0) {
|
||||||
l_warn("Forced default OWE group but was rejected!");
|
l_warn("Forced default OWE group but was rejected!");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user