$(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
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
--- /dev/null
+--- 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"