aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-02 12:46:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-02 12:46:18 +0000
commit8a5671711be4c861c92410c452a9656a142d70b5 (patch)
tree8890d47eea0e9d8b4cf252283e6f7569c0e5dd6a /package
parent86b4b5e1e95cc3eeec86d127d7413c62d8c00ff4 (diff)
downloadupstream-8a5671711be4c861c92410c452a9656a142d70b5.tar.gz
upstream-8a5671711be4c861c92410c452a9656a142d70b5.tar.bz2
upstream-8a5671711be4c861c92410c452a9656a142d70b5.zip
ath9k: fix a crash with WEP in ad-hoc mode
SVN-Revision: 22046
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/patches/550-ath9k_fix_wep_adhoc_crash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/mac80211/patches/550-ath9k_fix_wep_adhoc_crash.patch b/package/mac80211/patches/550-ath9k_fix_wep_adhoc_crash.patch
new file mode 100644
index 0000000000..a71db0440b
--- /dev/null
+++ b/package/mac80211/patches/550-ath9k_fix_wep_adhoc_crash.patch
@@ -0,0 +1,13 @@
+--- a/drivers/net/wireless/ath/ath9k/common.c
++++ b/drivers/net/wireless/ath/ath9k/common.c
+@@ -319,6 +319,10 @@ int ath9k_cmn_key_config(struct ath_comm
+ idx = ath_reserve_key_cache_slot(common, key->alg);
+ break;
+ case NL80211_IFTYPE_ADHOC:
++ if (!sta) {
++ idx = key->keyidx;
++ break;
++ }
+ memcpy(gmac, sta->addr, ETH_ALEN);
+ gmac[0] |= 0x01;
+ mac = gmac;