From 473f46f9cf5dc1d6daecfd514fb0fd0a208b4216 Mon Sep 17 00:00:00 2001 From: hauke Date: Sat, 27 Mar 2010 09:53:48 +0000 Subject: [PATCH] mac80211: fix build of ipw2200 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20502 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../mac80211/patches/014-add_iw_handler.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/mac80211/patches/014-add_iw_handler.patch diff --git a/package/mac80211/patches/014-add_iw_handler.patch b/package/mac80211/patches/014-add_iw_handler.patch new file mode 100644 index 000000000..5119b35fb --- /dev/null +++ b/package/mac80211/patches/014-add_iw_handler.patch @@ -0,0 +1,33 @@ +commit b7d48ccc687c44213121b1b565dccdc4488f5d9a +Author: Pavel Roskin +Date: Wed Mar 24 17:23:37 2010 -0400 + + compat: add compat-2.6.35.h and IW_HANDLER + + Signed-off-by: Pavel Roskin + +--- /dev/null ++++ b/include/linux/compat-2.6.35.h +@@ -0,0 +1,13 @@ ++#ifndef LINUX_26_35_COMPAT_H ++#define LINUX_26_35_COMPAT_H ++ ++#include ++ ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) ++ ++#define IW_HANDLER(id, func) \ ++ [IW_IOCTL_IDX(id)] = func ++ ++#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */ ++ ++#endif /* LINUX_26_35_COMPAT_H */ +--- a/include/linux/compat-2.6.h ++++ b/include/linux/compat-2.6.h +@@ -27,5 +27,6 @@ + #include + #include + #include ++#include + + #endif /* LINUX_26_COMPAT_H */ -- 2.20.1