madwifi/.git
4 years agosample: eliminate clever code to determine which proc file is accessed master origin/HEAD origin/master
Pavel Roskin [Wed, 24 Dec 2014 18:03:09 +0000 (13:03 -0500)]
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.

4 years agoGive path to System.map to depmod, don't set KMODPATH
Pavel Roskin [Wed, 17 Sep 2014 01:52:44 +0000 (21:52 -0400)]
Give path to System.map to depmod, don't set KMODPATH

The "-e" option requires -E of -F. depmod doesn't use KMODPATH.

4 years agoRun depmod on uninstall
Pavel Roskin [Wed, 17 Sep 2014 01:43:48 +0000 (21:43 -0400)]
Run depmod on uninstall

Make depmod a separate target. Fix spelling of uninstall-modules.

4 years agoUse Linux 3.17 4-argument alloc_netdev(), provide compatibility code
Pavel Roskin [Mon, 4 Aug 2014 19:16:13 +0000 (15:16 -0400)]
Use Linux 3.17 4-argument alloc_netdev(), provide compatibility code

5 years agoPort elements of the build system from ndiswrapper
Pavel Roskin [Tue, 4 Feb 2014 22:34:05 +0000 (17:34 -0500)]
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.

5 years agoDon't rely on typedef for struct ctl_table, it's going away
Pavel Roskin [Tue, 17 Jun 2014 15:28:06 +0000 (11:28 -0400)]
Don't rely on typedef for struct ctl_table, it's going away

5 years agoCheck the return value of system()
Pavel Roskin [Wed, 27 Nov 2013 20:14:22 +0000 (15:14 -0500)]
Check the return value of system()

5 years agoIgnore Module.symvers not only in the top-level directory
Pavel Roskin [Wed, 13 Nov 2013 23:21:30 +0000 (18:21 -0500)]
Ignore Module.symvers not only in the top-level directory

5 years agoRecognize IW_AUTH_CIPHER_GROUP_MGMT and IW_AUTH_MFP
Pavel Roskin [Wed, 13 Nov 2013 22:45:24 +0000 (17:45 -0500)]
Recognize IW_AUTH_CIPHER_GROUP_MGMT and IW_AUTH_MFP

Don't complain if the userspace just wants to disable them.

5 years agoExtend support for AHB to Linux 2.6.15 and newer
Pavel Roskin [Wed, 13 Nov 2013 21:38:57 +0000 (16:38 -0500)]
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.

5 years agoInclude linux/delay.h, it's necessary for compilation on older kernels
Pavel Roskin [Wed, 13 Nov 2013 21:52:09 +0000 (16:52 -0500)]
Include linux/delay.h, it's necessary for compilation on older kernels

5 years agoRemove struct ath_ahb_softc, it's pointless for supported kernels
Pavel Roskin [Wed, 13 Nov 2013 19:08:08 +0000 (14:08 -0500)]
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.

5 years agoRemove struct ath_pci_softc, it's pointless for supported kernels
Pavel Roskin [Wed, 13 Nov 2013 19:02:49 +0000 (14:02 -0500)]
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.

5 years agoAdd .gitignore and tools/.gitignore
Pavel Roskin [Tue, 12 Nov 2013 23:18:47 +0000 (18:18 -0500)]
Add .gitignore and tools/.gitignore

5 years agoMake skb_total_counter and skb_refs_counter static
Pavel Roskin [Tue, 12 Nov 2013 21:53:27 +0000 (16:53 -0500)]
Make skb_total_counter and skb_refs_counter static

Both have exported accessor functions, so they should not be accessible
directly.

5 years agoFix compilation with IEEE80211_DEBUG_REFCNT set and no VLAN support
Pavel Roskin [Tue, 12 Nov 2013 21:57:07 +0000 (16:57 -0500)]
Fix compilation with IEEE80211_DEBUG_REFCNT set and no VLAN support

