aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/hs20_supplicant.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2014-06-30 16:59:17 (GMT)
committerJouni Malinen <j@w1.fi>2014-07-02 11:01:01 (GMT)
commite376290c667e970d751acc916e0efe2ed16292ed (patch)
treeb55cc9bd7e0f17f990acd8bb4d506cc2f74c7586 /wpa_supplicant/hs20_supplicant.c
parent5bc285716e0be67b70d6b163dab021d60188bb60 (diff)
downloadhostap-e376290c667e970d751acc916e0efe2ed16292ed.zip
hostap-e376290c667e970d751acc916e0efe2ed16292ed.tar.gz
hostap-e376290c667e970d751acc916e0efe2ed16292ed.tar.bz2
HS 2.0R2: Add update_identifier field to network
This can be used to configure a Hotspot 2.0 Release 2 network externally for a case where wpa_supplicant-based Interworking network selection is not used and the update_identifier cannot be copied directly from a cred. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wpa_supplicant/hs20_supplicant.c')
-rw-r--r--wpa_supplicant/hs20_supplicant.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/wpa_supplicant/hs20_supplicant.c b/wpa_supplicant/hs20_supplicant.c
index ab8b66b..257aa6d 100644
--- a/wpa_supplicant/hs20_supplicant.c
+++ b/wpa_supplicant/hs20_supplicant.c
@@ -109,7 +109,13 @@ int hs20_get_pps_mo_id(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid)
{
struct wpa_cred *cred;
- if (ssid == NULL || ssid->parent_cred == NULL)
+ if (ssid == NULL)
+ return 0;
+
+ if (ssid->update_identifier)
+ return ssid->update_identifier;
+
+ if (ssid->parent_cred == NULL)
return 0;
for (cred = wpa_s->conf->cred; cred; cred = cred->next) {