Commit Graph

679 Commits

Author SHA1 Message Date
Pavel Roskin c95ed6fcf8 Require WIRELESS_EXT >= 18 2013-11-12 13:05:20 -05:00
Pavel Roskin 8c73cc55b1 Remove support for Linux kernels older than 2.6.13
Linux 2.6.13 introduced Wireless Extension 18 with WPA support.  It was
released in August 2005.  People making changes to MadWifi should not be
required to be software archeologistists to test their changes.
2013-11-12 11:46:06 -05:00
Pavel Roskin 4f4d17ea6e Fix compatibility with procfs API changes in Linux 3.10 2013-11-11 11:57:32 -05:00
Pavel Roskin f83c3d758e Use netdev_notifier_info_to_dev(), needed for Linux 3.11+
Not using netdev_notifier_info_to_dev() gives no compile warnings but
crashes the kernel, so this patch is intentionally applied before Linux
3.10 procfs support is enabled to avoid a revision that compiles and
crashes on new kernels.
2013-11-08 17:01:34 -05:00
Pavel Roskin 0196108e9c Remove all references to svnversion, MadWifi svn is gone
git revisions are of little use.
2013-11-08 11:06:54 -05:00
Pavel Roskin 8b13bec8b1 Remove all references to ath_info
It's a dangerous program that should be distributed separately from
MadWifi, with its own README full of serious warnings.

ath_info is not even using MadWifi, it writes to the hardware registers
directly.  ath_info is definitely not needed to use MadWifi.  It could
help with the development, but so could Wireshark and many other
programs that are not part of MadWifi.
2013-11-08 11:00:41 -05:00
Pavel Roskin 2340147dee Remove __devinitdata, it's obsolete and breaks compilation on Linux 3.8+ 2013-11-08 11:00:41 -05:00
proski f72edc7741 Use "%s" in err() calls to fix a warning on Ubuntu 10.04
err() would be confused if the interface name has formatting characters.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4179 0192ed92-7a03-0410-a25b-9323aeb14dbd
2012-05-01 19:52:26 +00:00
proski 35db352fc7 Don't reference vlan_group without IEEE80211_VLAN_TAG_USED set
struct vlan_group will be removed in Linux 3.3.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4177 0192ed92-7a03-0410-a25b-9323aeb14dbd
2012-01-30 19:55:03 +00:00
proski 50d74a9a21 Use ndo_set_rx_mode instead of ndo_set_multicast_list on Linux 3.2+
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4175 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-11-22 17:22:34 +00:00
proski 311e88720d Remove -Werror from WARNINGS
It's impossible to eliminate all warnings with all combinations of
kernels and compilers.  Users are punished for using untested
combinations that should be OK.  Other projects don't use -Werror and
nothing bad happens.

Future compilers would surely introduce new warnings.  MadWifi doesn't
need to break because of that.

There is no way to make -Werror apply to MadWifi code but not to the
kernel headers.  Linux kernel doesn't use -Werror, why should MadWifi?

Using -Werror creates a false sense of security.  It's easy to assume
that the code is warning-free at least on the developers' systems.
However, broken code was committed in the past that would not compile at
all.  Code quality means more that absence of warnings.  It cannot be
ensured by -Werror.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4172 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-10-07 21:42:25 +00:00
proski afdc1e0da1 Eliminate ATH_GET_NETDEV_DEV, it breaks on some CentOS kernels
Instead, use sc->sc_bdev to find the physical device.  sc->sc_bdev is
NULL on AHB and we don't use SET_NETDEV_DEV on AHB anyway, so do it on
PCI only.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4170 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-10-07 21:30:59 +00:00
proski bd86fad851 Don't redefine netdev_for_each_mc_addr()
It's already defined in CentOS 2.6.18-238.19.1.el5 kernel.  Use
parentheses around dev to be safer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4168 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-10-07 21:14:47 +00:00
proski 5890429464 Fix typos found by codespell
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4166 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-26 15:31:01 +00:00
proski 2fc801acdb Fix compilation with IEEE80211_DEBUG_REFCNT=1
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4164 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-15 18:59:53 +00:00
proski 2774fa543e Fix compilation on Linux 3.1 broken by VLAN API changes
Don't define IEEE80211_VLAN_TAG_USED on Linux 3.1 and newer.  Don't use
vlan_hwaccel_rx() if IEEE80211_VLAN_TAG_USED is not 1.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4163 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-15 18:59:22 +00: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 27d3e317c5 Fix dubious formatting after "if"
Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4160 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 01:30:00 +00:00
proski 43b7f2ddee Fix certain NULL dereference in disabled XR code
Make it even more clear that the code is disabled.  Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4155 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:47:06 +00:00
proski ccf1970ea8 Fix dereferencing NULL in debug messages
Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4154 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:36:39 +00:00
proski 4f8410ce13 Fix pointless use of 0 in vap->iv_debug calculation
Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4153 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:25:04 +00:00
proski c6569661e4 Remove useless casts of kmalloc() and kzalloc()
Found by coccinelle.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4152 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-08-03 00:18:57 +00:00
proski 1c37948b92 Use git-svn options to limit its output to one line
This is more reliable than using head and tail.  It also suppresses this
scary message:

