From 0a89510196beaa0ccf0d292b0271fd8e34f391a2 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 28 Jul 2009 17:40:16 -0700 Subject: [PATCH] Fix build on 2.6.30 Signed-off-by: Luis R. Rodriguez --- compat/compat.diff | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compat/compat.diff b/compat/compat.diff index d3f8e90e4702..6081970d47db 100644 --- a/compat/compat.diff +++ b/compat/compat.diff @@ -1034,3 +1034,15 @@ } EXPORT_SYMBOL(wireless_send_event); +--- a/net/wireless/nl80211.c 2009-07-27 16:22:30.301045695 -0700 ++++ b/net/wireless/nl80211.c 2009-07-27 18:17:28.445046102 -0700 +@@ -29,7 +29,9 @@ + .hdrsize = 0, /* no private header */ + .version = 1, /* no particular meaning now */ + .maxattr = NL80211_ATTR_MAX, ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)) + .netnsok = true, ++#endif + }; + + /* internal helper: get rdev and dev */ -- 2.30.2