aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2015-01-12 22:15:48 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-24 17:37:42 (GMT)
commit893e152e641ca27e9b0a4d6e9973b24a8c273ba4 (patch)
treed1faef5099d03568db3c5702d3d34688cc96075e
parentf45bae5b815e4a9c756dd979e1465e02180242f1 (diff)
downloadhostap-893e152e641ca27e9b0a4d6e9973b24a8c273ba4.zip
hostap-893e152e641ca27e9b0a4d6e9973b24a8c273ba4.tar.gz
hostap-893e152e641ca27e9b0a4d6e9973b24a8c273ba4.tar.bz2
Interworking: More debug messages
And convert some wpa_printf to wpa_msg. Signed-off-by: Ben Greear <greearb@candelatech.com>
-rw-r--r--wpa_supplicant/interworking.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index f938810..5ea046f 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1854,22 +1854,29 @@ static struct wpa_cred * interworking_credentials_available_3gpp(
int ret;
int is_excluded = 0;
- if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL)
+ if (bss->anqp == NULL || bss->anqp->anqp_3gpp == NULL) {
+ wpa_msg(wpa_s, MSG_DEBUG,
+ "interworking-avail-3gpp: not avail, anqp: %p anqp_3gpp: %p",
+ bss->anqp, bss->anqp ? bss->anqp->anqp_3gpp : NULL);
return NULL;
+ }
#ifdef CONFIG_EAP_PROXY
if (!wpa_s->imsi[0]) {
size_t len;
- wpa_printf(MSG_DEBUG, "Interworking: IMSI not available - try to read again through eap_proxy");
+ wpa_msg(wpa_s, MSG_DEBUG,
+ "Interworking: IMSI not available - try to read again through eap_proxy");
wpa_s->mnc_len = eapol_sm_get_eap_proxy_imsi(wpa_s->eapol,
wpa_s->imsi,
&len);
if (wpa_s->mnc_len > 0) {
wpa_s->imsi[len] = '\0';
- wpa_printf(MSG_DEBUG, "eap_proxy: IMSI %s (MNC length %d)",
- wpa_s->imsi, wpa_s->mnc_len);
+ wpa_msg(wpa_s, MSG_DEBUG,
+ "eap_proxy: IMSI %s (MNC length %d)",
+ wpa_s->imsi, wpa_s->mnc_len);
} else {
- wpa_printf(MSG_DEBUG, "eap_proxy: IMSI not available");
+ wpa_msg(wpa_s, MSG_DEBUG,
+ "eap_proxy: IMSI not available");
}
}
#endif /* CONFIG_EAP_PROXY */