summaryrefslogtreecommitdiffstats
path: root/contrib/hostapd/config.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-06-13 17:00:32 +0000
committersam <sam@FreeBSD.org>2005-06-13 17:00:32 +0000
commitd1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0 (patch)
tree5b11e5f1130886853d82813087f4d19c53b3e668 /contrib/hostapd/config.c
parent15d1673cd63b48b8c42d611ff8f1b3be6c6748bc (diff)
downloadFreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.zip
FreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.tar.gz
stripped down import of hostapd 0.3.9
Approved by: re (dwhite)
Diffstat (limited to 'contrib/hostapd/config.c')
-rw-r--r--contrib/hostapd/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/hostapd/config.c b/contrib/hostapd/config.c
index ede009a..02ecd79 100644
--- a/contrib/hostapd/config.c
+++ b/contrib/hostapd/config.c
@@ -597,7 +597,8 @@ static int hostapd_config_check(struct hostapd_config *conf)
}
if (conf->wpa && (conf->wpa_key_mgmt & WPA_KEY_MGMT_PSK) &&
- conf->wpa_psk == NULL && conf->wpa_passphrase == NULL) {
+ conf->wpa_psk == NULL && conf->wpa_passphrase == NULL &&
+ conf->wpa_psk_file == NULL) {
printf("WPA-PSK enabled, but PSK or passphrase is not "
"configured.\n");
return -1;
OpenPOWER on IntegriCloud