From: Mike McCormack Date: Mon, 30 May 2011 23:50:24 +0000 (+0900) Subject: rtlwifi: Fix logic in rx_interrupt X-Git-Tag: MMI-PSA29.97-13-9~19057^2~14^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4fea2e0e59dab863a63fa1638b86d850896cd861;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git rtlwifi: Fix logic in rx_interrupt Should pass along packet if there's no CRC and no hardware error. Signed-off-by: Mike McCormack Signed-off-by: Larry Finger Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 89100e7c553b..3e055c6bad36 100644 --- a/drivers/net/wireless/rtlwifi/pci.c +++ b/drivers/net/wireless/rtlwifi/pci.c @@ -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));