madwifi/ath
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
..
if_ath_ahb.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath_ahb.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath_hal_macros.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath_hal_wrappers.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath_hal.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath_pci.c Significantly lower the PCI_LATENCY_TIMER value that we were setting. This is essentially hte total time we are allowed to hold onto the PCI bus, before we see if anyone else wants a go. Higher means better throuhgput at the expense of the latency of other devices, and vice versa. 2007-10-08 12:02:22 +00:00
if_ath_pci.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ath.c Fix sysctl support in Linux 2.6.24 2007-10-31 05:39:41 +00:00
if_athioctl.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_athvar.h Fix compilation for the forthcoming Linux 2.6.24 2007-10-17 03:39:50 +00:00
Makefile Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
Makefile.kernel Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
version.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00