5 years agoFix off-by-one error in size parsing in proc_ratesample_open()
Pavel Roskin [Tue, 12 Nov 2013 20:55:46 +0000 (15:55 -0500)]
Fix off-by-one error in size parsing in proc_ratesample_open()

sizeof("string") includes the trailing 0, strlen("string") doesn't.

5 years agoRemove unneeded PCI compatibility code
Pavel Roskin [Tue, 12 Nov 2013 19:48:25 +0000 (14:48 -0500)]
Remove unneeded PCI compatibility code

5 years agoDon't show kernel pointers to procfs, just show if ni is NULL
Pavel Roskin [Tue, 12 Nov 2013 19:32:14 +0000 (14:32 -0500)]
Don't show kernel pointers to procfs, just show if ni is NULL

5 years agoRequire WIRELESS_EXT >= 18
Pavel Roskin [Tue, 12 Nov 2013 18:05:20 +0000 (13:05 -0500)]
Require WIRELESS_EXT >= 18

5 years agoRemove support for Linux kernels older than 2.6.13
Pavel Roskin [Tue, 12 Nov 2013 16:46:06 +0000 (11:46 -0500)]
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.

5 years agoFix compatibility with procfs API changes in Linux 3.10
Pavel Roskin [Mon, 11 Nov 2013 16:57:32 +0000 (11:57 -0500)]
Fix compatibility with procfs API changes in Linux 3.10

5 years agoUse netdev_notifier_info_to_dev(), needed for Linux 3.11+
Pavel Roskin [Fri, 8 Nov 2013 21:42:54 +0000 (16:42 -0500)]
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.

5 years agoRemove all references to svnversion, MadWifi svn is gone
Pavel Roskin [Fri, 8 Nov 2013 16:06:54 +0000 (11:06 -0500)]
Remove all references to svnversion, MadWifi svn is gone

git revisions are of little use.

5 years agoRemove all references to ath_info
Pavel Roskin [Fri, 8 Nov 2013 15:39:40 +0000 (10:39 -0500)]
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.

5 years agoRemove __devinitdata, it's obsolete and breaks compilation on Linux 3.8+
Pavel Roskin [Fri, 8 Nov 2013 15:59:32 +0000 (10:59 -0500)]
Remove __devinitdata, it's obsolete and breaks compilation on Linux 3.8+

7 years agoUse "%s" in err() calls to fix a warning on Ubuntu 10.04
proski [Tue, 1 May 2012 19:52:26 +0000 (19:52 +0000)]
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

7 years agoDon't reference vlan_group without IEEE80211_VLAN_TAG_USED set
proski [Mon, 30 Jan 2012 19:55:03 +0000 (19:55 +0000)]
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

7 years agoUse ndo_set_rx_mode instead of ndo_set_multicast_list on Linux 3.2+
proski [Tue, 22 Nov 2011 17:22:34 +0000 (17:22 +0000)]
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

7 years agoRemove -Werror from WARNINGS
proski [Fri, 7 Oct 2011 21:42:25 +0000 (21:42 +0000)]
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

7 years agoEliminate ATH_GET_NETDEV_DEV, it breaks on some CentOS kernels
proski [Fri, 7 Oct 2011 21:30:59 +0000 (21:30 +0000)]
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

7 years agoDon't redefine netdev_for_each_mc_addr()
proski [Fri, 7 Oct 2011 21:14:47 +0000 (21:14 +0000)]
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

7 years agoFix typos found by codespell
proski [Fri, 26 Aug 2011 15:31:01 +0000 (15:31 +0000)]
Fix typos found by codespell

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4166 0192ed92-7a03-0410-a25b-9323aeb14dbd

7 years agoFix compilation with IEEE80211_DEBUG_REFCNT=1
proski [Mon, 15 Aug 2011 18:59:53 +0000 (18:59 +0000)]
Fix compilation with IEEE80211_DEBUG_REFCNT=1

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4164 0192ed92-7a03-0410-a25b-9323aeb14dbd

