Building a Visual Studio Release wpa_supplicant.exe 0.5.4 (for Windows)

George S. Lockwood gslockwood
Tue Jul 18 07:43:54 PDT 2006

Hello everyone,

Anyone have trouble compiling and running a Release version wpa_supplicant
for Windows??

I have been able to configure the Visual Studio 2005 project files to find
openssl and wpdpack but to get it compile for a Release version, I had to
add the preprocessor var: CONFIG_WIN32_DEFAULTS.

However, the compile exe is only 916k compared to the downloaded binary of

The Release version ends (see below), but the same code built for Debug
results in a connection / authentication.

so I believe my Release project settings are off.  Could it be my libs? the
code generation settings?  the addtion of CONFIG_WIN32_DEFAULTS??

The trouble is it didn't compile "out-of-the-box"....

here's some console output from the debug run:

Debug finds 3 adaptors, Release only 2 !!!?????

07:40:05: NDIS: 3 adapter names found
07:40:05: NDIS: 3 adapter descriptions found
07:40:05: NDIS: 0 - \Device\NPF_GenericDialupAdapter - Adapter for generic
dialup and VPN capture
07:40:05: NDIS: 1 - \Device\NPF_{201016AF-B1FE-4CFD-A410-CD2D3F264D07} -
Broadcom NetXtreme Gigabit Ethernet Driver (Microsoft's Packet Schedul
07:40:05: NDIS: 2 - \Device\NPF_{556DEBC4-B686-4A77-A2D8-7F34F3A5708F} -
Intel(R) PRO/Wireless 2200BG Network Connection (Microsoft's Packet Sc
07:40:05: NDIS: Adapter description prefix 'Intel(R) PRO/Wireless 2200BG
Network Connection'

Here's the Release version's console output:

ifname: \Device\NPF_GenericDialupAdapter
description: Adapter for generic dialup and VPN capture

ifname: \Device\NPF_{556DEBC4-B686-4A77-A2D8-7F34F3A5708F}
description: Intel(R) PRO/Wireless 2200BG Network Connection (Microsoft's
Packet Scheduler)

ifname: \Device\NPF_{201016AF-B1FE-4CFD-A410-CD2D3F264D07}
description: Broadcom NetXtreme Gigabit Ethernet Driver (Microsoft's Packet

Press any key to continue . . .
07:32:42: Initializing interface
'\Device\NPF_{556DEBC4-B686-4A77-A2D8-7F34F3A5708F}' conf 'mango.conf.txt'
driver 'default' ctrl_interface '
' bridge 'N/A'
07:32:42: Reading configuration file 'mango.conf.txt'
07:32:42: ap_scan=1
07:32:42: Line: 5 - start of a new network block
ssid - hexdump_ascii(len=5):
     6d 61 6e 67 6f                                    mango
07:32:42: scan_ssid=1 (0x1)
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
07:32:42: key_mgmt: 0x2
07:32:42: pairwise: 0x8
07:32:42: group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
07:32:43: Priority group 0
07:32:43:    id=0 ssid='mango'
07:32:43: Initializing interface (2)
07:32:43: EAPOL: SUPP_PAE entering state DISCONNECTED
07:32:43: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
07:32:43: EAPOL: SUPP_BE entering state INITIALIZE
07:32:43: EAP: EAP entering state DISABLED
07:32:43: EAPOL: External notification - portEnabled=0
07:32:43: EAPOL: External notification - portValid=0
07:32:43: NDIS: Packet.dll version: 4, 0, 0, 374
07:32:43: NDIS: 2 adapter names found
07:32:43: NDIS: 2 adapter descriptions found
07:32:43: NDIS: 0 - \Device\NPF_GenericDialupAdapter -
07:32:43: NDIS: 1 - Adapter for generic dialup and VPN capture - dummy
07:32:43: NDIS: Could not find interface
07:32:43: Failed to initialize driver interface
07:32:43: Failed to add interface
07:32:43: 07:32:43: Cancelling scan request
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Hostap mailing list