ssid->ocv is defined within CONFIG_OCV block, so the use for it needs to
match.
Fixes: dc7e330e0b89 ("Set OCV capability based on Association Request frame RSNE")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
return -1;
}
+#ifdef CONFIG_OCV
if (((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) ||
(wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_OCV)) && ssid->ocv)
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_OCV,
!!(ie.capabilities & WPA_CAPABILITY_OCVC));
+#endif /* CONFIG_OCV */
/*
* Update PMK in wpa_sm and the driver if roamed to WPA/WPA2 PSK from a