7 years agoFix compilation on Linux 3.1 broken by VLAN API changes
proski [Mon, 15 Aug 2011 18:59:22 +0000 (18:59 +0000)]
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

7 years agoDon't use "{ 0 }" to initialize structures, use "{ }"
proski [Wed, 3 Aug 2011 05:43:55 +0000 (05:43 +0000)]
Don't use "{ 0 }" to initialize structures, use "{ }"

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4161 0192ed92-7a03-0410-a25b-9323aeb14dbd

7 years agoFix dubious formatting after "if"
proski [Wed, 3 Aug 2011 01:30:00 +0000 (01:30 +0000)]
Fix dubious formatting after "if"

Found by coccinelle.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4160 0192ed92-7a03-0410-a25b-9323aeb14dbd

7 years agoFix certain NULL dereference in disabled XR code
proski [Wed, 3 Aug 2011 00:47:06 +0000 (00:47 +0000)]
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

7 years agoFix dereferencing NULL in debug messages
proski [Wed, 3 Aug 2011 00:36:39 +0000 (00:36 +0000)]
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

7 years agoFix pointless use of 0 in vap->iv_debug calculation
proski [Wed, 3 Aug 2011 00:25:04 +0000 (00:25 +0000)]
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

7 years agoRemove useless casts of kmalloc() and kzalloc()
proski [Wed, 3 Aug 2011 00:18:57 +0000 (00:18 +0000)]
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

8 years agoUse git-svn options to limit its output to one line
proski [Wed, 6 Jul 2011 16:22:31 +0000 (16:22 +0000)]
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

8 years agoComment out options that cannot be supported
proski [Wed, 22 Jun 2011 20:32:48 +0000 (20:32 +0000)]
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

8 years agoAdd support for Linux 3.x and newer
proski [Wed, 1 Jun 2011 16:00:18 +0000 (16:00 +0000)]
Add support for Linux 3.x and newer

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4143 0192ed92-7a03-0410-a25b-9323aeb14dbd

8 years agoFix protection against multiple inclusion of headers
proski [Wed, 11 May 2011 15:19:10 +0000 (15:19 +0000)]
Fix protection against multiple inclusion of headers

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4142 0192ed92-7a03-0410-a25b-9323aeb14dbd

8 years agoMove packet_size_bins[] from the header, it doesn't belong there
proski [Wed, 11 May 2011 15:17:22 +0000 (15:17 +0000)]
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

8 years agoFix all instances of unused variables reported by gcc 4.6.0.
proski [Tue, 3 May 2011 21:56:02 +0000 (21:56 +0000)]
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

8 years agoAdd support for the latest kernels that don't define AUTOCONF_INCLUDED
proski [Wed, 2 Feb 2011 21:10:53 +0000 (21:10 +0000)]
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

9 years agoFix support for Linux 2.6.11, which lacks <linux/sort.h>
proski [Sat, 19 Jun 2010 18:27:20 +0000 (18:27 +0000)]
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

9 years agoFix support for Linux 2.6.0 - 2.6.2, which lack netdev_priv()
proski [Sat, 19 Jun 2010 18:26:01 +0000 (18:26 +0000)]
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

9 years agoAdd support for Linux 2.6.35
proski [Sat, 19 Jun 2010 18:24:35 +0000 (18:24 +0000)]
Add support for Linux 2.6.35

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4130 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoRemove gratuitous double negation of ath_hal_hasdiversity() result
proski [Wed, 24 Mar 2010 14:07:47 +0000 (14:07 +0000)]
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

9 years agoMove packet numbers and key indices next to the tests
proski [Tue, 23 Mar 2010 23:10:08 +0000 (23:10 +0000)]
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

