]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Add EDMG channel configuration parameters
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>
Wed, 11 Sep 2019 09:03:07 +0000 (12:03 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 7 Oct 2019 13:50:06 +0000 (16:50 +0300)
Add two new configuration parameters for wpa_supplicant:
enable_edmg: Enable EDMG capability for STA/AP mode
edmg_channel: Configure channel bonding. In AP mode it defines the EDMG
channel to start the AP on. In STA mode it defines the EDMG channel to
use for connection.

Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
wpa_supplicant/config.c
wpa_supplicant/config_file.c
wpa_supplicant/config_ssid.h
wpa_supplicant/wpa_cli.c
wpa_supplicant/wpa_supplicant.conf

index 5ad6fc7bbbc97dfa4a72dc7348b5f0a25dd5174d..515228b7836d54af0b7911074de0020c42537350 100644 (file)
@@ -2481,6 +2481,8 @@ static const struct parse_data ssid_fields[] = {
        { INT_RANGE(mixed_cell, 0, 1) },
        { INT_RANGE(frequency, 0, 70200) },
        { INT_RANGE(fixed_freq, 0, 1) },
+       { INT_RANGE(enable_edmg, 0, 1) },
+       { INT_RANGE(edmg_channel, 9, 13) },
 #ifdef CONFIG_ACS
        { INT_RANGE(acs, 0, 1) },
 #endif /* CONFIG_ACS */
index 5005aa9254265332035604001d9f287b97c7670d..7150ab8095691ba44f6a2f736642fac3f9fc0398 100644 (file)
@@ -847,6 +847,8 @@ static void wpa_config_write_network(FILE *f, struct wpa_ssid *ssid)
        INT(mode);
        INT(no_auto_peer);
        INT(frequency);
+       INT(enable_edmg);
+       INT(edmg_channel);
        INT(fixed_freq);
 #ifdef CONFIG_ACS
        INT(acs);
index 649f8c82cf3d6e3a8b9fa957b92a956ec050a3b7..df5e9a2c5848b199019ce531c50a2bdc4c657ac6 100644 (file)
@@ -483,6 +483,23 @@ struct wpa_ssid {
         */
        int frequency;
 
+       /**
+        * enable_edmg - Enable EDMG feature in STA/AP mode
+        *
+        * This flag is used for enabling the EDMG capability in STA/AP mode.
+        */
+       int enable_edmg;
+
+       /**
+        * edmg_channel - EDMG channel number
+        *
+        * This value is used to configure the EDMG channel bonding feature.
+        * In AP mode it defines the EDMG channel to start the AP on.
+        * in STA mode it defines the EDMG channel to use for connection
+        * (if supported by AP).
+        */
+       u8 edmg_channel;
+
        /**
         * fixed_freq - Use fixed frequency for IBSS
         */
index fa24121ca64b908f41c07e2d43015e46039ea984..bfa64cb9b077a5b46182953666ffb02ad3d65970 100644 (file)
@@ -1441,6 +1441,7 @@ static const char *network_fields[] = {
        "dot11MeshHoldingTimeout",
 #endif /* CONFIG_MESH */
        "wpa_ptk_rekey", "bgscan", "ignore_broadcast_ssid",
+       "enable_edmg", "edmg_channel",
 #ifdef CONFIG_P2P
        "go_p2p_dev_addr", "p2p_client_list", "psk_list",
 #endif /* CONFIG_P2P */
index 0babadcc80e658acf3ec6fa3dc051510992d5c0d..63639732f376713f07ba5a633651005a8f5d5790 100644 (file)
@@ -1548,6 +1548,16 @@ fast_reauth=1
 # Set to 1 to disable BSS transition management
 #disable_btm=0
 
+# Enable EDMG capability in STA/AP mode, default value is false
+#enable_edmg=1
+
+# This value is used to configure the channel bonding feature.
+# Default value is 0.
+# Relevant only if enable_edmg is true
+# In AP mode it defines the EDMG channel to use for AP operation.
+# In STA mode it defines the EDMG channel for connection (if supported by AP).
+#edmg_channel=9
+
 # Example blocks:
 
 # Simple case: WPA-PSK, PSK as an ASCII passphrase, allow all valid ciphers