From 960fc796fa946a4d0d3c749a6a5543996a0f1447 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 10 Jun 2010 23:12:10 +0000 Subject: mac80211: update to 2010-06-10, add pending work with stability and throughput fixes for ath9k git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21756 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../521-ath9k_common-use_mcast_search.patch | 72 ---------------------- 1 file changed, 72 deletions(-) delete mode 100644 package/mac80211/patches/521-ath9k_common-use_mcast_search.patch (limited to 'package/mac80211/patches/521-ath9k_common-use_mcast_search.patch') diff --git a/package/mac80211/patches/521-ath9k_common-use_mcast_search.patch b/package/mac80211/patches/521-ath9k_common-use_mcast_search.patch deleted file mode 100644 index b83e9583cb..0000000000 --- a/package/mac80211/patches/521-ath9k_common-use_mcast_search.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- a/drivers/net/wireless/ath/ath9k/common.c -+++ b/drivers/net/wireless/ath/ath9k/common.c -@@ -211,10 +211,14 @@ static int ath_reserve_key_cache_slot_tk - return -1; - } - --static int ath_reserve_key_cache_slot(struct ath_common *common) -+static int ath_reserve_key_cache_slot(struct ath_common *common, -+ enum ieee80211_key_alg alg) - { - int i; - -+ if (alg == ALG_TKIP) -+ return ath_reserve_key_cache_slot_tkip(common); -+ - /* First, try to find slots that would not be available for TKIP. */ - if (common->splitmic) { - for (i = IEEE80211_WEP_NKID; i < common->keymax / 4; i++) { -@@ -283,6 +287,7 @@ int ath9k_cmn_key_config(struct ath_comm - struct ath_hw *ah = common->ah; - struct ath9k_keyval hk; - const u8 *mac = NULL; -+ u8 gmac[ETH_ALEN]; - int ret = 0; - int idx; - -@@ -306,9 +311,23 @@ int ath9k_cmn_key_config(struct ath_comm - memcpy(hk.kv_val, key->key, key->keylen); - - if (!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { -- /* For now, use the default keys for broadcast keys. This may -- * need to change with virtual interfaces. */ -- idx = key->keyidx; -+ switch (vif->type) { -+ case NL80211_IFTYPE_AP: -+ memcpy(gmac, vif->addr, ETH_ALEN); -+ gmac[0] |= 0x01; -+ mac = gmac; -+ idx = ath_reserve_key_cache_slot(common, key->alg); -+ break; -+ case NL80211_IFTYPE_ADHOC: -+ memcpy(gmac, sta->addr, ETH_ALEN); -+ gmac[0] |= 0x01; -+ mac = gmac; -+ idx = ath_reserve_key_cache_slot(common, key->alg); -+ break; -+ default: -+ idx = key->keyidx; -+ break; -+ } - } else if (key->keyidx) { - if (WARN_ON(!sta)) - return -EOPNOTSUPP; -@@ -325,14 +344,12 @@ int ath9k_cmn_key_config(struct ath_comm - return -EOPNOTSUPP; - mac = sta->addr; - -- if (key->alg == ALG_TKIP) -- idx = ath_reserve_key_cache_slot_tkip(common); -- else -- idx = ath_reserve_key_cache_slot(common); -- if (idx < 0) -- return -ENOSPC; /* no free key cache entries */ -+ idx = ath_reserve_key_cache_slot(common, key->alg); - } - -+ if (idx < 0) -+ return -ENOSPC; /* no free key cache entries */ -+ - if (key->alg == ALG_TKIP) - ret = ath_setkey_tkip(common, idx, key->key, &hk, mac, - vif->type == NL80211_IFTYPE_AP); -- cgit v1.2.3