Commit Graph

343 Commits

Author SHA1 Message Date
Pavel Roskin
e6cb21364b Remove unneeded PCI compatibility code 2013-11-12 14:48:25 -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
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
2340147dee Remove __devinitdata, it's obsolete and breaks compilation on Linux 3.8+ 2013-11-08 11:00:41 -05: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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
proski
46b1c0dbe9 Merge formatting change from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4055 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-25 01:05:28 +00:00
proski
489d0d146d 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
2009-06-25 01:03:32 +00:00
proski
fffa8d29b7 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
2009-06-25 00:01:52 +00:00
proski
56641bc9a8 Merge formatting changes from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4039 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:29:12 +00:00
proski
38a75118cd Remove a tx queue dump in ath_tx_tasklet()
It was merged from the DFS branch and subsequently removed from it.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4037 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:17:30 +00:00
proski
ab3bb26503 Strengthen checks for ath_hal_setuptxqueue() return value
Reference: madwifi-dfs@3636


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4036 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 23:09:26 +00:00
proski
e8c1f45369 Reduce stack usage where it exceeds 1024 bytes.
Reference: trunk@4022.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4033 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-06-24 20:38:56 +00:00
proski
1988f5f45e Fix compilation on sparc64 - tv_usec may be int, not long
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4026 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 01:21:48 +00:00
proski
e846fff3ea Fix compilation for mips64
On some 64-bit architectures u_int64_t is not unsigned long long.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4024 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-05-24 01:09:25 +00:00
proski
a71559e552 Rewrite ar_device() using HAL magic numbers
It's more reliable than a table of all device IDs.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4014 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-28 05:33:47 +00:00
proski
c62003532a Remove all reverse engineering support, it's pointless now
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4008 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-22 22:05:57 +00:00
proski
43c86cb332 Convert to net_device_ops for Linux 2.6.29+
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4002 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 04:21:12 +00:00
proski
ac79ec6182 Don't unset dev->stop, it's dangerous to mess with netdev internals
Instead, unset IFF_RUNNUNG on the interface - this suppresses most
functionality of ath_stop().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4001 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 03:47:42 +00:00
proski
8b8d49a612 Fix warning on systems without lockdep
Make lclass as used in ath_hw_reset().


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3997 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-12 19:42:40 +00:00
proski
b424bc2d8b Avoid triggering lockdep checker in ath_hw_reset()
Use spin_lock_irqsave_nested() instead of spin_lock_irqsave().  Use a
separate counter for the locking subclass, so that we don't exceed the
maximal value of 8.  We have 10 queues, but inactive queues don't get a
locking subclass number.

Provide a replacement for spin_lock_irqsave_nested() for kernels older
than 2.6.19.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3995 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-12 05:53:23 +00:00