From f1348b36aace39f8399bcc2f65ad6a7168c1de48 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 2 May 2013 13:28:32 +0000 Subject: mac80211: fix compile errors on platforms with power management enabled Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@36520 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/patches/050-compat_backport.patch | 35 ++++++++++++++++++++++ .../mac80211/patches/100-pm_export_symbol.patch | 7 +++++ 2 files changed, 42 insertions(+) create mode 100644 package/mac80211/patches/050-compat_backport.patch create mode 100644 package/mac80211/patches/100-pm_export_symbol.patch (limited to 'package') diff --git a/package/mac80211/patches/050-compat_backport.patch b/package/mac80211/patches/050-compat_backport.patch new file mode 100644 index 0000000000..7503de2990 --- /dev/null +++ b/package/mac80211/patches/050-compat_backport.patch @@ -0,0 +1,35 @@ +--- a/include/linux/compat-3.5.h ++++ b/include/linux/compat-3.5.h +@@ -8,6 +8,32 @@ + + #if (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) + ++#include ++ ++/* ++ * This backports: ++ * commit 569a8fc38367dfafd87454f27ac646c8e6b54bca ++ * Author: David S. Miller ++ * Date: Thu Mar 29 23:18:53 2012 -0400 ++ * ++ * netlink: Add nla_put_be{16,32,64}() helpers. ++ */ ++ ++static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be16), &value); ++} ++ ++static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be32), &value); ++} ++ ++static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value) ++{ ++ return nla_put(skb, attrtype, sizeof(__be64), &value); ++} ++ + /* + * This backports: + * diff --git a/package/mac80211/patches/100-pm_export_symbol.patch b/package/mac80211/patches/100-pm_export_symbol.patch new file mode 100644 index 0000000000..25fdc8c202 --- /dev/null +++ b/package/mac80211/patches/100-pm_export_symbol.patch @@ -0,0 +1,7 @@ +--- a/net/mac80211/pm.c ++++ b/net/mac80211/pm.c +@@ -1,3 +1,4 @@ ++#include + #include + #include + -- cgit v1.2.3