Include wireless_copy.h instead of linux/wireless.h to avoid conflicts
authorJouni Malinen <j@w1.fi>
Tue, 3 Jun 2008 08:31:42 +0000 (11:31 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 3 Jun 2008 08:31:42 +0000 (11:31 +0300)
linux/wireless.h ends up including number of Linux kernel header files and
many of the definitions are conflicting with (or at least duplicating)
definitions in net/if.h.

hostapd/driver_nl80211.c

index 6ae5d79..a1a5094 100644 (file)
@@ -27,7 +27,7 @@
 #include <net/if.h>
 #include <linux/if_packet.h>
 #include <linux/if_ether.h>   /* The L2 protocols */
-#include <linux/wireless.h>
+#include "wireless_copy.h"
 #include <net/if_arp.h>
 
 #include "hostapd.h"