1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[madwifi] Make madwifi compile with kernel 2.6.30.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15850 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke
2009-05-14 19:00:11 +00:00
parent 793ad82542
commit e7ee300066
3 changed files with 151 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
sc->sc_isr &= ~HAL_INT_RX;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
+ if (netif_rx_schedule_prep(&sc->sc_napi))
+ if (napi_schedule_prep(&sc->sc_napi))
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
if (netif_rx_schedule_prep(dev, &sc->sc_napi))
#else
@@ -17,7 +17,7 @@
ath_hal_intrset(ah, sc->sc_imask);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
+ __netif_rx_schedule(&sc->sc_napi);
+ __napi_schedule(&sc->sc_napi);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
__netif_rx_schedule(dev, &sc->sc_napi);
#else
@@ -28,7 +28,7 @@
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
+ netif_rx_complete(napi);
+ napi_complete(napi);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
netif_rx_complete(dev, napi);
#else