+static void ap_wps_event_cb(void *ctx, enum wps_event event,
+ union wps_event_data *data)
+{
+ struct wpa_supplicant *wpa_s = ctx;
+
+ if (event == WPS_EV_FAIL && wpa_s->parent && wpa_s->parent != wpa_s) {
+ struct wps_event_fail *fail = &data->fail;
+
+ /*
+ * src/ap/wps_hostapd.c has already sent this on the main
+ * interface, so only send on the parent interface here if
+ * needed.
+ */
+ wpa_msg(wpa_s->parent, MSG_INFO, WPS_EVENT_FAIL
+ "msg=%d config_error=%d",
+ fail->msg, fail->config_error);
+ }
+}
+
+