9 years agoFix typos
proski [Tue, 23 Mar 2010 22:49:56 +0000 (22:49 +0000)]
Fix typos

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4125 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoFix numerous "FAILED verification" messages on AR5210 and AR5211
proski [Tue, 23 Mar 2010 04:26:37 +0000 (04:26 +0000)]
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

9 years agoMake crypto test suite more robust
proski [Fri, 12 Mar 2010 23:59:02 +0000 (23:59 +0000)]
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

9 years agoPrint a prominent message if kernel AES is not available
proski [Fri, 12 Mar 2010 06:40:34 +0000 (06:40 +0000)]
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

9 years agoFix handling of out-of-memory condition in ccmp_attach()
proski [Fri, 12 Mar 2010 05:40:29 +0000 (05:40 +0000)]
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

9 years agoUse sema_init() instead of init_MUTEX()
proski [Sun, 31 Jan 2010 07:01:47 +0000 (07:01 +0000)]
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

9 years agoIdentify subversion snapshots as being from trunk
proski [Mon, 25 Jan 2010 22:53:37 +0000 (22:53 +0000)]
Identify subversion snapshots as being from trunk

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4116 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoDisable PCI based AR9280 (168c:0029), it doesn't work yet
proski [Mon, 18 Jan 2010 14:18:05 +0000 (14:18 +0000)]
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

9 years agoInclude semaphore.h for mutexes
proski [Mon, 18 Jan 2010 13:46:57 +0000 (13:46 +0000)]
Include semaphore.h for mutexes

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4109 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoTypo fix
proski [Thu, 14 Jan 2010 22:34:09 +0000 (22:34 +0000)]
Typo fix

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4108 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoAdd support for AR9280 from FreeBSD HAL
proski [Wed, 13 Jan 2010 06:50:17 +0000 (06:50 +0000)]
Add support for AR9280 from FreeBSD HAL

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4107 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoPort ah_writeIni and ar5416SpurMitigate from FreeBSD HAL
proski [Wed, 13 Jan 2010 06:48:05 +0000 (06:48 +0000)]
Port ah_writeIni and ar5416SpurMitigate from FreeBSD HAL

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4106 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoUse LDOPTS instead of LDFLAGS to avoid an ld warning on Linux 2.4
proski [Mon, 11 Jan 2010 14:52:01 +0000 (14:52 +0000)]
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

9 years agoDon't set ctl_name in Linux 2.6.33+, it was removed
proski [Sat, 9 Jan 2010 08:34:37 +0000 (08:34 +0000)]
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

9 years agoUse generated/utsrelease.h for Linux 2.6.33+
proski [Sat, 9 Jan 2010 08:27:17 +0000 (08:27 +0000)]
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

9 years agoAdjust for procfs changes in Linux 2.6.32
proski [Mon, 28 Sep 2009 23:06:53 +0000 (23:06 +0000)]
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

9 years agoFix contention window calculation in sample and minstrel code
proski [Sat, 19 Sep 2009 04:03:53 +0000 (04:03 +0000)]
Fix contention window calculation in sample and minstrel code

The contention window is supposed to be a power of two minus one, i.e.
15, 31, 63, 127...  Due to a wrong formula, the actual sequence was 15,
32, 66, 134...

Bug reported by Dan Halperin <dhalperi@cs.washington.edu>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4097 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoRewrite handling of the fixed rates
proski [Thu, 3 Sep 2009 21:08:13 +0000 (21:08 +0000)]
Rewrite handling of the fixed rates

Make srate signed, or checks for it being less than 0 don't work.
Consistently use IEEE80211_FIXED_RATE_NONE.  Fix misleading comments.

Survive the case when the fixed rate is not in the rate table.  It can
happen e.g. a CCK rate is used with an 802.11a channel, or in the STA
mode when an OFDM rate is used with 802.11b.  The driver should catch
it, but it doesn't.  In any case, it's not a reason for an oops.

