Search Linux Wireless

Re: [PATCH 8/8] rtlwifi: Fix logic in rx_interrupt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/23/2011 08:55 AM, Mike McCormack wrote:
Should pass along packet if there's no CRC and no hardware error.

Signed-off-by: Mike McCormack<mikem@xxxxxxxxxx>
---
  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 4fe405a..215abfa 100644
--- a/drivers/net/wireless/rtlwifi/pci.c
+++ b/drivers/net/wireless/rtlwifi/pci.c
@@ -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));


Good catch.

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---

Larry

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux