From 8f0dde85436dfa5e7186e665d2e1ad3be273d6fb Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 16 Aug 2008 17:00:13 +0000
Subject: fix madwifi napi polling packet counting final fix for #3880

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12323 3c298f89-4303-0410-b956-a3cf2f4a3e73
---
 package/madwifi/patches/300-napi_polling.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'package/madwifi/patches')

diff --git a/package/madwifi/patches/300-napi_polling.patch b/package/madwifi/patches/300-napi_polling.patch
index 0d7b566b8d..fae35b54be 100644
--- a/package/madwifi/patches/300-napi_polling.patch
+++ b/package/madwifi/patches/300-napi_polling.patch
@@ -231,13 +231,13 @@
  			break;
  		}
 +
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
-+		processed++;
-+#endif
 +		if (rx_limit-- < 2) {
 +			early_stop = 1;
 +			break;
 +		}
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
++		processed++;
++#endif
 +
  		skb = bf->bf_skb;
  		if (skb == NULL) {
-- 
cgit v1.2.3