Skip to content

Commit

Permalink
[Bug 760] Fix setting WEP key in monitor mode causes IV lost.
Browse files Browse the repository at this point in the history
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
  • Loading branch information
Zhu Yi authored and James Ketrenos committed Nov 7, 2005
1 parent 7b99659 commit 5513579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5513579

Please sign in to comment.