mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 01:44:54 +00:00
make madwifi compile with kernel 2.6.29.
SVN-Revision: 15773
This commit is contained in:
parent
f24a7c7a68
commit
51445f3a18
1936
package/madwifi/patches/430-use_netdev_priv.patch
Normal file
1936
package/madwifi/patches/430-use_netdev_priv.patch
Normal file
File diff suppressed because it is too large
Load Diff
35
package/madwifi/patches/431-compile_fixes.patch
Normal file
35
package/madwifi/patches/431-compile_fixes.patch
Normal file
@ -0,0 +1,35 @@
|
||||
--- a/ath/if_ath.c
|
||||
+++ b/ath/if_ath.c
|
||||
@@ -2387,7 +2387,9 @@ ath_intr(int irq, void *dev_id, struct p
|
||||
if (status & (HAL_INT_RX | HAL_INT_RXPHY)) {
|
||||
ath_uapsd_processtriggers(sc, hw_tsf);
|
||||
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))
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
|
||||
if (netif_rx_schedule_prep(dev, &sc->sc_napi))
|
||||
#else
|
||||
if (netif_rx_schedule_prep(dev))
|
||||
@@ -2395,7 +2397,9 @@ ath_intr(int irq, void *dev_id, struct p
|
||||
{
|
||||
sc->sc_imask &= ~HAL_INT_RX;
|
||||
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);
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
|
||||
__netif_rx_schedule(dev, &sc->sc_napi);
|
||||
#else
|
||||
__netif_rx_schedule(dev);
|
||||
@@ -7131,7 +7135,9 @@ rx_next:
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
|
||||
+ netif_rx_complete(napi);
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
|
||||
netif_rx_complete(dev, napi);
|
||||
#else
|
||||
netif_rx_complete(dev);
|
Loading…
Reference in New Issue
Block a user