Commit Graph

693 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
Pavel Roskin 0f5e6bf980 Check the return value of system() 2013-11-27 15:14:22 -05:00
Pavel Roskin edd3220953 Ignore Module.symvers not only in the top-level directory 2013-11-13 18:21:30 -05:00
Pavel Roskin c98d9cf64c Recognize IW_AUTH_CIPHER_GROUP_MGMT and IW_AUTH_MFP
Don't complain if the userspace just wants to disable them.
2013-11-13 17:45:24 -05:00
Pavel Roskin 56076e4f26 Extend support for AHB to Linux 2.6.15 and newer
Linux 2.6.15 introduces platform_driver_register() that if_ath_ahb.c is
using.
2013-11-13 16:52:29 -05:00
Pavel Roskin e731eb9ab4 Include linux/delay.h, it's necessary for compilation on older kernels 2013-11-13 16:52:09 -05:00
Pavel Roskin 75ac97a925 Remove struct ath_ahb_softc, it's pointless for supported kernels
aps_pmstate is not used, so struct ath_ahb_softc is equivalent to struct
ath_softc.
2013-11-13 14:12:00 -05:00
Pavel Roskin 89ca171c1e Remove struct ath_pci_softc, it's pointless for supported kernels
aps_pmstate is not used, so struct ath_pci_softc is equivalent to struct
ath_softc.
2013-11-13 14:02:49 -05:00
Pavel Roskin 2f64d27835 Add .gitignore and tools/.gitignore 2013-11-12 18:18:47 -05:00
Pavel Roskin 3e8afe45d0 Make skb_total_counter and skb_refs_counter static
Both have exported accessor functions, so they should not be accessible
directly.
2013-11-12 17:01:27 -05:00
Pavel Roskin 27463c4ea4 Fix compilation with IEEE80211_DEBUG_REFCNT set and no VLAN support 2013-11-12 17:00:36 -05:00
Pavel Roskin 3f778edc5f Fix off-by-one error in size parsing in proc_ratesample_open()
sizeof("string") includes the trailing 0, strlen("string") doesn't.
2013-11-12 15:55:46 -05:00
Pavel Roskin e6cb21364b Remove unneeded PCI compatibility code 2013-11-12 14:48:25 -05:00
Pavel Roskin eb53410664 Don't show kernel pointers to procfs, just show if ni is NULL 2013-11-12 14:32:14 -05:00
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