Remove the debugging message if everything is fine.  In case of an
error, specify the VAP name.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4095 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoFix sparse warnings
proski [Wed, 2 Sep 2009 20:01:52 +0000 (20:01 +0000)]
Fix sparse warnings

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4094 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoSupport compilation with procfs disabled
proski [Mon, 24 Aug 2009 22:04:45 +0000 (22:04 +0000)]
Support compilation with procfs disabled

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4088 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoRemove unused sysctl code
proski [Fri, 21 Aug 2009 19:33:14 +0000 (19:33 +0000)]
Remove unused sysctl code

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4087 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoAllow compilation for 2.4 kernels that backport the workqueue API
proski [Thu, 13 Aug 2009 17:00:26 +0000 (17:00 +0000)]
Allow compilation for 2.4 kernels that backport the workqueue API

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4086 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoar5416: initialize AR_CFG on little-endian systems
proski [Tue, 11 Aug 2009 22:10:26 +0000 (22:10 +0000)]
ar5416: initialize AR_CFG on little-endian systems

Reference: FreeBSD r195426

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4084 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoRecognize and report AR9160 and AR9280
proski [Tue, 11 Aug 2009 20:17:47 +0000 (20:17 +0000)]
Recognize and report AR9160 and AR9280

Change ath5k_chip_name() to support IDs exceeding 0xff.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4083 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoFix mismatching prototypes in HAL
proski [Wed, 5 Aug 2009 17:48:41 +0000 (17:48 +0000)]
Fix mismatching prototypes in HAL

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4082 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoRewrite ieee80211_input_all()
proski [Thu, 30 Jul 2009 21:06:29 +0000 (21:06 +0000)]
Rewrite ieee80211_input_all()

The logic to prevent calling ieee80211_input() on inactive VAPs was
flawed.  The first VAP was exempt from the check for no reason.

Rewrite to avoid having nested loops.  Give the original skb to the
first VAP, not to the last one, as the first VAP is easier to find in a
loop.  Process the first VAP after others.

Only collect the result from the first VAP.  ieee80211_input() should
return the same value (frame type) for all VAPs except if we call it
incorrectly, e.g. on an inactive VAP.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4081 0192ed92-7a03-0410-a25b-9323aeb14dbd

9 years agoDon't unref node in ieee80211_input() if it wasn't referenced
proski [Thu, 30 Jul 2009 17:17:02 +0000 (17:17 +0000)]
Don't unref node in ieee80211_input() if it wasn't referenced

