Reject eap_server_erp hostapd.conf parameter without CONFIG_ERP=y
This provides an explicit error report if runtime configuration is not valid and ERP server functionality cannot be used. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
ba5498d207
commit
427729ee67
1 changed files with 2 additions and 0 deletions
|
@ -2330,8 +2330,10 @@ static int hostapd_config_fill(struct hostapd_config *conf,
|
||||||
} else if (os_strcmp(buf, "pwd_group") == 0) {
|
} else if (os_strcmp(buf, "pwd_group") == 0) {
|
||||||
bss->pwd_group = atoi(pos);
|
bss->pwd_group = atoi(pos);
|
||||||
#endif /* EAP_SERVER_PWD */
|
#endif /* EAP_SERVER_PWD */
|
||||||
|
#ifdef CONFIG_ERP
|
||||||
} else if (os_strcmp(buf, "eap_server_erp") == 0) {
|
} else if (os_strcmp(buf, "eap_server_erp") == 0) {
|
||||||
bss->eap_server_erp = atoi(pos);
|
bss->eap_server_erp = atoi(pos);
|
||||||
|
#endif /* CONFIG_ERP */
|
||||||
#endif /* EAP_SERVER */
|
#endif /* EAP_SERVER */
|
||||||
} else if (os_strcmp(buf, "eap_message") == 0) {
|
} else if (os_strcmp(buf, "eap_message") == 0) {
|
||||||
char *term;
|
char *term;
|
||||||
|
|
Loading…
Reference in a new issue