From: Hauke Mehrtens Date: Tue, 24 Mar 2009 00:14:41 +0000 (+0100) Subject: Add AR9170 driver X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a0593c186b805f0eec8fd997c9b571791844b974;p=openwrt%2Fstaging%2Fblogic.git Add AR9170 driver The AR9170 configuration is only activated on kernel 2.6.28 and later, because the older kernel misses some needed functions to be backported. Interested developers can add it. Signed-off-by: Hauke Mehrtens --- diff --git a/config.mk b/config.mk index 84bf6092e8c3..d8b705a7981b 100644 --- a/config.mk +++ b/config.mk @@ -259,6 +259,14 @@ CONFIG_RTL8187=m CONFIG_AT76C50X_USB=m +# Activate AR9170 support only on kernel >= 2.6.28. +# The needed USB poison feature was added in this kernel release. +ifeq ($(shell test $(KERNEL_SUBLEVEL) -ge 28 && echo yes),yes) +CONFIG_AR9170_COMMON=m +CONFIG_AR9170_USB=m +CONFIG_AR9170_LEDS=y +endif + # RT2500USB does not require firmware CONFIG_RT2500USB=m CONFIG_RT2800USB=m diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 02260531fc56..881db6628976 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -59,6 +59,7 @@ DRIVERS="$DRIVERS drivers/net/wireless/p54" DRIVERS="$DRIVERS drivers/net/wireless/rtl818x" DRIVERS="$DRIVERS drivers/net/wireless/libertas_tf" DRIVERS="$DRIVERS drivers/net/wireless/ipw2x00" +DRIVERS="$DRIVERS drivers/net/wireless/ar9170" # Drivers that belong the the wireless directory DRIVER_FILES="adm8211.c adm8211.h"