aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-09-22 12:23:00 (GMT)
committerJouni Malinen <j@w1.fi>2017-09-22 15:43:41 (GMT)
commita7297ae5cbfef9b2fd8c5878e89fe2aa1e6ac6e2 (patch)
tree52a46791e41c46244be0f6df9d6c8d3d1e611b35 /hostapd
parent29c940e7a678dff7404f91a92ef948418e087c9e (diff)
downloadhostap-a7297ae5cbfef9b2fd8c5878e89fe2aa1e6ac6e2.zip
hostap-a7297ae5cbfef9b2fd8c5878e89fe2aa1e6ac6e2.tar.gz
hostap-a7297ae5cbfef9b2fd8c5878e89fe2aa1e6ac6e2.tar.bz2
Fix hostapd debug messages on wpa_pairwise and rsn_pairwise parsing
Incorrect value was printed out as the line number for this messages. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 880998b..5f1032f 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2628,7 +2628,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
if (bss->wpa_pairwise &
(WPA_CIPHER_NONE | WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104)) {
wpa_printf(MSG_ERROR, "Line %d: unsupported pairwise cipher suite '%s'",
- bss->wpa_pairwise, pos);
+ line, pos);
return 1;
}
} else if (os_strcmp(buf, "rsn_pairwise") == 0) {
@@ -2638,7 +2638,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
if (bss->rsn_pairwise &
(WPA_CIPHER_NONE | WPA_CIPHER_WEP40 | WPA_CIPHER_WEP104)) {
wpa_printf(MSG_ERROR, "Line %d: unsupported pairwise cipher suite '%s'",
- bss->rsn_pairwise, pos);
+ line, pos);
return 1;
}
#ifdef CONFIG_RSN_PREAUTH