BTW: If you want compile wpa_supplicant-0.4.6 you have to copy original wirless.h to wireless_copy.h and You must include #include <sys/socket.h> in the following files driver_hostap.c driver_atmel.c