]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
mesh: Fix CONFIG_MESH=y build without CONFIG_IEEE80211W=y
authorJouni Malinen <j@w1.fi>
Sun, 26 Feb 2017 09:58:04 +0000 (11:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 26 Feb 2017 10:05:40 +0000 (12:05 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/mesh.c

index 2ca81a3821707a6c15b824eca04854ce6919a332..d7d6455c182a1d7d1a69522c8bbadebfa04ae7ec 100644 (file)
@@ -84,6 +84,7 @@ static struct mesh_conf * mesh_config_create(struct wpa_supplicant *wpa_s,
                        MESH_CONF_SEC_AMPE;
        else
                conf->security |= MESH_CONF_SEC_NONE;
+#ifdef CONFIG_IEEE80211W
        conf->ieee80211w = ssid->ieee80211w;
        if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) {
                if (wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_BIP)
@@ -91,6 +92,7 @@ static struct mesh_conf * mesh_config_create(struct wpa_supplicant *wpa_s,
                else
                        conf->ieee80211w = NO_MGMT_FRAME_PROTECTION;
        }
+#endif /* CONFIG_IEEE80211W */
 
        cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0);
        if (cipher < 0 || cipher == WPA_CIPHER_TKIP) {