From: Zhu Yi Date: Thu, 25 Aug 2005 09:43:14 +0000 (+0800) Subject: [Bug 760] Fix setting WEP key in monitor mode causes IV lost. X-Git-Tag: v2.6.15-rc1~69^2~10^2~23 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55135791819270a412dfb99f66301f02c72edadf;p=linux-2.6 [Bug 760] Fix setting WEP key in monitor mode causes IV lost. Signed-off-by: Zhu Yi --- diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index 4cdb4748b7..bda292f7f8 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c @@ -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))