Commit Graph

553 Commits

Author SHA1 Message Date
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
proski 49943c6614 Fix opening brace placement in functions
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3799 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 07:29:42 +00:00
proski c280829aed Copy ath/if_ath_debug.h from madwifi-dfs, it has some enhanced macros
Reference: madwifi-dfs@3544


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3798 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 07:05:15 +00:00
proski 000f685865 Rename doth to DFS where madwifi-dfs does it
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3797 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 06:44:24 +00:00
proski 4ab91bd2bf Copy from madwifi-dfs branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3796 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 06:38:23 +00:00
proski a53e764d91 Eliminate some whitespace differences from madwifi-dfs
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3793 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 06:30:55 +00:00
proski 3294801ba6 Fix comment in ath_regdump_filter()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3790 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 05:46:55 +00:00
proski 60a88a29d6 Use time_after_eq(), not time_after()
The trunk and the madwifi-dfs branch fixed jiffy rollover differently,
but the madwifi-dfs fix is closer to the original code.

Reference: madwifi-dfs@3676


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3788 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 05:11:56 +00:00
proski d818daa1f2 Merge some comment changes from madwifi-dfs
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3787 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 04:50:29 +00:00
proski da7fdf05c1 Remove trailing whitespace where it's not in madwifi-dfs branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3783 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 03:44:41 +00:00
proski e74121f314 Add printk priorities to ah_os.c
Reference: madwifi-dfs@3264


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3780 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 02:48:19 +00:00
proski 03fc511969 Replace "analyse" with "analyze"
Reference: madwifi-dfs@3544


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3779 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-17 02:26:04 +00:00
scottr f85e81e0da Be smarter about TX antenna selection for multicast frames.
Instead of simply alternating antenna, send multicast frames out each antenna
based on the proportion of sucessfully transmitted unicast frames. This helps
in situations where one antenna is significantly better than another.

Signed-off-by: Perry Lorier <perry@cs.waikato.ac.nz>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3776 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-16 10:58:04 +00:00
scottr cc67e7f9be minstrel: Don't try to set up the multi-rate retry descriptor when there
are no rates for the node.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3775 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-16 10:07:01 +00:00
proski 0844e78686 kzalloc() appeared in Linux 2.6.14, not in Linux 2.6.3
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3771 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-14 21:06:05 +00:00
proski 9dec64f9a8 Treat svnversion.h as a real target, not a phony one
Allow Linux 2.6 build system to generate svnversion.h if it's missing.
This is useful for Debian "Linux module extra" package build
infrastructure.  Original patch from Kel Modderman.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3770 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-14 19:53:50 +00:00
proski 4878463bdb Wireless extensions changes are for 2.6.27, not 2.6.26
Don't use compatibility code if IW_REQUEST_FLAG_COMPAT is defined, which
means that the kernel identifies itself as 2.6.26, but acts like 2.6.27
would.

Remove unneeded use of ellipsis in iwe_stream_lcp_len() definition.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3767 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-10 14:50:56 +00:00
mentor c4c202073b Use iwe_stream_lcp_len instead of IW_EV_LCP_LEN for 2.6.26+
Addendum to r3750
Ticket: #2022


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3760 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-07 19:28:08 +00:00
proski b4cd4639af Rephrase some requirements to make them less confusing.
Also, we don't support Wireless Extensions 14.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3759 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-07 17:54:33 +00:00
mentor caa352fdd2 Remove, rename, and move various mystery meat defines
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3756 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:31:09 +00:00
mentor 4c5dbf4fbd Remove the world's most pointless macro definition
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3755 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:07:16 +00:00
mentor 77c44c5d03 Define MIN/MAX macros once
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3754 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 02:05:35 +00:00
mentor 3b5b743774 Distance/slot time & ack. timeout configuration:
* Update comments and references
* Refactor slot time from distance calculation code
* Correct timeout calculation (i.e., remove incorrect factor of 2)


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3753 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-06 01:44:44 +00:00