Don't reference vlan_group without IEEE80211_VLAN_TAG_USED set
[madwifi/.git] / ath_rate / amrr / amrr.c
index c2ec5b812e81f23d6db8b1a94e6570f08374e113..5af14d8fdd0296d0f86d1b07bde7c4105d546005 100644 (file)
@@ -43,7 +43,7 @@
  * "IEEE 802.11 Rate Adaptation: A Practical Approach" by
  *    Mathieu Lacage, Hossein Manshaei, Thierry Turletti
  */
-#ifndef AUTOCONF_INCLUDED
+#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
 #include <linux/config.h>
 #endif
 #include <linux/version.h>
@@ -528,28 +528,28 @@ static ctl_table ath_rate_static_sysctls[] = {
          .extra2       = &maxint,
          .proc_handler = proc_dointvec_minmax
        },
-       { }
+       { }
 };
 static ctl_table ath_rate_table[] = {
        { ATH_INIT_CTL_NAME(CTL_AUTO)
          .procname     = "rate_amrr",
          .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;