madwifi/net80211
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
..
_ieee80211.h If a rates information element is received that is larger than we will accept, simply take the first maximum size elements and continue, rather than BUG'ing out. 2007-10-11 15:40:49 +00:00
ieee80211_acl.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_beacon.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_crypto_ccmp.c Fix for a false replay detection when seq was initialized to zero and first packet is also seq zero. 2007-10-28 20:40:04 +00:00
ieee80211_crypto_none.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_crypto_tkip.c Fix for a false replay detection when seq was initialized to zero and first packet is also seq zero. 2007-10-28 20:40:04 +00:00
ieee80211_crypto_wep.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_crypto.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_crypto.h Our ABI for hostapd currently uses an old structure that only has one byte for the key index. This means that the 'magic value' of -1 (255) for NONE is passed rather than the larger type we actually use internally. To make comparisons work properly, I'm putting the magic value back at (uint8_t)-1 again so that a key index of 'none' with a MAC address that is passed into madwifi is interpreted correctly and the keys for that station are properly removed, rather than errors returned. 2007-10-29 22:33:03 +00:00
ieee80211_debug.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_input.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_ioctl.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_linux.c Fix sysctl support in Linux 2.6.24 2007-10-31 05:39:41 +00:00
ieee80211_linux.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_monitor.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_monitor.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_node.c Move acquisition of node reference outside macro to ensure node is referenced only once. 2007-10-27 17:58:32 +00:00
ieee80211_node.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_output.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_power.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_power.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_proto.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_proto.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_radiotap.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_rate.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_rate.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_scan_ap.c If a rates information element is received that is larger than we will accept, simply take the first maximum size elements and continue, rather than BUG'ing out. 2007-10-11 15:40:49 +00:00
ieee80211_scan_sta.c If a rates information element is received that is larger than we will accept, simply take the first maximum size elements and continue, rather than BUG'ing out. 2007-10-11 15:40:49 +00:00
ieee80211_scan.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_scan.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_var.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211_wireless.c Added support for AP mode scan results to be updated and returned to 2007-10-05 05:52:42 +00:00
ieee80211_xauth.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
ieee80211.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_athproto.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_ethersubr.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_llc.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_media.c Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +00:00
if_media.h Restructuring the repository layout in response to ath5k. 2007-10-04 13:07:51 +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