carl9170: fix debugfs support
authorFelix Fietkau <nbd@openwrt.org>
Thu, 7 Jan 2010 22:22:10 +0000 (22:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 7 Jan 2010 22:22:10 +0000 (22:22 +0000)
SVN-Revision: 19067

package/carl9170/Makefile
package/carl9170/patches/120-fix_missing_include.patch [new file with mode: 0644]

index 17f3376d2872db4adcd6a02e4a8aa2e9c4c5b08e..10c83a47646d8c73b16708e68f9e3e572ac73739 100644 (file)
@@ -43,7 +43,10 @@ define Build/Prepare
        $(Build/Patch)
 endef
 
-BUILDFLAGS= \
+BUILDFLAGS = \
+       CONFIG_MAC80211_DEBUGFS=$(CONFIG_PACKAGE_MAC80211_DEBUGFS)
+
+EXTRA_CFLAGS = \
        $(if $(CONFIG_ATH_USER_REGD),-DATH_USER_REGD)
 
 define Build/Compile
@@ -51,7 +54,8 @@ define Build/Compile
                SUBDIRS="$(DRV_PATH)" \
                ARCH="$(LINUX_KARCH)" \
                CROSS_COMPILE="$(KERNEL_CROSS)" \
-               CC="$(TARGET_CC) -I$(STAGING_DIR)/usr/include/mac80211 $(BUILDFLAGS)"
+               CC="$(TARGET_CC) -I$(STAGING_DIR)/usr/include/mac80211 $(EXTRA_CFLAGS)" \
+               $(BUILDFLAGS)
 endef
 
 define KernelPackage/carl9170/install
diff --git a/package/carl9170/patches/120-fix_missing_include.patch b/package/carl9170/patches/120-fix_missing_include.patch
new file mode 100644 (file)
index 0000000..02a7a87
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/drivers/net/wireless/ath/carl9170/debug.c
++++ b/drivers/net/wireless/ath/carl9170/debug.c
+@@ -38,6 +38,7 @@
+  */
+ #include <linux/seq_file.h>
++#include <linux/vmalloc.h>
+ #include "carl9170.h"
+ #include "usb.h"
+ #include "cmd.h"