ath9k: Support RSN Mesh
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Wed, 7 Dec 2011 20:45:46 +0000 (12:45 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Dec 2011 14:30:43 +0000 (09:30 -0500)
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c

index 4475b0d5b3aeb7d0304a2662b0b41c4cbe753c34..7fbc4bdd4efeb6c5a8e7ea392f227fef777d0d8f 100644 (file)
@@ -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)) {