diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-07-02 12:46:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-07-02 12:46:18 +0000 |
commit | 6e0d17c89252ca4bdfb656ccde922c2e33a4f3fa (patch) | |
tree | d67fd554ea1e6f7cffa67faf914a3411020ac63b /package/mac80211 | |
parent | d4a858f5a66cc66ab268139f4f2eb24011c77210 (diff) | |
download | upstream-6e0d17c89252ca4bdfb656ccde922c2e33a4f3fa.tar.gz upstream-6e0d17c89252ca4bdfb656ccde922c2e33a4f3fa.tar.bz2 upstream-6e0d17c89252ca4bdfb656ccde922c2e33a4f3fa.zip |
ath9k: fix a crash with WEP in ad-hoc mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22046 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/patches/550-ath9k_fix_wep_adhoc_crash.patch | 13 |
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; |