Commit Graph

656 Commits

Author SHA1 Message Date
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
benoit 8c022a1869 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
2009-07-11 17:25:26 +00:00
benoit 1b019e9b0d 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
2009-07-11 17:20:58 +00:00
benoit 5b3bc6b37c 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
2009-07-11 15:30:58 +00:00
benoit 622cfce180 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
2009-07-11 10:15:28 +00:00
benoit 16a7158cf2 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
2009-07-05 07:16:27 +00:00
proski 20802ea505 Remove IEEE80211_CHANSWITCHANN_BYTES, it's unused
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4066 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-26 03:39:25 +00:00
proski f1873dba18 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
2009-06-26 02:06:16 +00:00
proski e0712b8175 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
2009-06-26 01:31:05 +00:00
proski 530d6494db 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
2009-06-25 22:22:58 +00:00
proski 2d0ca57ecd Use decimal notation in a debug message
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4057 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:13:24 +00:00