compat-wireless: add support for ath9k_htc
authorPavel Roskin <proski@gnu.org>
Wed, 24 Mar 2010 21:27:46 +0000 (17:27 -0400)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sun, 28 Mar 2010 02:26:43 +0000 (19:26 -0700)
Signed-off-by: Pavel Roskin <proski@gnu.org>
config.mk
patches/05-usb.patch
scripts/driver-select

index 357cae9f800d0acdac666a003e6575ee05575bd1..a34fcb6bad9e52a9eec3280a71fafcfe583ff808 100644 (file)
--- 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),)
index 9ff2e1e799a9fa8190f4fcc1b9428af6414c838e..d5c92c4ea98b918120efc4fbb5054a5644344271 100644 (file)
@@ -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)
index 229861eeeaf0dc613c89fda3a870c531703eb42e..68bb7ff5ad6300941ddbd7f54c4e53860e5dec1c 100755 (executable)
@@ -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