summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-16 17:00:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-16 17:00:13 +0000
commit468573605a69680b1af90e0698ad1cae41236309 (patch)
treedfa0a62e613c7da21db1e45b5f7e970d73bcfbdf
parent3e8bff3590764c1f6f691db7c7fbb020e6113944 (diff)
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
-rw-r--r--package/madwifi/patches/300-napi_polling.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/patches/300-napi_polling.patch b/package/madwifi/patches/300-napi_polling.patch
index 0d7b566b8..fae35b54b 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) {