rtlwifi: Fix logic in rx_interrupt
authorMike McCormack <mikem@ring3k.org>
Mon, 30 May 2011 23:50:24 +0000 (08:50 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jun 2011 18:19:03 +0000 (14:19 -0400)
Should pass along packet if there's no CRC and no hardware error.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c

index 89100e7c553b782aa02b349075c488da54323e10..3e055c6bad36f83137e71ae5f338816007d7aaff 100644 (file)
@@ -700,7 +700,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
                                         rtlpci->rxbuffersize,
                                         PCI_DMA_FROMDEVICE);
 
-                       if (!stats.crc || !stats.hwerror) {
+                       if (!stats.crc && !stats.hwerror) {
                                memcpy(IEEE80211_SKB_RXCB(skb), &rx_status,
                                       sizeof(rx_status));