aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/wpa_auth_glue.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2015-01-12 22:15:45 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-22 23:48:27 (GMT)
commit400de9b1fe403a1a3450a0cc9907a76954b9bd30 (patch)
tree44919c66588451e80f624cebaf61ae99feeb2b84 /src/ap/wpa_auth_glue.c
parentad905e4a794f9beb6b7e2a5b24234f722033c9ea (diff)
downloadhostap-400de9b1fe403a1a3450a0cc9907a76954b9bd30.zip
hostap-400de9b1fe403a1a3450a0cc9907a76954b9bd30.tar.gz
hostap-400de9b1fe403a1a3450a0cc9907a76954b9bd30.tar.bz2
hostapd: Debug messages for dodgy RADIUS servers
These were helpful when tracking down why hostapd did not work properly with a RADIUS server. Signed-hostap: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'src/ap/wpa_auth_glue.c')
-rw-r--r--src/ap/wpa_auth_glue.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 8592b90..7f83207 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -249,12 +249,17 @@ static int hostapd_wpa_auth_get_msk(void *ctx, const u8 *addr, u8 *msk,
struct sta_info *sta;
sta = ap_get_sta(hapd, addr);
- if (sta == NULL)
+ if (sta == NULL) {
+ wpa_printf(MSG_DEBUG, "AUTH_GET_MSK: Cannot find STA");
return -1;
+ }
key = ieee802_1x_get_key(sta->eapol_sm, &keylen);
- if (key == NULL)
+ if (key == NULL) {
+ wpa_printf(MSG_DEBUG, "AUTH_GET_MSK: Key is null, eapol_sm: %p",
+ sta->eapol_sm);
return -1;
+ }
if (keylen > *len)
keylen = *len;