aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-11 14:36:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-11 14:36:50 +0000
commitee66da6d557c087508ec5e32db9f81b20ed6f449 (patch)
tree59a1aa977d0e0dc5f1070a622cc58faa34c6bc69 /package/madwifi/patches
parent54e9123cdcaadac43c43c59154f817856140e8ed (diff)
downloadupstream-ee66da6d557c087508ec5e32db9f81b20ed6f449.tar.gz
upstream-ee66da6d557c087508ec5e32db9f81b20ed6f449.tar.bz2
upstream-ee66da6d557c087508ec5e32db9f81b20ed6f449.zip
madwifi: napi polling fix
- fix u_int negative comparison - add some reserve for polling packets (ff has two frames in one descriptor) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12280 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/300-napi_polling.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/patches/300-napi_polling.patch b/package/madwifi/patches/300-napi_polling.patch
index 609e74cd21..0d7b566b8d 100644
--- a/package/madwifi/patches/300-napi_polling.patch
+++ b/package/madwifi/patches/300-napi_polling.patch
@@ -234,7 +234,7 @@
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
+ processed++;
+#endif
-+ if (rx_limit-- < 0) {
++ if (rx_limit-- < 2) {
+ early_stop = 1;
+ break;
+ }