eap: fix EAP-SIM/AKA/AKA' after settings change
These EAP methods do not store the identity inside the settings file since it is obtained from the SIM card, then provided to IWD via get_identity method. If the get_identity method is implemented, do not fail the settings check when EAP-Identity is missing.
This commit is contained in:
parent
099f2ecc12
commit
d1a13036d2
|
@ -430,12 +430,15 @@ bool eap_check_settings(struct l_settings *settings, struct l_queue *secrets,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* method may not store identity in settings file */
|
||||||
|
if (!method->get_identity) {
|
||||||
snprintf(setting, sizeof(setting), "%sIdentity", prefix);
|
snprintf(setting, sizeof(setting), "%sIdentity", prefix);
|
||||||
if (!l_settings_get_value(settings, "Security", setting)) {
|
if (!l_settings_get_value(settings, "Security", setting)) {
|
||||||
l_error("Property %s is missing", setting);
|
l_error("Property %s is missing", setting);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!method->check_settings)
|
if (!method->check_settings)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue