Commit Graph

675 Commits

Author SHA1 Message Date
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
193615c0df Initialize do_ioctl together with other device operations
It's better to keep initialization in one place to simplify conversion
to the new style netdev ops.

Declare ieee80211_ioctl() in ieee80211_linux.h next to other
ieee80211_ioctl* functions defined in ieee80211_wireless.c.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4000 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 03:11:34 +00:00
proski
a9427af7b3 Remove commented out reference to non-existent ieee80211_set_mac_address()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3999 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-15 02:55:25 +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
benoit
407bde2595 Change radar pattern name for automated purpose (merge r3993 from madwifi-dfs)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3994 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-09 15:57:59 +00:00
proski
ec2664e900 Make ath_hal_eepromDetach() safer
Check that AH_PRIVATE(_ah)->ah_eepromDetach is not NULL before calling
it.  This fixes kernel oops in case if the attach function for the chip
fails before EEPROM support initialization and calls the corresponding
detach function.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3991 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 22:25:50 +00:00
proski
519d1b2a2e List only actually used options, enable what can be enabled
In particular, enable AH_SUPPORT_AR5312, which enables large parts of
HAL code for SoC devices.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3990 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 21:44:06 +00:00
proski
c0ff0095ab Remove check for AR2425, since the free HAL always supports it
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3989 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 21:42:36 +00:00
proski
1c2147eb68 Fix compiler errors with -O3
When the compiler tries inlining static functions, it can notice that
some variables may not be initialized in the functions being inlined.
Provide initialization for output variables in all branches of
execution, no matter how anomalous.  Add asserts in some cases.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3988 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 09:15:22 +00:00
proski
c135dc326c Simplify linker set implementation, fix compiler warning with -O3
gcc warns that "array subscript is above array bounds" with -O3 since
pvar is assigned before _i is checked.

Eliminate _i, use a new ppvar variable, which is a pointer to the
reference table.  Terminate reference tables with NULL instead of using
ARRAY_SIZE.  Fix types of reference tables to match those actually used
by the code.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3987 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 08:52:59 +00:00
proski
0cc57971d2 Fix Linux 2.6.30 compatibility
Linux 2.6.30 doesn't define IRQ_NONE as a macro.  Assume irqreturn_t,
IRQ_NONE and IRQ_HANDLED to be present on Linux 2.6.29 and newer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3985 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-08 06:09:58 +00:00
proski
5702465321 Merge madwifi-free branch into the trunk
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3978 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-07 01:26:53 +00:00
proski
25fbd8a072 Remove all references to ALQ from makefiles
ALQ has never been functional in MadWifi, and now it's pointless.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3967 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 21:30:10 +00:00
proski
f011860a49 Remove *.bin on "make clean"
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3965 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 21:21:33 +00:00
proski
6aeff5a687 Remove unused node counting code
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3962 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:44:05 +00:00
proski
fca6a0c2df Make ieee80211_free_node() static
It should not be visible outside ieee80211_node.c


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3960 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 19:34:57 +00:00
proski
77e18d2269 Fix breakage introduced in tqi_burstTime calculation in r3756
Use IEEE80211_TXOP_TO_US for unit conversion.  Found by Derek Smithies.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3954 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-04-01 03:17:48 +00:00
proski
0a63a44b94 Don't call dump_stack() for mere debugging, without major errors
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3941 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-02-04 21:43:58 +00:00
proski
6aafc1bd85 Ignore *.bin files, they are build products
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3937 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-29 06:07:19 +00:00
proski
94e68b9e49 Fix ARCH calculation for PowerPC in Linux 2.6.28 and newer
If $(KERNELPATH)/arch/ppc is missing, ARCH should be "powerpc", not
"ppc".  CONFIG_PPC_MERGE disappeared in Linux 2.6.28.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3935 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-29 05:58:17 +00:00
proski
373a4b7e68 Don't show TOOLPATH on "make info" - it's not used anywhere
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3932 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-26 22:39:46 +00:00
proski
e0b577bb5d Replace __FUNCTION__ with __func__
__FUNCTION__ is an old GNU extension, __func__ is C99.  Use of
__FUNCTION__ is discouraged.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3930 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-23 18:23:19 +00:00
proski
2422ead42a Don't overwrite CFLAGS in Makefile.kernel, use EXTRA_CFLAGS
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3916 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-15 22:47:31 +00:00
proski
3e70e4f8c1 Compile fixes for Linux 2.6.29
Use netdev_priv() for Linux 2.4.27 and newer.  Provide compatibility
wrapper for older kernels.

Imply CONFIG_KMOD for Linux 2.6.27 and newer.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3902 0192ed92-7a03-0410-a25b-9323aeb14dbd
2009-01-14 02:36:53 +00:00
proski
512d58b4aa Remove branch information from distributable files
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3878 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-12-03 16:45:23 +00:00
mrenzmann
1e60166c9a Adjust svn:externals property to use the new domain name.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3873 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-11-04 05:57:59 +00:00
benoit
a729fef8c6 Improved slottime and acktimeout/ctstimeout computations
Needs field testing


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3870 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-11-03 15:15:28 +00:00
br1
b327291039 IBSS ATIM window fixes
due to unlucky timing of beacon timer configuration (which we try to avoid) and
due to unlucky timing of local TSF updates (triggered by the reception of a
beacon with the same BSSID - something we can't avoid) the beacon timers (we
have 4) can be updated seperately, leaving one of them in the past, not beeing
updated until the timers wrap around. due to the fact that the beacon interval
does not fit into the timer period (16 bit) a whole number of times the size of
the ATIM window can get bigger than desired (we don't use ATIM right now so the
window size should always be 1).

