Commit Graph

698 Commits

Author SHA1 Message Date
Pavel Roskin
a7531fd223 sample: eliminate clever code to determine which proc file is accessed
Linux 3.19 would break sample.c and it's not the first breakage in
sample.c. File operations is a perpetual portability issue. Write
separate structures and .open functions for every proc file.
2014-12-24 13:03:09 -05:00
Pavel Roskin
28fc586124 Give path to System.map to depmod, don't set KMODPATH
The "-e" option requires -E of -F. depmod doesn't use KMODPATH.
2014-09-16 21:52:44 -04:00
Pavel Roskin
e8a57713f1 Run depmod on uninstall
Make depmod a separate target. Fix spelling of uninstall-modules.
2014-09-16 21:43:48 -04:00
Pavel Roskin
c5246021b7 Use Linux 3.17 4-argument alloc_netdev(), provide compatibility code 2014-08-04 15:16:13 -04:00
Pavel Roskin
e1a1d8f94f Port elements of the build system from ndiswrapper
This eliminates compilation to find the kernel version. The new Makefile
provides more sanity checks and more verbose reporting.
2014-06-17 12:04:32 -04:00
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