From: nbd Date: Sat, 7 Jul 2007 09:29:15 +0000 (+0000) Subject: fix madwifi compile for 2.4 X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=818503d2bd8b44bea3a986eff59628d10ba67a6f fix madwifi compile for 2.4 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7885 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/madwifi/patches/124-linux24_compat.patch b/package/madwifi/patches/124-linux24_compat.patch new file mode 100644 index 000000000..f8b42ec69 --- /dev/null +++ b/package/madwifi/patches/124-linux24_compat.patch @@ -0,0 +1,16 @@ +Index: madwifi-ng-r2537-20070704/ath/if_athvar.h +=================================================================== +--- madwifi-ng-r2537-20070704.orig/ath/if_athvar.h 2007-07-07 11:28:00.232371000 +0200 ++++ madwifi-ng-r2537-20070704/ath/if_athvar.h 2007-07-07 11:28:09.784968000 +0200 +@@ -118,6 +118,11 @@ + #define ATH_GET_NETDEV_DEV(ndev) ((ndev)->class_dev.dev) + #endif + ++#ifndef NETDEV_TX_OK ++#define NETDEV_TX_OK 0 ++#define NETDEV_TX_BUSY 1 ++#endif ++ + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23) + static inline struct net_device *_alloc_netdev(int sizeof_priv, const char *mask, + void (*setup)(struct net_device *))