From 8f6af44e354f139e3939ee953305003f5b710280 Mon Sep 17 00:00:00 2001 From: Chun-Yeow Yeoh Date: Wed, 7 Dec 2011 12:45:46 -0800 Subject: [PATCH] --- yaml --- r: 279005 b: refs/heads/master c: 5bd5e9a6ae5137a61d0b5c277eac61892d89fc4f h: refs/heads/master i: 279003: a90684fd1addc35b87e8582ce12182fcc651f7dd v: v3 --- [refs] | 2 +- trunk/drivers/net/wireless/ath/ath9k/main.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 76d320123fd3..bfc8c4812519 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5ce543d148bf7590294e76bc30f4c4d6777fe094 +refs/heads/master: 5bd5e9a6ae5137a61d0b5c277eac61892d89fc4f diff --git a/trunk/drivers/net/wireless/ath/ath9k/main.c b/trunk/drivers/net/wireless/ath/ath9k/main.c index 4475b0d5b3ae..7fbc4bdd4efe 100644 --- a/trunk/drivers/net/wireless/ath/ath9k/main.c +++ b/trunk/drivers/net/wireless/ath/ath9k/main.c @@ -1873,7 +1873,8 @@ static int ath9k_set_key(struct ieee80211_hw *hw, if (ath9k_modparam_nohwcrypt) return -ENOSPC; - if (vif->type == NL80211_IFTYPE_ADHOC && + if ((vif->type == NL80211_IFTYPE_ADHOC || + vif->type == NL80211_IFTYPE_MESH_POINT) && (key->cipher == WLAN_CIPHER_SUITE_TKIP || key->cipher == WLAN_CIPHER_SUITE_CCMP) && !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {