p += len;
}
- if (!found || wpa_parse_wpa_ie(p, len, &ie) < 0)
+ if (!found || wpa_parse_wpa_ie(p, len, &ie) < 0) {
+ wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_OCV, 0);
return 0;
+ }
wpa_hexdump(MSG_DEBUG,
"WPA: Update cipher suite selection based on IEs in driver-generated WPA/RSNE in AssocReq",
return -1;
}
+ 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));
+
/*
* Update PMK in wpa_sm and the driver if roamed to WPA/WPA2 PSK from a
* different AKM.