mesh: Fix CONFIG_MESH=y build without CONFIG_IEEE80211W=y
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
47e148592d
commit
694a3a0d64
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ static struct mesh_conf * mesh_config_create(struct wpa_supplicant *wpa_s,
|
||||||
MESH_CONF_SEC_AMPE;
|
MESH_CONF_SEC_AMPE;
|
||||||
else
|
else
|
||||||
conf->security |= MESH_CONF_SEC_NONE;
|
conf->security |= MESH_CONF_SEC_NONE;
|
||||||
|
#ifdef CONFIG_IEEE80211W
|
||||||
conf->ieee80211w = ssid->ieee80211w;
|
conf->ieee80211w = ssid->ieee80211w;
|
||||||
if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) {
|
if (conf->ieee80211w == MGMT_FRAME_PROTECTION_DEFAULT) {
|
||||||
if (wpa_s->drv_enc & WPA_DRIVER_CAPA_ENC_BIP)
|
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
|
else
|
||||||
conf->ieee80211w = NO_MGMT_FRAME_PROTECTION;
|
conf->ieee80211w = NO_MGMT_FRAME_PROTECTION;
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_IEEE80211W */
|
||||||
|
|
||||||
cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0);
|
cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0);
|
||||||
if (cipher < 0 || cipher == WPA_CIPHER_TKIP) {
|
if (cipher < 0 || cipher == WPA_CIPHER_TKIP) {
|
||||||
|
|
Loading…
Reference in a new issue