driver_ndis_.c patch

Sergio sergioyebenes
Mon Jul 28 06:49:29 PDT 2008


Hi,

well, first, i think the correct syntax is:

#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  void wpa_driver_ndis_event_pipe_cb(void *eloop_data, void *user_data)
  {
                            (int) GetLastError() /* ) */;
   	/* } */     
  }

#endif

and said this, with .config file i'm sending, you can see my best
achieve without dependencies of header files:

...........
O_T_PRF -DCONFIG_NDIS_EVENTS_INTEGRATED   -c
-o ../src/drivers/driver_ndis_.o ../src/drivers/driver_ndis_.c
../src/drivers/driver_ndis_.c:106: error: redefinition of
'wpa_driver_ndis_event_pipe_cb'
../src/drivers/driver_ndis_.c:31: error: previous definition of
'wpa_driver_ndis_event_pipe_cb' was here
make: *** [../src/drivers/driver_ndis_.o] Error 1


i think, with some fear, that would be this:

#ifdef CONFIG_NDIS_EVENTS_INTEGRATED
  void wpa_driver_ndis_event_pipe_cb(void *eloop_data, void *user_data)
  {
                            (int) GetLastError() /* ) */;
   	/* } */     
  }

else /* the other function definition*/
#endif

Sergius
-------------- next part --------------
#CONFIG_WIRELESS_EXTENSION=y

CONFIG_IEEE8021X_EAPOL=y
CONFIG_EAP_TLS=y
CONFIG_SMARTCARD=y
CONFIG_PKCS12=y

#CONFIG_PCSC=y
#CFLAGS += -I/usr/include/opensc/?
#LIBS += -L/usr/lib/opensc?

CONFIG_CTRL_IFACE=y
CONFIG_OS=win32

#paquetes en la capa 2; winpcap, ndis,etc
CONFIG_L2_PACKET=winpcap

#ndis requiere ndisuio
#CONFIG_USE_NDISUIO=y

#CAMBIA TIPO DE PAQUETES EN CAPA 2,PARA LINUX, si es que no se puso lo de antes
#CONFIG_DNET_PCAP=y
CONFIG_TLS=openssl
CFLAGS += -I/usr/local/ssl/include
LIBS += -L/usr/local/ssl/lib

# Driver interface for Windows NDIS
CONFIG_DRIVER_NDIS=y
CFLAGS += -I/home/sergius/mingw/WpdPack/Include
LIBS += -L/home/sergius/mingw/WpdPack/Lib

# For native build using mingw
CONFIG_NATIVE_WINDOWS=y

# Additional directories for cross-compilation on Linux host for mingw target
#CFLAGS += -I/opt/mingw/mingw32/include/ddk
#LIBS += -L/opt/mingw/mingw32/lib
#CC=mingw32-gcc
CFLAGS += -I/usr/i586-mingw32msvc/include/ddk
LIBS += -L/usr/i586-mingw32msvc/lib
CC=i586-mingw32msvc-gcc

CONFIG_NDIS_EVENTS_INTEGRATED=y



More information about the Hostap mailing list