|
@@ -3207,7 +3207,8 @@ static int iwl_mac_setup_register(struct iwl_priv *priv,
|
|
|
hw->wiphy->max_remain_on_channel_duration = 1000;
|
|
|
|
|
|
hw->wiphy->flags |= WIPHY_FLAG_CUSTOM_REGULATORY |
|
|
|
- WIPHY_FLAG_DISABLE_BEACON_HINTS;
|
|
|
+ WIPHY_FLAG_DISABLE_BEACON_HINTS |
|
|
|
+ WIPHY_FLAG_IBSS_RSN;
|
|
|
|
|
|
/*
|
|
|
* For now, disable PS by default because it affects
|
|
@@ -3359,6 +3360,14 @@ int iwlagn_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
|
return -EOPNOTSUPP;
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ * To support IBSS RSN, don't program group keys in IBSS, the
|
|
|
+ * hardware will then not attempt to decrypt the frames.
|
|
|
+ */
|
|
|
+ if (vif->type == NL80211_IFTYPE_ADHOC &&
|
|
|
+ !(key->flags & IEEE80211_KEY_FLAG_PAIRWISE))
|
|
|
+ return -EOPNOTSUPP;
|
|
|
+
|
|
|
sta_id = iwl_sta_id_or_broadcast(priv, vif_priv->ctx, sta);
|
|
|
if (sta_id == IWL_INVALID_STATION)
|
|
|
return -EINVAL;
|