summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-05-31 08:50:24 +0900
committerJohn W. Linville <linville@tuxdriver.com>2011-06-03 15:01:06 -0400
commitdabd3001f941e35c4afa2458ceb17e5170062189 (patch)
tree047767f9b5c0a582ffdb5364cd358a63beac32a4
parent71352b2318675cf6a3f54c02a33d91ac17af1626 (diff)
downloadlinux-riscv-dabd3001f941e35c4afa2458ceb17e5170062189.tar.gz
linux-riscv-dabd3001f941e35c4afa2458ceb17e5170062189.tar.bz2
linux-riscv-dabd3001f941e35c4afa2458ceb17e5170062189.zip
rtlwifi: Fix logic in rx_interrupt
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>
-rw-r--r--drivers/net/wireless/rtlwifi/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c
index e29feef002bf..fc44005b0d53 100644
--- a/drivers/net/wireless/rtlwifi/pci.c
+++ b/drivers/net/wireless/rtlwifi/pci.c
@@ -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));