linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 8/8] rtlwifi: Fix logic in rx_interrupt
@ 2011-05-23 13:55 Mike McCormack
  2011-05-23 19:57 ` Larry Finger
  0 siblings, 1 reply; 4+ messages in thread
From: Mike McCormack @ 2011-05-23 13:55 UTC (permalink / raw)
  To: Larry.Finger, chaoming_li; +Cc: linville, linux-wireless

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

Signed-off-by: Mike McCormack <mikem@ring3k.org>
---
 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));
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH 8/8] rtlwifi: Fix logic in rx_interrupt
@ 2011-05-25  0:41 Mike McCormack
  0 siblings, 0 replies; 4+ messages in thread
From: Mike McCormack @ 2011-05-25  0:41 UTC (permalink / raw)
  To: linville; +Cc: Larry.Finger, chaoming_li, linux-wireless

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>
---
 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));
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH 8/8] rtlwifi: Fix logic in rx_interrupt
@ 2011-05-30 23:50 Mike McCormack
  0 siblings, 0 replies; 4+ messages in thread
From: Mike McCormack @ 2011-05-30 23:50 UTC (permalink / raw)
  To: linville; +Cc: Larry.Finger, chaoming_li, linux-wireless

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>
---
 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 e29feef..fc44005 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));
 
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-30 23:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-23 13:55 [PATCH 8/8] rtlwifi: Fix logic in rx_interrupt Mike McCormack
2011-05-23 19:57 ` Larry Finger
  -- strict thread matches above, loose matches on Subject: below --
2011-05-25  0:41 Mike McCormack
2011-05-30 23:50 Mike McCormack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).