Skip to contentSkip to conversation

compat-wireless: add support for ath9k_htc

PATCH In review Pavel Roskin 2 participants 2 messages Mar 24, 2010 – Mar 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compat-wireless: add support for ath9k_htc

---

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(-)
config.mk +2 -0
index 357cae9..a34fcb6 100644
@@ -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),)
patches/05-usb.patch +12 -0
index 9ff2e1e..d5c92c4 100644
@@ -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)
scripts/driver-select +5 -0
index 229861e..68bb7ff 100755
@@ -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