]> err.no Git - linux-2.6/commitdiff
[Bug 760] Fix setting WEP key in monitor mode causes IV lost.
authorZhu Yi <yi.zhu@intel.com>
Thu, 25 Aug 2005 09:43:14 +0000 (17:43 +0800)
committerJames Ketrenos <jketreno@linux.intel.com>
Mon, 7 Nov 2005 23:51:14 +0000 (17:51 -0600)
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
drivers/net/wireless/ipw2200.c

index 4cdb4748b761b93b511ecf48e6920c97d333b1ee..bda292f7f82c0be6b555f91dafa22f0e60fad231 100644 (file)
@@ -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))