crosscompiling hostapd for madwiwi (solution)

Steffen Pfendtner steffen at wh-netz.de
Wed Oct 13 08:41:21 EDT 2004


Hi,

Just for the records: I had a problem with my buildroot Makefile and not 
with hostapd.

The make line should look like this:
make -C /home/steffen/buildroot/build_i386/hostap-snapshot/hostapd 
CC=/home/steffen/buildroot/build_i386/staging_dir/bin/i386-linux-uclibc-gcc 
CFLAGS="-g -Wall -I../wpa_supplicant/ -I../driver/modules -I../utils 
-I/home/steffen/buildroot/build_i386/madwifi-current -I./ 
-DCONFIG_DRIVER_MADWIFI=y"

I had forgoten the -DCONFIG_DRIVER_MADWIFI=y

But it would be cool to add some more error handling code to this to make 
hostapd not quiting without any message. Somethig like that:

--- old 2004-10-13 06:15:20.000000000 +0200
+++ hostapd.c   2004-10-13 06:15:15.000000000 +0200
@@ -646,6 +646,7 @@
  #else /* CONFIG_DRIVER_MADWIFI */
  static inline int hostapd_init_driver_madwifi(struct hostapd_data *hapd)
  {
+       printf("madwifi support is not compiled in, exiting!\n");
         return -1;
  }
  #endif /* CONFIG_DRIVER_MADWIFI */

Greetings,
Steffen

--
Steffen Pfendtner <steffen at wh-netz.de>
GPG Key fingerprint = DF91 11BB 498F 573B 8002  6E0B 3AE3 FF88 EADD B3BC



More information about the HostAP mailing list