Added temporary #ifdef WEXT_MFP_PENDING around the MFP changes
Just in case, do not use the not-yet-approved WEXT changes even if someone where to build wpa_supplicant with IEEE 802.11w support unless this new macro has been defined explicitly.
This commit is contained in:
parent
f0732adfe0
commit
089165e6a4
1 changed files with 4 additions and 0 deletions
|
@ -1800,11 +1800,13 @@ static int wpa_driver_wext_set_key_ext(void *priv, wpa_alg alg,
|
|||
case WPA_ALG_PMK:
|
||||
ext->alg = IW_ENCODE_ALG_PMK;
|
||||
break;
|
||||
#ifdef WEXT_MFP_PENDING
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
case WPA_ALG_IGTK:
|
||||
ext->alg = IW_ENCODE_ALG_AES_CMAC;
|
||||
break;
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
#endif /* WEXT_MFP_PENDING */
|
||||
default:
|
||||
wpa_printf(MSG_DEBUG, "%s: Unknown algorithm %d",
|
||||
__FUNCTION__, alg);
|
||||
|
@ -2158,6 +2160,7 @@ int wpa_driver_wext_associate(void *priv,
|
|||
IW_AUTH_RX_UNENCRYPTED_EAPOL,
|
||||
allow_unencrypted_eapol) < 0)
|
||||
ret = -1;
|
||||
#ifdef WEXT_MFP_PENDING
|
||||
#ifdef CONFIG_IEEE80211W
|
||||
switch (params->mgmt_frame_protection) {
|
||||
case NO_MGMT_FRAME_PROTECTION:
|
||||
|
@ -2173,6 +2176,7 @@ int wpa_driver_wext_associate(void *priv,
|
|||
if (wpa_driver_wext_set_auth_param(drv, IW_AUTH_MFP, value) < 0)
|
||||
ret = -1;
|
||||
#endif /* CONFIG_IEEE80211W */
|
||||
#endif /* WEXT_MFP_PENDING */
|
||||
if (params->freq && wpa_driver_wext_set_freq(drv, params->freq) < 0)
|
||||
ret = -1;
|
||||
if (wpa_driver_wext_set_ssid(drv, params->ssid, params->ssid_len) < 0)
|
||||
|
|
Loading…
Reference in a new issue