Skip to content

Commit

Permalink
Add support for the latest kernels that don't define AUTOCONF_INCLUDED
Browse files Browse the repository at this point in the history
Use CONFIG_LOCALVERSION as an alternative to check that the
configuration settings have been included.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4134 0192ed92-7a03-0410-a25b-9323aeb14dbd
  • Loading branch information
proski committed Feb 2, 2011
1 parent 7da3379 commit e408c07
Show file tree
Hide file tree
Showing 35 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion ath/if_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include "if_ath_debug.h"
#include "opt_ah.h"

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion ath/if_ath_ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define EXPORT_SYMTAB
#endif

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion ath/if_ath_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#define EXPORT_SYMTAB
#endif

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion ath/if_ath_radar.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "if_ath_debug.h"

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
4 changes: 2 additions & 2 deletions ath_hal/ah_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
/* Don't use virtualized timer in Linux 2.6.20+ */
#define USE_REAL_TIME_DELAY

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif /* AUTOCONF_INCLUDED */
#endif
#include <linux/version.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down
2 changes: 1 addition & 1 deletion ath_rate/amrr/amrr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ath_rate/minstrel/minstrel.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
* Also, this implementation tracks the average transmission time for
* a few different packet sizes independently for each link. */

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion ath_rate/onoe/onoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ath_rate/sample/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* John Bicket's SampleRate control algorithm.
*/

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 generic handler
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* and if found the frame is either accepted (ACL_POLICY_ALLOW)
* or rejected (ACL_POLICY_DENT).
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 beacon handling routines
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 generic crypto support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_crypto_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* AP driver. The code is used with the consent of the author and
* its license is included below.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_crypto_none.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* IEEE 802.11 NULL crypto support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_crypto_tkip.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* AP driver. The code is used with the consent of the author and
* its license is included below.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_crypto_wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* IEEE 802.11 WEP crypto support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 input handling.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/*
* IEEE 802.11 support (Linux-specific code)
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* IEEE 802.11 monitor mode
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 node handling support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 output handling.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 power save support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 protocol support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_rate.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* Atheros module glue for rate control algorithms.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/*
* IEEE 802.11 scanning support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_scan_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/*
* IEEE 802.11 ap scanning support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_scan_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/*
* IEEE 802.11 station scanning support.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_skb.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* IEEE 802.11 support (Linux-specific code)
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_wireless.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/*
* Wireless extensions support for 802.11 common code.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion net80211/ieee80211_xauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* of the available callbacks--the user mode authenticator process works
* entirely from messages about stations joining and leaving.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion net80211/if_media.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#define EXPORT_SYMTAB
#endif

#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion regression/ccmp/test_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* you want; e.g. insmod ccmp_test tests=7 will run only test MPDUs
* 1, 2, and 3.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion regression/tkip/test_tkip.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/*
* TKIP test module.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down
2 changes: 1 addition & 1 deletion regression/wep/test_wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* you want; e.g. insmod wep_test tests=7 will run only test MPDUs
* 1, 2, and 3.
*/
#ifndef AUTOCONF_INCLUDED
#if !defined(AUTOCONF_INCLUDED) && !defined(CONFIG_LOCALVERSION)
#include <linux/config.h>
#endif
#include <linux/version.h>
Expand Down

0 comments on commit e408c07

Please sign in to comment.