diff options
author | Mike McCormack <mikem@ring3k.org> | 2011-05-31 08:50:24 +0900 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-07 14:19:03 -0400 |
commit | 4fea2e0e59dab863a63fa1638b86d850896cd861 (patch) | |
tree | 4f368a5db7699a1b431868eca6a98e0ba52d8b75 /drivers/net/wireless/rtlwifi | |
parent | bb77f6341728624314f488ebd8b4c69f2caa33ea (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c index 89100e7c553..3e055c6bad3 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)); |