compat-2.6: Add AR9170 driver
PATCH 1/1 compat-2.6: Add AR9170 driver
This adds the AR9170 driver to compat-wireless.
Hauke
From 7e9fb52516801f4dcc0c200ce8911d24ec472bc7 Mon Sep 17 00:00:00 2001
From: Hauke Mehrtens <[email protected]>
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.
--- config.mk | 8 ++++++++ scripts/admin-update.sh | 1 + 2 files changed, 9 insertions(+), 0 deletions(-)
config.mk +8 -0
@@ -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
scripts/admin-update.sh +1 -0
@@ -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"
Signature · 1 line
1.5.6.3
Luis R. Rodriguez
AppliedQuoted 1 line · Hauke Mehrtens
This adds the AR9170 driver to compat-wireless.
Thanks applied and new tarball regenerated.
The patch commit log (which cannot be seen as the patch was attached) only enables ar9170 for >= 2.6.28. If someone wants to get this on 2.6.27 you'll just have to backport the routines which fail to compile. Patches welcomed of course.
v2.6.29-rc8-18695-g8fe80c6
wireless-testing latest tag:
master-2009-03-23
This is compat-release:
master-2009-03-23
One small note, Hauke, can you send these patches inline moving forward? In this case it proved useful as the commit log had information useful.
This may help, it has some example git send-email stuff:
http://wireless.kernel.org/en/developers/Documentation/git-guide
Luis
Quoted 9 lines · Luis R. Rodriguez
Quoted 1 line · Hauke Mehrtens
This adds the AR9170 driver to compat-wireless.
Thanks applied and new tarball regenerated.
The patch commit log (which cannot be seen as the patch was attached) only enables ar9170 for >= 2.6.28. If someone wants to get this on 2.6.27 you'll just have to backport the routines which fail to compile. Patches welcomed of course.
I did some quick review on this. One of the routines I had heard fails on 2.6.27 is usb_poison_anchored_urbs. This was added via 6a2839b. This just adds the routine, the users are the drivers themselves. To poison a URB it makes use of the extends the struct usb_anchor, so directly porting it doesn't seem to make sense. Best bet seems to be just backporting to not poison and do a replacement call.
Fun enough ar9170 is currently the only driver using this.
Hm, not sure if a no-op would do it.
Luis