aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-11-22 15:53:27 (GMT)
committerJouni Malinen <j@w1.fi>2012-11-24 10:24:34 (GMT)
commit736d4f2d771df202290bc75472d69b763228af87 (patch)
treed5d5ba517bd2ae56c10c3c6ff4e1c52861da8356 /wpa_supplicant/interworking.c
parentf403dcd648e81beae097d54058ef9acdd881ed46 (diff)
downloadhostap-736d4f2d771df202290bc75472d69b763228af87.zip
hostap-736d4f2d771df202290bc75472d69b763228af87.tar.gz
hostap-736d4f2d771df202290bc75472d69b763228af87.tar.bz2
HS 2.0: Remove temporary network block on cred block removal
If the credential that was used to create a temporary HS 2.0 network block is removed, remove the network block, too. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 6281c73..2f11f20 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -786,6 +786,7 @@ static int interworking_connect_3gpp(struct wpa_supplicant *wpa_s,
ssid = wpa_config_add_network(wpa_s->conf);
if (ssid == NULL)
return -1;
+ ssid->parent_cred = cred;
wpas_notify_network_added(wpa_s, ssid);
wpa_config_set_network_defaults(ssid);
@@ -1095,6 +1096,7 @@ static int interworking_connect_roaming_consortium(
ssid = wpa_config_add_network(wpa_s->conf);
if (ssid == NULL)
return -1;
+ ssid->parent_cred = cred;
wpas_notify_network_added(wpa_s, ssid);
wpa_config_set_network_defaults(ssid);
ssid->priority = cred->priority;
@@ -1209,6 +1211,7 @@ int interworking_connect(struct wpa_supplicant *wpa_s, struct wpa_bss *bss)
nai_realm_free(realm, count);
return -1;
}
+ ssid->parent_cred = cred;
wpas_notify_network_added(wpa_s, ssid);
wpa_config_set_network_defaults(ssid);
ssid->priority = cred->priority;