summaryrefslogtreecommitdiff
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-07 09:29:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-07 09:29:15 +0000
commita22cf8b5a6ef53b6fe58954851ed05e85a10232a (patch)
treec82194bc3d7112b650c9184e50e916c0a043872d /package/madwifi/patches
parent463ade84f973cf698847a97aca0ecaac1d031b60 (diff)
downloadmtk-20170518-a22cf8b5a6ef53b6fe58954851ed05e85a10232a.zip
mtk-20170518-a22cf8b5a6ef53b6fe58954851ed05e85a10232a.tar.gz
mtk-20170518-a22cf8b5a6ef53b6fe58954851ed05e85a10232a.tar.bz2
fix madwifi compile for 2.4
SVN-Revision: 7885
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/124-linux24_compat.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/madwifi/patches/124-linux24_compat.patch b/package/madwifi/patches/124-linux24_compat.patch
new file mode 100644
index 0000000..f8b42ec
--- /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 *))