|
@@ -483,6 +483,14 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
|
if (ath5k_modparam_nohwcrypt)
|
|
|
return -EOPNOTSUPP;
|
|
|
|
|
|
+ if (vif->type == NL80211_IFTYPE_ADHOC &&
|
|
|
+ (key->cipher == WLAN_CIPHER_SUITE_TKIP ||
|
|
|
+ key->cipher == WLAN_CIPHER_SUITE_CCMP) &&
|
|
|
+ !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE)) {
|
|
|
+ /* don't program group keys when using IBSS_RSN */
|
|
|
+ return -EOPNOTSUPP;
|
|
|
+ }
|
|
|
+
|
|
|
switch (key->cipher) {
|
|
|
case WLAN_CIPHER_SUITE_WEP40:
|
|
|
case WLAN_CIPHER_SUITE_WEP104:
|