提交 5bd5e9a6 编写于 作者: C Chun-Yeow Yeoh 提交者: John W. Linville
上级 5ce543d1
...@@ -1873,7 +1873,8 @@ static int ath9k_set_key(struct ieee80211_hw *hw, ...@@ -1873,7 +1873,8 @@ static int ath9k_set_key(struct ieee80211_hw *hw,
if (ath9k_modparam_nohwcrypt) if (ath9k_modparam_nohwcrypt)
return -ENOSPC; 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_TKIP ||
key->cipher == WLAN_CIPHER_SUITE_CCMP) && key->cipher == WLAN_CIPHER_SUITE_CCMP) &&
!(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) { !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册