FST: wpa_supplicant configuration parameters
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>
Sun, 16 Nov 2014 15:28:53 +0000 (17:28 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Jul 2015 15:26:15 +0000 (18:26 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/wpa_supplicant.conf

index 4d801cc..44f6946 100644 (file)
@@ -15,6 +15,7 @@
 #include "rsn_supp/wpa.h"
 #include "eap_peer/eap.h"
 #include "p2p/p2p.h"
+#include "fst/fst.h"
 #include "config.h"
 
 
@@ -2269,6 +2270,7 @@ void wpa_config_free(struct wpa_config *config)
        os_free(config->osu_dir);
        os_free(config->bgscan);
        os_free(config->wowlan_triggers);
+       os_free(config->fst_group_id);
        os_free(config);
 }
 
@@ -4234,6 +4236,11 @@ static const struct global_parse_data global_fields[] = {
        { INT(passive_scan), 0 },
        { INT(reassoc_same_bss_optim), 0 },
        { INT(wps_priority), 0},
+#ifdef CONFIG_FST
+       { STR_RANGE(fst_group_id, 1, FST_MAX_GROUP_ID_LEN), 0 },
+       { INT_RANGE(fst_priority, 1, FST_MAX_PRIO_VALUE), 0 },
+       { INT_RANGE(fst_llt, 1, FST_MAX_LLT_MS), 0 },
+#endif /* CONFIG_FST */
 };
 
 #undef FUNC
index d8ca054..54a79f4 100644 (file)
@@ -1184,6 +1184,22 @@ struct wpa_config {
         * by executing the WPS protocol.
         */
        int wps_priority;
+
+       /**
+        * fst_group_id - FST group ID
+        */
+       char *fst_group_id;
+
+       /**
+        * fst_priority - priority of the interface within the FST group
+        */
+       int fst_priority;
+
+       /**
+        * fst_llt - default FST LLT (Link-Lost Timeout) to be used for the
+        * interface.
+        */
+       int fst_llt;
 };
 
 
index b93d3ff..ba88a73 100644 (file)
@@ -1137,6 +1137,32 @@ fast_reauth=1
 #  2: MCS 0-9
 #  3: not supported
 
+##### Fast Session Transfer (FST) support #####################################
+#
+# The options in this section are only available when the build configuration
+# option CONFIG_FST is set while compiling hostapd. They allow this interface
+# to be a part of FST setup.
+#
+# FST is the transfer of a session from a channel to another channel, in the
+# same or different frequency bands.
+#
+# For detals, see IEEE Std 802.11ad-2012.
+
+# Identifier of an FST Group  the interface belongs to.
+#fst_group_id=bond0
+
+# Interface priority within the FST Group.
+# Announcing a higher priority for an interface means declaring it more
+# preferable for FST switch.
+# fst_priority is in 1..255 range with 1 being the lowest priority.
+#fst_priority=100
+
+# Default LLT value for this interface in milliseconds. The value used in case
+# no value provided during session setup. Default is 50 msec.
+# fst_llt is in 1..4294967 range (due to spec limitation, see 10.32.2.2
+# Transitioning between states).
+#fst_llt=100
+
 # Example blocks:
 
 # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers