@@ -923,6 +923,13 @@ ieee80211_rx_h_decrypt(struct ieee80211_rx_data *rx)
rx->key = rcu_dereference(rx->sdata->keys[keyidx]);
/*
+ * Using WPA-NONE in IBSS, all frames, be it unicast or
+ * multicast (including broadcast) are encrypted with the
+ * same group key. In this case, we should not reset the key
+ * to NULL
+ */
+#if 0
+ /*
* RSNA-protected unicast frames should always be sent with
* pairwise or station-to-station keys, but for WEP we allow
* using a key index as well.
@@ -930,6 +937,7 @@ ieee80211_rx_h_decrypt(struct ieee80211_rx_data *rx)
if (rx->key && rx->key->conf.alg != ALG_WEP &&
!is_multicast_ether_addr(hdr->addr1))
rx->key = NULL;
+#endif
}
if (rx->key) {