Merge wpa_supplicant and hostapd driver wrapper implementations
[wpasupplicant] / wpa_supplicant / preauth_test.c
index 86307a8..3082191 100644 (file)
 #include "pcsc_funcs.h"
 #include "preauth.h"
 #include "pmksa_cache.h"
+#include "drivers/driver.h"
 
 
 extern int wpa_debug_level;
 extern int wpa_debug_show_keys;
 
-struct wpa_driver_ops *wpa_supplicant_drivers[] = { NULL };
+struct wpa_driver_ops *wpa_drivers[] = { NULL };
 
 
 struct preauth_test_data {
@@ -239,6 +240,7 @@ static void wpa_init_conf(struct wpa_supplicant *wpa_s, const char *ifname)
        assert(ctx != NULL);
 
        ctx->ctx = wpa_s;
+       ctx->msg_ctx = wpa_s;
        ctx->set_state = _wpa_supplicant_set_state;
        ctx->get_state = _wpa_supplicant_get_state;
        ctx->deauthenticate = _wpa_supplicant_deauthenticate;