OCV: Fix build without CONFIG_OCV=y
ssid->ocv is defined within CONFIG_OCV block, so the use for it needs to
match.
Fixes: dc7e330e0b
("Set OCV capability based on Association Request frame RSNE")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
d44a7e38d1
commit
89377c6b9c
1 changed files with 2 additions and 0 deletions
|
@ -2874,10 +2874,12 @@ static int wpa_supplicant_use_own_rsne_params(struct wpa_supplicant *wpa_s,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_OCV
|
||||||
if (((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) ||
|
if (((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) ||
|
||||||
(wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_OCV)) && ssid->ocv)
|
(wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_OCV)) && ssid->ocv)
|
||||||
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_OCV,
|
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_OCV,
|
||||||
!!(ie.capabilities & WPA_CAPABILITY_OCVC));
|
!!(ie.capabilities & WPA_CAPABILITY_OCVC));
|
||||||
|
#endif /* CONFIG_OCV */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update PMK in wpa_sm and the driver if roamed to WPA/WPA2 PSK from a
|
* Update PMK in wpa_sm and the driver if roamed to WPA/WPA2 PSK from a
|
||||||
|
|
Loading…
Reference in a new issue