Commit Graph

666 Commits

Author SHA1 Message Date
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
proski acbbdd0bb6 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
2009-09-19 04:03:53 +00:00
proski 922778b6ef 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
2009-09-03 21:08:13 +00:00
proski 0c1df90920 Fix sparse warnings
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4094 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-09-02 20:01:52 +00:00
proski bc1810756f Support compilation with procfs disabled
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4088 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-08-24 22:04:45 +00:00
proski c24f0e8221 Remove unused sysctl code
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4087 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-08-21 19:33:14 +00:00
proski 763e90cdda 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
2009-08-13 17:00:26 +00:00
proski ec0aeb9411 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
2009-08-11 22:10:26 +00:00
proski 5ca67e983b 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
2009-08-11 20:17:47 +00:00
proski 4462df298c Fix mismatching prototypes in HAL
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4082 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-08-05 17:48:41 +00:00
proski a5b3087ab0 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
2009-07-30 21:06:29 +00:00
proski 319a241c30 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
2009-07-30 17:17:02 +00:00
benoit a548cc50ad 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
2009-07-11 17:37:55 +00:00
benoit d7126f8393 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
2009-07-11 17:33:54 +00:00