|
@@ -1037,6 +1037,19 @@ u8 * wpa_auth_write_assoc_resp_owe(struct wpa_state_machine *sm,
|
|
|
const u8 *req_ies, size_t req_ies_len)
|
|
|
{
|
|
|
int res;
|
|
|
+ struct wpa_auth_config *conf = &sm->wpa_auth->conf;
|
|
|
+
|
|
|
+#ifdef CONFIG_TESTING_OPTIONS
|
|
|
+ if (conf->own_ie_override_len) {
|
|
|
+ if (max_len < conf->own_ie_override_len)
|
|
|
+ return 0;
|
|
|
+ wpa_hexdump(MSG_DEBUG, "WPA: Forced own IE(s) for testing",
|
|
|
+ conf->own_ie_override, conf->own_ie_override_len);
|
|
|
+ os_memcpy(pos, conf->own_ie_override,
|
|
|
+ conf->own_ie_override_len);
|
|
|
+ return pos + conf->own_ie_override_len;
|
|
|
+ }
|
|
|
+#endif /* CONFIG_TESTING_OPTIONS */
|
|
|
|
|
|
res = wpa_write_rsn_ie(&sm->wpa_auth->conf, pos, max_len,
|
|
|
sm->pmksa ? sm->pmksa->pmkid : NULL);
|