Cross-compiling wpa_supplicant for windows


This is a howto for compiling the ope-source WPA2 supplicant 'wpa_supplicant' for the Windows OS.


Steps

 CFLAGS += -I../pcap/Include -L../pcap/Lib
 CONFIG_CTRL_IFACE=y
 CONFIG_DRIVER_NDIS=y
 CONFIG_NATIVE_WINDOWS=y
 CFLAGS += -I/usr/i586-mingw32msvc/include/
 LIBS += -L/usr/i586-mingw32msvc/lib  -L../pcap/Lib/
 CONFIG_ELOOP=eloop_win
 CONFIG_OS=win32
 CONFIG_EAP_MD5=y

Note that we only compiled the EAP-MD5 method. Other methods may require OpenSSL library to be installed. Future revisions of this howto will include procedures for compiling other EAP methods.

  
 --- driver_ndis_.c      2007-03-25 11:09:50.000000000 +0900
 +++ driver_ndis_new.c     2007-12-14 03:58:22.000000000 +0900
 @@ -91,6 +91,7 @@
         }
  }
 
 +#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
 
  void wpa_driver_ndis_event_pipe_cb(void *eloop_data, void *user_data)
  {
 @@ -106,3 +107,5 @@
                            (int) GetLastError());
         }
  }
 +
 +#endif


Labels: , , , Wireless Internet Security Coding Network Monitoring