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_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
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"