mac80211: fix build of ipw2200
[openwrt.git] / package / mac80211 / patches / 014-add_iw_handler.patch
1 commit b7d48ccc687c44213121b1b565dccdc4488f5d9a
2 Author: Pavel Roskin <proski@gnu.org>
3 Date: Wed Mar 24 17:23:37 2010 -0400
4
5 compat: add compat-2.6.35.h and IW_HANDLER
6
7 Signed-off-by: Pavel Roskin <proski@gnu.org>
8
9 --- /dev/null
10 +++ b/include/linux/compat-2.6.35.h
11 @@ -0,0 +1,13 @@
12 +#ifndef LINUX_26_35_COMPAT_H
13 +#define LINUX_26_35_COMPAT_H
14 +
15 +#include <linux/version.h>
16 +
17 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
18 +
19 +#define IW_HANDLER(id, func) \
20 + [IW_IOCTL_IDX(id)] = func
21 +
22 +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
23 +
24 +#endif /* LINUX_26_35_COMPAT_H */
25 --- a/include/linux/compat-2.6.h
26 +++ b/include/linux/compat-2.6.h
27 @@ -27,5 +27,6 @@
28 #include <linux/compat-2.6.32.h>
29 #include <linux/compat-2.6.33.h>
30 #include <linux/compat-2.6.34.h>
31 +#include <linux/compat-2.6.35.h>
32
33 #endif /* LINUX_26_COMPAT_H */
This page took 0.04314 seconds and 5 git commands to generate.