madwifi: napi polling fix - fix u_int negative comparison - add some reserve for...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 11 Aug 2008 14:36:50 +0000 (14:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 11 Aug 2008 14:36:50 +0000 (14:36 +0000)
SVN-Revision: 12280

package/madwifi/patches/300-napi_polling.patch

index 609e74cd217127de3dcab928049dd1d8c0e36f22..0d7b566b8d7a7396c4721c445bcceba9ad19dcb8 100644 (file)
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
 +              processed++;
 +#endif
-+              if (rx_limit-- < 0) {
++              if (rx_limit-- < 2) {
 +                      early_stop = 1;
 +                      break;
 +              }