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>
Fri, 3 Jun 2011 19:01:06 +0000 (15:01 -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 e29feef002bf3da2ae1d747452c2cdb27ef541cd..fc44005b0d53a6f2c866dd90b896bacf05ad5cda 100644 (file)
@@ -701,7 +701,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));