HS 2.0: Add runtime configuration of Hotspot 2.0 station
authorJay Katabathuni <jkatabat@qca.qualcomm.com>
Thu, 8 Sep 2011 17:52:23 +0000 (20:52 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 8 May 2012 20:29:45 +0000 (23:29 +0300)
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/wpa_supplicant.conf

index fd53bd3..de8ff15 100644 (file)
@@ -2875,6 +2875,9 @@ static const struct global_parse_data global_fields[] = {
        { INT_RANGE(filter_ssids, 0, 1), 0 },
        { INT(max_num_sta), 0 },
        { INT_RANGE(disassoc_low_ack, 0, 1), 0 },
+#ifdef CONFIG_HS20
+       { INT_RANGE(hs20, 0, 1), 0 },
+#endif /* CONFIG_HS20 */
        { INT_RANGE(interworking, 0, 1), 0 },
        { FUNC(hessid), 0 },
        { INT_RANGE(access_network_type, 0, 15), 0 },
index e68b5a8..119252e 100644 (file)
@@ -613,6 +613,11 @@ struct wpa_config {
        u8 hessid[ETH_ALEN];
 
        /**
+        * hs20 - Hotspot 2.0
+        */
+       int hs20;
+
+       /**
         * pbc_in_m1 - AP mode WPS probing workaround for PBC with Windows 7
         *
         * Windows 7 uses incorrect way of figuring out AP's WPS capabilities
index 8a73fa8..ee22e4b 100644 (file)
@@ -836,6 +836,10 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config)
                fprintf(f, "max_num_sta=%u\n", config->max_num_sta);
        if (config->disassoc_low_ack)
                fprintf(f, "disassoc_low_ack=%u\n", config->disassoc_low_ack);
+#ifdef CONFIG_HS20
+       if (config->hs20)
+               fprintf(f, "hs20=1\n");
+#endif /* CONFIG_HS20 */
 #ifdef CONFIG_INTERWORKING
        if (config->interworking)
                fprintf(f, "interworking=%u\n", config->interworking);
index 6b94c61..745dc5b 100644 (file)
@@ -327,6 +327,9 @@ fast_reauth=1
 #      milenage="90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82"
 #}
 
+# Hotspot 2.0
+# hs20=1
+
 # network block
 #
 # Each network (usually AP's sharing the same SSID) is configured as a separate