Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55135791 authored by Zhu Yi's avatar Zhu Yi Committed by James Ketrenos
Browse files

[Bug 760] Fix setting WEP key in monitor mode causes IV lost.



Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
parent 7b99659f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7907,7 +7907,7 @@ static void ipw_handle_data_packet(struct ipw_priv *priv,
	IPW_DEBUG_RX("Rx packet of %d bytes.\n", rxb->skb->len);

	/* HW decrypt will not clear the WEP bit, MIC, PN, etc. */
	if (!priv->ieee->host_decrypt)
	if (!priv->ieee->host_decrypt && priv->ieee->iw_mode != IW_MODE_MONITOR)
		ipw_rebuild_decrypted_skb(priv, rxb->skb);

	if (!ieee80211_rx(priv->ieee, rxb->skb, stats))