You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
385 B
14 lines
385 B
15 years ago
|
--- 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;
|