]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0: Move Probe Request Indication IE addition to proper place
authorJouni Malinen <j@w1.fi>
Sat, 4 May 2013 08:57:56 +0000 (11:57 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 May 2013 08:57:56 +0000 (11:57 +0300)
This needs to be in wpa_supplicant_extra_ies() to get consistent
behavior for both scan and sched_scan cases.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/scan.c

index 8f9449d05009585d6d2e37dc45a0dd4536986793..6e2bb812e326927e26177d59fce5d7c5b7618386 100644 (file)
@@ -448,6 +448,11 @@ static struct wpabuf * wpa_supplicant_extra_ies(struct wpa_supplicant *wpa_s)
 
 #endif /* CONFIG_WPS */
 
+#ifdef CONFIG_HS20
+       if (wpa_s->conf->hs20 && wpabuf_resize(&extra_ie, 7) == 0)
+               wpas_hs20_add_indication(extra_ie);
+#endif /* CONFIG_HS20 */
+
        return extra_ie;
 }
 
@@ -736,11 +741,6 @@ ssid_list_set:
        wpa_supplicant_optimize_freqs(wpa_s, &params);
        extra_ie = wpa_supplicant_extra_ies(wpa_s);
 
-#ifdef CONFIG_HS20
-       if (wpa_s->conf->hs20 && wpabuf_resize(&extra_ie, 7) == 0)
-               wpas_hs20_add_indication(extra_ie);
-#endif /* CONFIG_HS20 */
-
        if (params.freqs == NULL && wpa_s->next_scan_freqs) {
                wpa_dbg(wpa_s, MSG_DEBUG, "Optimize scan based on previously "
                        "generated frequency list");