this results in a phaenome described as "ramping" (ticket #1154) which is
actually a transmission delay, since the hardware is not allowed to transmit
data in the ATIM period.

the problem is described and discussed in length at
http://thread.gmane.org/gmane.linux.drivers.madwifi.devel/6066

since we don't know of a way to disable ATIM alltogether, the following adds
some workarounds to this problem:

 1.) disable interrupts in timing critical function ath_beacon_config

 2.) stop beacons before reconfiguring them

 3.) check ATIM window after critical code which might have changed the timers

   3a.) beacon configuration

   3b.) reception of a beacon with the same BSSID. the hardware will have updated
     the local TSF and this might have left one of the beacon timers in the past.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3867 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-09-23 18:21:56 +00:00
proski
ea9d467903 Warning fix for old Linux 2.6 for i386
av_beacon_alloc should be unsigned long, not unsigned int to match
signatures of bitmask manupulation functions on i386.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3856 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-09-02 21:30:32 +00:00
proski
e21e1740f3 Fix compilation for Linux 2.4 broken by the previous commit
Just because GFP_KERNEL is defined, it doesn't mean that gfp_t is
available.  Define gfp_t as a macro instead.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3855 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-09-02 21:27:51 +00:00
proski
c3307227fb Fix compilation for RHEL 2.6.9 kernel
Don't define gpt_t if GFP_KERNEL is defined.  Define kzalloc() as a
macro.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3854 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-09-02 15:43:42 +00:00
proski
5113fc8d80 Remove unused function ieee80211_dfs_test_return()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3849 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-27 17:18:39 +00:00
proski
327d058802 Allocate ic and vap dynamically
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3846 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-27 15:58:30 +00:00
proski
4a596a2c5b Fix make warning on Linux 2.4 introduced by the last commit
Don't use two targets, simply omit $(obj)/ if it evaluates to "./"


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3837 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-01 02:51:19 +00:00
proski
20bd7616c4 Fix Linux 2.4 compatibility, introduce variables for HAL file names
Add targets for both HAL binaries without $(obj), which is needed for
Linux 2.4 build system.  Keep targets with $(obj) for Linux 2.6.

Use $(HALBIN) for non-unmangled HAL and $(HALOBJ) for unmangled HAL.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3836 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-08-01 02:26:30 +00:00
mrenzmann
82b61e015d Prevent complaint from grep in case Subversion has not yet saved any (simple) authentication information.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3832 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-31 11:18:26 +00:00
mrenzmann
f647d069c2 Some time ago ath_info was moved to its own repository, and since then
gets pulled in by Subversion as external dependency. This adds some
more lines to the output of "svn status", which caused the check for
not yet committed changes in the local working copy to fail. These
lines are now filtered out to fix this issue.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3831 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-31 11:09:20 +00:00
mrenzmann
61af7f3601 Use tabs rather than spaces for indentation.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3830 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-31 06:02:09 +00:00
mrenzmann
86ba0d3980 Improve checks for directories used during release process.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3829 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-31 05:48:07 +00:00
proski
569637796f Protect against probing AR2425 if HAL doesn't support it
AR2424 and AR2425 share the same PCI ID.  Probing AR2425 with HAL that
doesn't support it is problematic.  It causes an unhandled NMI and puts
the device to a non-functional state.  After that, even HAL that
supports AR2425 won't be able to use the device until the system is
rebooted.

Reject AR2425 devices if HAL doesn't positively indicate support for
them.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3825 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-30 21:33:40 +00:00
proski
8d74405839 Copy new macros from the DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3823 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-24 02:05:54 +00:00
proski
9fb3122e7a Reduce difference with the DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3820 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-24 01:46:25 +00:00
proski
06b49134e4 Merge formatting changes from DFS branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3817 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-24 00:38:37 +00:00
proski
01eddadfb7 Split unmangling from uudecoding, don't unmangle in place
Conversions in place should be avoided in the build system because make
doesn't know if the conversion has taken place.  Use a different name
for HAL before unmangling.  Respect the build quietness settings.

Simplify Linux 2.4 rules so that the commands for decoding and
unmangling are written only once.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3815 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-23 21:15:34 +00:00
benoit
b1f30fd47a Added proper phytype definitions for XR and HT
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3813 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-19 20:36:28 +00:00
proski
02bac30645 More typo fixes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3809 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 22:00:42 +00:00
proski
65b2749123 Typo fixes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3808 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 21:50:53 +00:00
benoit
bc6b795455 Merge some changes from -dfs:r3800:3803
Replace ath_hal_puttxbuf by ath_hw_puttxbuf


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3804 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-18 21:34:22 +00:00