Thanks to:
Daniel Wu <danwu@ucdavis.edu>
"Ilya A. Volynets-Evenbakh" <ilya@total-knowledge.com>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4080 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoRewrote IBSS merge (part that updates the IBSS parameters using content from
benoit [Sat, 11 Jul 2009 17:37:55 +0000 (17:37 +0000)]
Rewrote IBSS merge (part that updates the IBSS parameters using content from
received beacons). Merge from branches/madwifi-dfs@3662

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4079 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoAvoid kernel panic and returns 802.11b.
benoit [Sat, 11 Jul 2009 17:33:54 +0000 (17:33 +0000)]
Avoid kernel panic and returns 802.11b.
Merge from branches/madwifi-dfs@3649

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4078 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoUpdated the radar pulse analysis algorithm
benoit [Sat, 11 Jul 2009 17:25:26 +0000 (17:25 +0000)]
Updated the radar pulse analysis algorithm
Merge from branches/madwifi-dfs@4049

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4077 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMerge madwifi-dfs back to trunk: this change is only about DFS, excluding
benoit [Sat, 11 Jul 2009 17:20:58 +0000 (17:20 +0000)]
Merge madwifi-dfs back to trunk: this change is only about DFS, excluding
DFS pulse analysis. Untested.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4076 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoRemoved sc_dfs_cac. Replaced it by checking the timer sc_dfs_cac_timer directly
benoit [Sat, 11 Jul 2009 15:30:58 +0000 (15:30 +0000)]
Removed sc_dfs_cac. Replaced it by checking the timer sc_dfs_cac_timer directly

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4075 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMake use of the IEEE80211_IS_CHAN_RADAR macro
benoit [Sat, 11 Jul 2009 10:15:28 +0000 (10:15 +0000)]
Make use of the IEEE80211_IS_CHAN_RADAR macro

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4074 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoFix needed in order to compile without Fast Frame feature enabled.
benoit [Sun, 5 Jul 2009 07:16:27 +0000 (07:16 +0000)]
Fix needed in order to compile without Fast Frame feature enabled.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4071 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoRemove IEEE80211_CHANSWITCHANN_BYTES, it's unused
proski [Fri, 26 Jun 2009 03:39:25 +0000 (03:39 +0000)]
Remove IEEE80211_CHANSWITCHANN_BYTES, it's unused

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4066 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoAllow compilation with BUS=AHB in 64-bit systems
proski [Fri, 26 Jun 2009 02:06:16 +0000 (02:06 +0000)]
Allow compilation with BUS=AHB in 64-bit systems

Don't enable AHB support in HAL on 64-bit systems, it's not 64-bit clean
and is not meant to be.  Provide replacement definition for KSEG1ADDR
when it's not defined (that includes 64-bit mips).  Remove other
replacement definitions, they are not needed anymore.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4064 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoFix compiler warning on some big-endian systems
proski [Fri, 26 Jun 2009 01:31:05 +0000 (01:31 +0000)]
Fix compiler warning on some big-endian systems

Don't assume that both iowrite32() and iowrite32be() return values in
the _OS_REG_WRITE definition.  _OS_REG_WRITE discards the value anyway.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4061 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoCompile fix with VLAN support on recent kernels
proski [Thu, 25 Jun 2009 22:22:58 +0000 (22:22 +0000)]
Compile fix with VLAN support on recent kernels

VLAN operations should be in net_device_ops.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4059 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoUse decimal notation in a debug message
proski [Thu, 25 Jun 2009 01:13:24 +0000 (01:13 +0000)]
Use decimal notation in a debug message

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4057 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMerge formatting change from DFS branch
proski [Thu, 25 Jun 2009 01:05:28 +0000 (01:05 +0000)]
Merge formatting change from DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4055 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMerge time conversion macros, users of IEEE80211_TU_TO_TSF from madwifi-dfs
proski [Thu, 25 Jun 2009 01:03:32 +0000 (01:03 +0000)]
Merge time conversion macros, users of IEEE80211_TU_TO_TSF from madwifi-dfs

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4054 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoFix trailing whitespace
proski [Thu, 25 Jun 2009 00:49:06 +0000 (00:49 +0000)]
Fix trailing whitespace

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4051 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMerge r3372 from madwifi-dfs
proski [Thu, 25 Jun 2009 00:47:42 +0000 (00:47 +0000)]
Merge r3372 from madwifi-dfs

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4050 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoUse IEEE80211_IS_CHAN_PASSIVE - merge from DFS branch
proski [Thu, 25 Jun 2009 00:29:33 +0000 (00:29 +0000)]
Use IEEE80211_IS_CHAN_PASSIVE - merge from DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4048 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoMerge formatting change from DFS branch
proski [Thu, 25 Jun 2009 00:24:34 +0000 (00:24 +0000)]
Merge formatting change from DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4047 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoFix missing space before "else"
proski [Thu, 25 Jun 2009 00:21:59 +0000 (00:21 +0000)]
Fix missing space before "else"

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4046 0192ed92-7a03-0410-a25b-9323aeb14dbd

10 years agoRemove trailing whitespace in the code different from DFS branch
proski [Thu, 25 Jun 2009 00:01:52 +0000 (00:01 +0000)]
Remove trailing whitespace in the code different from DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4042 0192ed92-7a03-0410-a25b-9323aeb14dbd