Add AR9170 driver
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 24 Mar 2009 00:14:41 +0000 (01:14 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 23 Mar 2009 23:26:58 +0000 (16:26 -0700)
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 <hauke@hauke-m.de>
config.mk
scripts/admin-update.sh

index 84bf6092e8c3354f077a3ec96cc33adc0d1e07e8..d8b705a7981bbfaebeb9075401d21d82adf12dc4 100644 (file)
--- 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
index 02260531fc569a3e67f49a46e9d0ff1aa98f6b2a..881db6628976dff91490d93552612173356473c4 100755 (executable)
@@ -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"