Fix build on 2.6.30
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 29 Jul 2009 00:40:16 +0000 (17:40 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 29 Jul 2009 00:40:16 +0000 (17:40 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat.diff

index d3f8e90e4702fc0f504ccc5102e2ab77375639c5..6081970d47db89c00b03b8d6ed1a4b6e05d324a9 100644 (file)
  }
  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 */