error: git-svn died of signal 13


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4148 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-07-06 16:22:31 +00:00
proski b56cc910bc Comment out options that cannot be supported
XR is not supported by the open HAL.  TX99 cannot be enabled because
requisite files are missing.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4145 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-06-22 20:32:48 +00:00
proski e294cce512 Add support for Linux 3.x and newer
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4143 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-06-01 16:00:18 +00:00
proski 098decda6c Fix protection against multiple inclusion of headers
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4142 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-05-11 15:19:10 +00:00
proski 3c69799880 Move packet_size_bins[] from the header, it doesn't belong there
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4141 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-05-11 15:17:22 +00:00
proski ea28c77afc Fix all instances of unused variables reported by gcc 4.6.0.
Change IEEE80211_NODE_SAVEQ_DEQUEUE to a compound statement returning a
value, which may or may not be ignored by the caller.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4137 0192ed92-7a03-0410-a25b-9323aeb14dbd
2011-05-03 21:56:02 +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 7da3379866 Fix support for Linux 2.6.11, which lacks <linux/sort.h>
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4132 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-06-19 18:27:20 +00:00
proski a09a469936 Fix support for Linux 2.6.0 - 2.6.2, which lack netdev_priv()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4131 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-06-19 18:26:01 +00:00
proski eec6650615 Add support for Linux 2.6.35
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4130 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-06-19 18:24:35 +00:00
proski 234a985259 Remove gratuitous double negation of ath_hal_hasdiversity() result
Reported by N.Leiten <nickleiten@gmail.com>


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4128 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-24 14:07:47 +00:00
proski 9b4885513b Move packet numbers and key indices next to the tests
Write packet numbers in hex notation.  This way, it's easier to spot
them in the encrypted packets.

Also, use the ULL suffix, not LL for packet numbers, which are unsigned
48-bit integers.  It shouldn't matter, but it's more descriptive.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4127 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-23 23:10:08 +00:00
proski 0382a636d6 Fix typos
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4125 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-23 22:49:56 +00:00
proski 5e195288a9 Fix numerous "FAILED verification" messages on AR5210 and AR5211
Only call ath_hal_verify_default_intmit() if interference mitigation is
supported by the chipset.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4124 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-23 04:26:37 +00:00
proski 6b7b69cb37 Make crypto test suite more robust
Allocate all memory at once to simplify error handling.  Allocate a
network device and use it both for the master and the VAP.  Set a
descriptive name on the network device, as it's used in error and debug
messages.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4122 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-12 23:59:02 +00:00
proski 6f08b9347d Print a prominent message if kernel AES is not available
The kernel AES will only be requested if hardware encryption is not
available and if AES is really needed.  At that point, a failure to
allocate the AES cipher would be a real problem, not a minor debug
condition.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4121 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-12 06:40:34 +00:00
proski 41c0303d16 Fix handling of out-of-memory condition in ccmp_attach()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4120 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-03-12 05:40:29 +00:00
proski df2b041849 Use sema_init() instead of init_MUTEX()
init_MUTEX() is missing on kernels with realtime patches.  Besides,
init_MUTEX is a confusing name, since it initializes a semaphore,
whereas newer kernels have real mutexes as well.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4118 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-31 07:01:47 +00:00
proski 84cea0ae79 Identify subversion snapshots as being from trunk
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4116 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-25 22:53:37 +00:00
proski 1e781a7c13 Disable PCI based AR9280 (168c:0029), it doesn't work yet
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4111 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-18 14:18:05 +00:00
proski b4a185df81 Include semaphore.h for mutexes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4109 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-18 13:46:57 +00:00
proski b801960404 Typo fix
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4108 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-14 22:34:09 +00:00
proski a252469c71 Add support for AR9280 from FreeBSD HAL
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4107 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-13 06:50:17 +00:00
proski 00b7ee3649 Port ah_writeIni and ar5416SpurMitigate from FreeBSD HAL
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4106 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-13 06:48:05 +00:00
proski da9812696d Use LDOPTS instead of LDFLAGS to avoid an ld warning on Linux 2.4
The warning is
ld: warning: cannot find entry symbol stext; defaulting to 0000000000000000

LDFLAGS may have been a better choice when HAL was binary, but now
LDOPTS is the right thing for consistency with the makefiles in other
directories.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4104 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-11 14:52:01 +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 52147817c3 Use generated/utsrelease.h for Linux 2.6.33+
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4101 0192ed92-7a03-0410-a25b-9323aeb14dbd
2010-01-09 08:27:17 +00:00
proski 0d741ab467 Adjust for procfs changes in Linux 2.6.32
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4099 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-09-28 23:06:53 +00:00