Commit Graph

23 Commits

Author SHA1 Message Date
Pavel Roskin
19e85c5f13 Don't rely on typedef for struct ctl_table, it's going away 2014-06-17 11:52:02 -04:00
proski
e9c7901f6e Don't use "{ 0 }" to initialize structures, use "{ }"
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4161 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 05:43:55 +00:00
proski
e408c071a2 Add support for the latest kernels that don't define AUTOCONF_INCLUDED
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
2011-02-02 21:10:53 +00:00
proski
4bbde45a51 Don't set ctl_name in Linux 2.6.33+, it was removed
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4102 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-09 08:34:37 +00:00
proski
58395167ee Remove all references to _trace_regop() and MMIOTRACE
It's obsolete and useless now, when the HAL sources are open.  It also
misuses ath_hal_debug in a way incompatible with the use of
ath_hal_debug inside the HAL.

The mmiotrace facility is available in the kernel and doesn't require
any changes to the sources.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4020 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-07 21:11:03 +00:00
proski
200f8b8a6a Fix compilation with HAL_DEBUG=1
Provide forward declaration of struct ath_hal in ah_osdep.h.  Implement
OS_GETUPTIME (the implementation is quite primitive, as it's only used
once for some obscure condition in 5212 chips).  Implement HALDEBUG()
and ath_hal_ether_sprintf().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4019 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-07 20:40:54 +00:00
proski
5702465321 Merge madwifi-free branch into the trunk
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3978 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-07 01:26:53 +00:00
proski
e74121f314 Add printk priorities to ah_os.c
Reference: madwifi-dfs@3264


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3780 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 02:48:19 +00:00
mentor
03dbd3568d Make module loading and unloading much less noisy. I don't believe any of this ifnromation is particularly useful for dbeugging, and definitely not for operational use.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3742 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-21 14:40:43 +00:00
kelmo
0a1bf29ca4 Fix format string bugs.
Closes: #1999


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-16 08:50:30 +00:00
mentor
76cade5dac Make pointer declarations and casting consistent. Some other formatting changes are made in passing
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3710 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 20:32:29 +00:00
proski
78731b81b8 Compile ath_hal_reg_write() and ath_hal_reg_read() only if needed
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3664 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 12:39:24 +00:00
mentor
6abd8285aa Whitespace for control statements
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3627 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-14 19:11:57 +00:00
mentor
658d470ad5 Revert now unnecessary compile fix for INITIAL_JIFFIES - r3598. The other code using this define looked like it should not be using it too.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3601 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 01:02:51 +00:00
mentor
63436cbc14 Kill dead uptime calculating code; not needed in a driver...
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3600 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-05 01:00:11 +00:00
proski
370c06ca3a Define INITIAL_JIFFIES if not already defined
Normally, compatibility issues should be addressed in compat.h, but
INITIAL_JIFFIES is not something that should be widely used.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3598 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-04 23:11:21 +00:00
mentor
ef6d84125b Convert as many things as possible to use kzalloc
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3573 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-24 14:10:42 +00:00
mtaylor
8ec7d856b1 Add casts to force register addresses to stay 32-bits on 64-bit architectures.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3545 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-15 07:44:58 +00:00
mtaylor
3f2f68b9c5 Fix register name checks, name is a local array and will never be null, even when the contents are empty string / NULL.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3538 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-11 04:24:53 +00:00
mtaylor
a78d83bb0d Debugging function cleanup:
1) Move all debug preprocessor flags out into make files
2) Add support for remaining preprocessor flags to be set by ENV variables
3) Add support for HAL tracing to include device name



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3481 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-09 19:55:49 +00:00
mtaylor
c2bce77197 Merge madwifi-dfs branch to trunk.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3268 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-26 20:48:11 +00:00
proski
120d309bc3 Fix sysctl support in Linux 2.6.24
Linux 2.6.24 introduces a sysctl checker that disallows using arbitrary
ctl_name values for sysctl entries.  The entries with non-standard
values should set ctl_name to CTL_UNNUMBERED.

On the other hand, using consistent non-zero ctl_name values is required
for older kernels (tested on Linux 2.4.33.3 from Slackware 11).

Thus the solution is to use CTL_UNNUMBERED on Linux 2.6.24+ and the
original values in the older kernels.  Move CTL_AUTO and DEV_ATH to
include/compat.h and define them correspondingly.

When copying sysctl entries, check procname for being non-zero, since
ctl_name is zero (CTL_UNNUMBERED) on Linux 2.6.24 and newer.

For the same reason, don't use ctl_name to distinguish entries in
ath_sysctl_template, use extra2 instead.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2814 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-10-31 05:39:41 +00:00
mrenzmann
2c0d8db912 Restructuring the repository layout in response to ath5k.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2721 0192ed92-7a03-0410-a25b-9323aeb14dbd
2007-10-04 13:07:51 +00:00