This patch enables the new ath5k driver. Works for me with X86 Alix board an AR2413...
authorFlorian Fainelli <florian@openwrt.org>
Wed, 27 Aug 2008 14:09:29 +0000 (14:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 27 Aug 2008 14:09:29 +0000 (14:09 +0000)
Signed-off-by: Dirk Nehring <dnehring@gmx.net>
SVN-Revision: 12397

package/mac80211/Makefile
package/mac80211/patches/001-disable_drivers.patch

index 21db08157ed346e43f1171282e222b0eb6eac9e6..7cf428c56602f61122819f748e92c0425d53b41a 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # Copyright (C) 2007-2008 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -129,6 +129,14 @@ define KernelPackage/net-zd1211rw
   AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
 endef
 
+define KernelPackage/ath5k
+  SUBMENU:=Wireless Drivers
+  TITLE:=Atheros 5xxx wireless cards support
+  DEPENDS+= @PCI_SUPPORT +kmod-mac80211
+  FILES:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath5k/ath5k.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,27,ath5k)
+endef
+
 BUILDFLAGS:= \
        $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
        $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS) \
@@ -187,6 +195,7 @@ define KernelPackage/rt73-usb/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/rt73.bin $(1)/lib/firmware/
 endef
 
+$(eval $(call KernelPackage,ath5k))
 $(eval $(call KernelPackage,net-zd1211rw))
 $(eval $(call KernelPackage,mac80211))
 $(eval $(call KernelPackage,rt2x00-lib))
index c35cadc4a7fbabe92397975113d0ccf9e159a57e..ccf040915643a1d4748e3ff15f64105b4c0f76db 100644 (file)
@@ -1,13 +1,10 @@
-diff -urN compat-wireless-2008-05-26/config.mk compat-wireless-2008-05-26.new/config.mk
---- compat-wireless-2008-05-26/config.mk       2008-05-20 09:37:02.000000000 +0200
-+++ compat-wireless-2008-05-26.new/config.mk   2008-07-14 10:52:01.000000000 +0200
-@@ -28,73 +28,6 @@
- # PCI Drivers
- ifneq ($(CONFIG_PCI),)
+diff -urN compat-wireless-2008-08-06/config.mk compat-wireless-2008-08-06.new/config.mk
+--- compat-wireless-2008-08-06/config.mk       2008-07-18 06:11:03.000000000 +0200
++++ compat-wireless-2008-08-06.new/config.mk   2008-08-20 17:30:13.000000000 +0200
+@@ -72,70 +72,6 @@
+ CONFIG_ATH5K=m
+ CONFIG_ATH5K_DEBUG=n
  
--CONFIG_ATH5K=m
--CONFIG_ATH5K_DEBUG=n
--
 -# Required for older kernels which still use this flag.
 -CONFIG_IWLWIFI=m
 -
@@ -75,7 +72,7 @@ diff -urN compat-wireless-2008-05-26/config.mk compat-wireless-2008-05-26.new/co
  CONFIG_RT2X00_LIB_PCI=m
  CONFIG_RT2400PCI=m
  CONFIG_RT2500PCI=m
-@@ -118,32 +51,6 @@
+@@ -159,32 +95,6 @@
  ifneq ($(CONFIG_USB),)
  CONFIG_ZD1211RW=m
  
@@ -108,7 +105,7 @@ diff -urN compat-wireless-2008-05-26/config.mk compat-wireless-2008-05-26.new/co
  # RT2500USB does not require firmware
  CONFIG_RT2500USB=m
  CONFIG_RT2X00_LIB_USB=m
-@@ -168,39 +75,6 @@
+@@ -209,39 +119,6 @@
  CONFIG_RT2X00_LIB_FIRMWARE=y
  endif