diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-14 22:53:54 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-14 22:53:54 +0000 |
commit | e30b799cdce79c4fe33c8bd09d2f289baf788382 (patch) | |
tree | 0bfc5f31cc4ea54f7253c14f510eac831f1495d0 /package/carl9170 | |
parent | 872d5928d93dcbb73d86a06bfe3981cbd3e35baf (diff) |
mac80211: upgrade to wireless-testing 2010-09-14, replace the external carl9170 with the recently merged upstream version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23061 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/carl9170')
-rw-r--r-- | package/carl9170/Makefile | 90 | ||||
-rw-r--r-- | package/carl9170/patches/100-request_firmware_compat.patch | 31 | ||||
-rw-r--r-- | package/carl9170/patches/110-ht_default.patch | 11 | ||||
-rw-r--r-- | package/carl9170/patches/120-2.6.35-compat.patch | 53 |
4 files changed, 0 insertions, 185 deletions
diff --git a/package/carl9170/Makefile b/package/carl9170/Makefile deleted file mode 100644 index 534f179658..0000000000 --- a/package/carl9170/Makefile +++ /dev/null @@ -1,90 +0,0 @@ -# -# Copyright (C) 2010 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk -include $(INCLUDE_DIR)/kernel.mk - -PKG_NAME:=carl9170 -PKG_VERSION:=1.0.5.3 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/chr/carl9170/$(PKG_VERSION) \ - @KERNEL/linux/kernel/people/chr/carl9170/old/$(PKG_VERSION) -PKG_MD5SUM:=91d714d1e5c5c62da1191ac5afd8bcb0 - -PKG_CONFIG_DEPENDS:= \ - CONFIG_PACKAGE_CARL9170_DEBUGFS \ - -include $(INCLUDE_DIR)/package.mk - -DRV_PATH:=$(PKG_BUILD_DIR)/drivers/net/wireless/ath/carl9170 - -define KernelPackage/carl9170 - SUBMENU:=Wireless Drivers - TITLE:=Driver for Atheros AR9170 USB sticks - DEPENDS:=@USB_SUPPORT +kmod-mac80211 +kmod-ath +kmod-usb-core - URL:=http://www.kernel.org/pub/linux/kernel/people/chr/carl9170 - FILES:=$(DRV_PATH)/carl9170usb.ko - AUTOLOAD:=$(call AutoLoad,60,carl9170usb) - MENU:=1 -endef - -define KernelPackage/carl9170/config - menu "Configuration" - depends PACKAGE_kmod-carl9170 - - config PACKAGE_CARL9170_DEBUGFS - bool "Enable Debugging (DebugFS) Support" - depends PACKAGE_MAC80211_DEBUGFS - help - Say Y if you need access to carl9170usb's statistics for QoS queue - status, rate control, etc... - - endmenu -endef - -define KernelPackage/carl9170/description - This package contains a driver for Atheros AR9170 USB sticks using the free firmware -endef - -define Build/Prepare - rm -rf $(PKG_BUILD_DIR) - mkdir -p $(PKG_BUILD_DIR) - $(HOST_TAR) -C $(PKG_BUILD_DIR) -xjf $(DL_DIR)/$(PKG_SOURCE) - $(HOST_TAR) -C $(PKG_BUILD_DIR) -xf $(PKG_BUILD_DIR)/$(PKG_VERSION)/driver/carl9170-driver-$(PKG_VERSION).tar - ln -s $(STAGING_DIR)/usr/include/mac80211/ath/*.h $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ - $(Build/Patch) -endef - -BUILDFLAGS = \ - CONFIG_CARL9170_USB=m \ - CONFIG_CARL9170_LEDS=$(if $(CONFIG_LEDS_TRIGGERS),y) \ - CONFIG_CARL9170_DEBUGFS=$(if $(CONFIG_PACKAGE_CARL9170_DEBUGFS),y) \ - CONFIG_MAC80211_DEBUGFS=$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),y) \ - -EXTRA_CFLAGS = \ - $(if $(CONFIG_ATH_USER_REGD),-DATH_USER_REGD) \ - $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS -DCONFIG_CARL9170_LEDS) \ - $(if $(CONFIG_PACKAGE_CARL9170_DEBUGFS),-DCONFIG_CARL9170_DEBUGFS) \ - $(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),-DCONFIG_MAC80211_DEBUGFS) \ - -define Build/Compile - $(MAKE) -C $(LINUX_DIR) \ - SUBDIRS="$(DRV_PATH)" \ - ARCH="$(LINUX_KARCH)" \ - CROSS_COMPILE="$(KERNEL_CROSS)" \ - CC="$(TARGET_CC) -I$(STAGING_DIR)/usr/include/mac80211 $(EXTRA_CFLAGS)" \ - $(BUILDFLAGS) -endef - -define KernelPackage/carl9170/install - $(INSTALL_DIR) $(1)/lib/firmware - $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(PKG_VERSION)/firmware_build/carl9170-1.fw $(1)/lib/firmware/ -endef - -$(eval $(call KernelPackage,carl9170)) diff --git a/package/carl9170/patches/100-request_firmware_compat.patch b/package/carl9170/patches/100-request_firmware_compat.patch deleted file mode 100644 index cc29239c8d..0000000000 --- a/package/carl9170/patches/100-request_firmware_compat.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/drivers/net/wireless/ath/carl9170/usb.c -+++ b/drivers/net/wireless/ath/carl9170/usb.c -@@ -1000,11 +1000,28 @@ err_failed: - ar9170_usb_firmware_failed(aru); - } - -+ -+ - static int ar9170_usb_request_firmware(struct ar9170_usb *aru) - { -+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) -+ const struct firmware *fw; -+ int ret; -+ -+ ret = request_firmware(&fw, -+ ar9170_fws[aru->fw_load].files[aru->fw_files].name, -+ &aru->udev->dev); -+ -+ if (ret < 0) -+ return ret; -+ -+ ar9170_usb_firmware_step2(fw, aru); -+ return 0; -+#else - return request_firmware_nowait(THIS_MODULE, 1, - ar9170_fws[aru->fw_load].files[aru->fw_files].name, - &aru->udev->dev, GFP_KERNEL, aru, ar9170_usb_firmware_step2); -+#endif - } - - static void ar9170_usb_disconnect(struct usb_interface *intf) diff --git a/package/carl9170/patches/110-ht_default.patch b/package/carl9170/patches/110-ht_default.patch deleted file mode 100644 index 5e1c4bccfa..0000000000 --- a/package/carl9170/patches/110-ht_default.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/drivers/net/wireless/ath/carl9170/main.c -+++ b/drivers/net/wireless/ath/carl9170/main.c -@@ -51,7 +51,7 @@ static int modparam_nohwcrypt; - module_param_named(nohwcrypt, modparam_nohwcrypt, bool, S_IRUGO); - MODULE_PARM_DESC(nohwcrypt, "Disable hardware encryption."); - --int modparam_ht; -+int modparam_ht = 1; - module_param_named(ht, modparam_ht, bool, S_IRUGO); - MODULE_PARM_DESC(ht, "enable MPDU aggregation."); - diff --git a/package/carl9170/patches/120-2.6.35-compat.patch b/package/carl9170/patches/120-2.6.35-compat.patch deleted file mode 100644 index e413edf2c8..0000000000 --- a/package/carl9170/patches/120-2.6.35-compat.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/drivers/net/wireless/ath/carl9170/main.c -+++ b/drivers/net/wireless/ath/carl9170/main.c -@@ -591,21 +591,36 @@ out: - return err; - } - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, -+ struct netdev_hw_addr_list *mclist) -+#else - static u64 ar9170_op_prepare_multicast(struct ieee80211_hw *hw, int mc_count, - struct dev_addr_list *mclist) -+#endif - { - u64 mchash; -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+ struct netdev_hw_addr *ha; -+#else - int i; -+#endif - - /* always get broadcast frames */ - mchash = 1ULL << (0xff >> 2); - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+ netdev_hw_addr_list_for_each(ha, mclist) { -+ mchash |= 1ULL << (ha->addr[5] >> 2); -+ } -+#else - for (i = 0; i < mc_count; i++) { - if (WARN_ON(!mclist)) - break; - mchash |= 1ULL << (mclist->dmi_addr[5] >> 2); - mclist = mclist->next; - } -+#endif - - return mchash; - } ---- a/drivers/net/wireless/ath/carl9170/usb.c -+++ b/drivers/net/wireless/ath/carl9170/usb.c -@@ -48,6 +48,11 @@ - #include "fwcmd.h" - #include "usb.h" - -+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) -+#define usb_buffer_alloc(dev, size, mem_flags, dma) usb_alloc_coherent(dev, size, mem_flags, dma) -+#define usb_buffer_free(dev, size, addr, dma) usb_free_coherent(dev, size, addr, dma) -+#endif -+ - MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); - MODULE_AUTHOR("Christian Lamparter <chunkeey@googlemail.com>"); - MODULE_LICENSE("GPL"); |