aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-10-29 11:51:18 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-29 11:57:02 (GMT)
commit7617388ea3547ff59bdef70c5cb2591a951acd11 (patch)
tree878a0ed1f9397ce567101515cb5065fe33624100 /wpa_supplicant/ctrl_iface.c
parentc20bc9d4640f07770e74a72be3a0b2176d89a90e (diff)
downloadhostap-7617388ea3547ff59bdef70c5cb2591a951acd11.zip
hostap-7617388ea3547ff59bdef70c5cb2591a951acd11.tar.gz
hostap-7617388ea3547ff59bdef70c5cb2591a951acd11.tar.bz2
Interworking: Report STATUS:sp_type even if domain is not configured
This allows sp_type={home,roaming,unknown} to be used to determine network type with SIM-based credentials even if the domain name parameter is not configured explicitly. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 809ae0c..801399f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1569,10 +1569,8 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
if (wpa_s->current_ssid->parent_cred != cred)
continue;
- if (!cred->domain)
- continue;
- for (i = 0; i < cred->num_domain; i++) {
+ for (i = 0; cred->domain && i < cred->num_domain; i++) {
ret = os_snprintf(pos, end - pos,
"home_sp=%s\n",
cred->domain[i]);