From patchwork Wed Mar 24 21:27:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Roskin X-Patchwork-Id: 88062 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2OLRnfs013563 for ; Wed, 24 Mar 2010 21:27:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751416Ab0CXV1s (ORCPT ); Wed, 24 Mar 2010 17:27:48 -0400 Received: from c60.cesmail.net ([216.154.195.49]:27924 "EHLO c60.cesmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199Ab0CXV1r (ORCPT ); Wed, 24 Mar 2010 17:27:47 -0400 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 24 Mar 2010 17:27:47 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id 4C45A34C6D; Wed, 24 Mar 2010 17:27:46 -0400 (EDT) Subject: [PATCH] compat-wireless: add support for ath9k_htc From: Pavel Roskin To: "Luis R. Rodriguez" , linux-wireless@vger.kernel.org Date: Wed, 24 Mar 2010 17:27:46 -0400 Message-Id: <1269466066.26368.10.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 24 Mar 2010 21:27:50 +0000 (UTC) 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