Skip to content

Commit

Permalink
rtlwifi: Fix logic in rx_interrupt
Browse files Browse the repository at this point in the history
Should pass along packet if there's no CRC and no hardware error.

Signed-off-by: Mike McCormack <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
mikemccormack authored and linvjw committed Jun 3, 2011
1 parent 71352b2 commit dabd300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtlwifi/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit dabd300

Please sign in to comment.