Skip to contentSkip to conversation

rtlwifi: Fix logic in rx_interrupt

PATCH Superseded Mike McCormack 1 participant 1 message May 25, 2011 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 8/8 rtlwifi: Fix logic in rx_interrupt

Should pass along packet if there's no CRC and no hardware error.

---
 drivers/net/wireless/rtlwifi/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/rtlwifi/pci.c +1 -1
index 4fe405a..215abfa 100644
@@ -691,7 +691,7 @@ static void _rtl_pci_rx_interrupt(struct ieee80211_hw *hw)
 			hdr = rtl_get_hdr(skb);
 			fc = rtl_get_fc(skb);
 
-			if (!stats.crc || !stats.hwerror) {
+			if (!stats.crc && !stats.hwerror) {
 				memcpy(IEEE80211_SKB_RXCB(skb), &rx_status,
 				       sizeof(rx_status));
 
Signature · 1 line
1.7.4.1