Fix compilation on Linux 3.1 broken by VLAN API changes
[madwifi/.git] / ath_rate / onoe / onoe.c
index 14879d61614b31425e403f90c05a90674e8778e8..1b61b8839ad3b9e5030053d2501d653a910d89eb 100644 (file)
@@ -39,7 +39,7 @@
 /*
  * Atsushi Onoe's rate control algorithm.
  */
-#ifndef AUTOCONF_INCLUDED
+#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
 #include <linux/config.h>
 #endif
 #include <linux/version.h>
@@ -474,28 +474,28 @@ static ctl_table ath_rate_static_sysctls[] = {
          .maxlen       = sizeof(ath_rate_raise_threshold),
          .proc_handler = proc_dointvec
        },
-       { }
+       { }
 };
 static ctl_table ath_rate_table[] = {
        { ATH_INIT_CTL_NAME(CTL_AUTO)
          .procname     = "rate_onoe",
          .mode         = 0555,
          .child        = ath_rate_static_sysctls
-       }, { }
+       }, { }
 };
 static ctl_table ath_ath_table[] = {
        { ATH_INIT_CTL_NAME(DEV_ATH)
          .procname     = "ath",
          .mode         = 0555,
          .child        = ath_rate_table
-       }, { }
+       }, { }
 };
 static ctl_table ath_root_table[] = {
        { ATH_INIT_CTL_NAME(CTL_DEV)
          .procname     = "dev",
          .mode         = 0555,
          .child        = ath_ath_table
-       }, { }
+       }, { }
 };
 static struct ctl_table_header *ath_sysctl_header;