aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-10-07 01:14:51 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-18 11:13:45 (GMT)
commitac1bc549483ca2b95eb54ac67ba24a795b763d8f (patch)
treea9cd48e54f6955e08867b0f25e6f21a8548ef6b1 /wpa_supplicant/interworking.c
parent463c8ffbd5bf15dc5158d68fc32347cfb5746a83 (diff)
downloadhostap-ac1bc549483ca2b95eb54ac67ba24a795b763d8f.zip
hostap-ac1bc549483ca2b95eb54ac67ba24a795b763d8f.tar.gz
hostap-ac1bc549483ca2b95eb54ac67ba24a795b763d8f.tar.bz2
Interworking: Add domain_suffix_match for credentials
This allow domain_suffix_match to be specified for a cred block and then get this copied for the network blocks generated from this credential as part of Interworking network selection. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 01acae1..c296386 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1100,6 +1100,11 @@ static int interworking_set_eap_params(struct wpa_ssid *ssid,
wpa_config_set_quoted(ssid, "ca_cert", cred->ca_cert) < 0)
return -1;
+ if (cred->domain_suffix_match && cred->domain_suffix_match[0] &&
+ wpa_config_set_quoted(ssid, "domain_suffix_match",
+ cred->domain_suffix_match) < 0)
+ return -1;
+
return 0;
}