linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compat-2.6: Add AR9170 driver
@ 2009-03-24  0:19 Hauke Mehrtens
  2009-03-24  0:40 ` Luis R. Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Hauke Mehrtens @ 2009-03-24  0:19 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless


[-- Attachment #1.1: Type: text/plain, Size: 58 bytes --]

This adds the AR9170 driver to compat-wireless.

Hauke

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-AR9170-driver.patch --]
[-- Type: text/x-diff; name="0001-Add-AR9170-driver.patch", Size: 1557 bytes --]

From 7e9fb52516801f4dcc0c200ce8911d24ec472bc7 Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: Tue, 24 Mar 2009 01:14:41 +0100
Subject: [PATCH] Add AR9170 driver.
 The AR9170 configuration is only activated on kernel 2.6.28 and later, because the older kernel misses some needed functions.


Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 config.mk               |    8 ++++++++
 scripts/admin-update.sh |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/config.mk b/config.mk
index 84bf609..d8b705a 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 0226053..881db66 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"
-- 
1.5.6.3


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 898 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-24  1:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24  0:19 [PATCH] compat-2.6: Add AR9170 driver Hauke Mehrtens
2009-03-24  0:40 ` Luis R. Rodriguez
2009-03-24  1:11   ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).