linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>, linux-wireless@vger.kernel.org
Subject: [PATCH] compat-wireless: add support for ath9k_htc
Date: Wed, 24 Mar 2010 17:27:46 -0400	[thread overview]
Message-ID: <1269466066.26368.10.camel@mj> (raw)

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

Be careful, that will only work once ath9k_htc goes to linux-next!

 config.mk             |    2 ++
 patches/05-usb.patch  |   12 ++++++++++++
 scripts/driver-select |    5 +++++
 3 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/config.mk b/config.mk
index 357cae9..a34fcb6 100644
--- a/config.mk
+++ b/config.mk
@@ -373,6 +373,8 @@ CONFIG_AR9170_USB=m
 CONFIG_AR9170_LEDS=y
 endif
 
+CONFIG_ATH9K_HTC=m
+
 # RT2500USB does not require firmware
 CONFIG_RT2500USB=m
 ifneq ($(CONFIG_CRC_CCITT),)
diff --git a/patches/05-usb.patch b/patches/05-usb.patch
index 9ff2e1e..d5c92c4 100644
--- a/patches/05-usb.patch
+++ b/patches/05-usb.patch
@@ -12,3 +12,15 @@ USB opt soft_unbid was added as of 2.6.27.
  };
  
  static int __init p54u_init(void)
+--- a/drivers/net/wireless/ath/ath9k/hif_usb.c
++++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
+@@ -979,7 +979,9 @@ static struct usb_driver ath9k_hif_usb_d
+ 	.reset_resume = ath9k_hif_usb_resume,
+ #endif
+ 	.id_table = ath9k_hif_usb_ids,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
+ 	.soft_unbind = 1,
++#endif
+ };
+ 
+ int ath9k_hif_usb_init(void)
diff --git a/scripts/driver-select b/scripts/driver-select
index 229861e..68bb7ff 100755
--- a/scripts/driver-select
+++ b/scripts/driver-select
@@ -274,6 +274,11 @@ case $1 in
 		select_driver		CONFIG_ATH_COMMON
 		select_ath_driver	CONFIG_AR9170_USB
 		;;
+	ath9k_htc)
+		disable_bt_usb_ethernet_var
+		select_driver		CONFIG_ATH_COMMON
+		select_ath_driver	CONFIG_ATH9K_HTC
+		;;
 	rtl818x)
 		select_drivers		CONFIG_RTL8180 CONFIG_RTL8187
 		disable_var_02

             reply	other threads:[~2010-03-24 21:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 21:27 Pavel Roskin [this message]
2010-03-28  2:30 ` [PATCH] compat-wireless: add support for ath9k_htc Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269466066.26368.10.camel@mj \
    --to=proski@gnu.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).