Commit Graph

522 Commits

Author SHA1 Message Date
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
proski 2dc12013f6 Compile fix for Linux 2.4 - provide request_module() with 2 arguments
It was broken in r3726.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3751 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 08:14:57 +00:00
mentor 130324108b Update iwe_stream_add_* API usage for 2.6.26+.
Ticket: #2022


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3750 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 02:21:38 +00:00
mentor 9a2f6efd63 Correctly name Data type Null subtype frame.
Do not try to process Null and QoS Null frames as data.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3749 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-07-05 01:00:32 +00:00
scottr 3f948507e7 Fix compilation when fast frames are disabled.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3747 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-30 05:27:52 +00:00
scottr 57f22bcbda Register sysctl before doing pci registration.
This fixes a bug when renaming multiple wireless cards on slow devices.
The pci registration causes udev to rename the device but the sysctl is
not registered yet so the device renames but the corresponding sysctl
entries are not renamed.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3746 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-26 08:23:41 +00:00
mentor 7a04e2c8e8 Add an error message if a unique BSSID is requested but the hardware does not support the BSSID mask
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3745 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-24 03:09:25 +00:00
mentor 70e6e83fc8 Add an informational message when debug flags are changed.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3744 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-22 05:32:29 +00:00
mentor 78cbb40469 Convert various _debug style char *func and int line passing to use dump_stack. This may possibly be a tad noisy still.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3743 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-22 02:12:53 +00:00
mentor 03dbd3568d Make module loading and unloading much less noisy. I don't believe any of this ifnromation is particularly useful for dbeugging, and definitely not for operational use.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3742 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-21 14:40:43 +00:00
mentor 7eedc3e565 Remove mystery mode define, and tidy also
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3741 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-21 14:28:07 +00:00
mentor 174d83b6fd pci_register_driver does not error out if no devices are found. The driver just remains loaded anyway.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3740 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-21 14:21:28 +00:00
mtaylor 3d91ef2071 Revert portion of commit 3265 which introduced some poor
use of strncat (my bad) and needlessly complicated the debug 
output with prefixes.

Thanks, Pavel!  :-)



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3738 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-20 07:32:16 +00:00
proski 941d62b043 KASSERT should add newline at the end to match FreeBSD behavior
Fix KASSERT calls that add their own newline.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3734 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 16:58:07 +00:00
mentor 717cb96dd8 Update roaming iwpriv names to reflect actual format of rate data (i.e., increments of 0.5).
Also, update comments and token names to reflect reality/actual usage. Remove some entirely purposeless padding bytes.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3733 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 02:34:23 +00:00
mentor fbfef80115 Use POSIX preferred (and easier to read) $() form rather than ``
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3732 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 00:33:04 +00:00
mentor f3a89f4353 Typo in CONFIG_PARISC. Guess PARISC users are a bit thin on the ground then.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3731 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-19 00:22:42 +00:00
proski c10a304437 Allow enabling crypto tests by passing CRYPTO_TESTING=1 to make
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3730 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-18 05:10:34 +00:00
proski 292e1e6e05 Ignore *.markers and *.order
Module.markers is created when compiling for a kernel with kernel
markers enabled.  modules.order was ignored already, but it would be
better to be prepared if "modules" becomes "Module" or something like
that.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3727 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-17 22:32:04 +00:00
kelmo 0a1bf29ca4 Fix format string bugs.
Closes: #1999


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3726 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-16 08:50:30 +00:00
benoit 3ecbaecf60 Fix needed for wpa_supplicant. It might not be the best fix.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3724 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-13 15:09:58 +00:00
benoit 7b24b62bb6 Fixed a compiling bug. Patch from XazZ.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3723 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-13 12:36:32 +00:00
benoit 2b8d9ef1c9 Only display configured TXQ
Use the HAL to query the status of a TX descriptor


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3721 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-12 14:50:36 +00:00
mentor a3c603b875 Reference the VAP's node in injection/raw output frames. Makes injection work.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3720 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-12 05:22:37 +00:00
mentor 3318745855 Add a suffix to onoe and amrr rate sysctl names entries, so that they do not conflict
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3719 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-12 02:09:59 +00:00
mentor cc4fba0582 Diversity and Antenna code cleanup:
* Tidy, including refactoring and variable rename for clarity and consistency
 * Move some variable initialisation out of sysctl register where it does not belong.
 * Only change antenna based on RX traffic if both diversity and an RX antenna is not set
 * Set HW/HAL diversity setting on HW/HAL reset


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3717 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-10 15:32:45 +00:00
mentor b5b0838767 Yay. More whitespace changes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3716 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-10 11:35:40 +00:00
mentor fa195d07b8 Remove now extraneous ath_capture()
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3714 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-08 01:52:48 +00:00
mentor be5b0e727a Move responsibility for removing padding in the RX path entirely to the driver. This allows it to be done once, and thus avoids extra copying of SKBs.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3713 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-08 01:43:53 +00:00
proski c47c360b48 Be very careful about using ioread32be() and iowrite32()
They appeared:
- in generic code and PARISC - in 2.6.12
- in PPC64 - in 2.6.14
- in merged PowerPC - in 2.6.15 (when the merge occurred)
- in MIPS - in 2.6.21

Improve comments and indentation, as the logic is getting more complex.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3712 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-08 01:28:58 +00:00
mentor 785ca93999 In the RX path, the SKB needs to be copied if padding needs to be removed. Doing so causes correct operation of monitor mode interfaces to be restored, but is somewhat inefficient. Will tidy up the code in following revisions.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3711 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-07 03:24:30 +00:00
mentor 76cade5dac Make pointer declarations and casting consistent. Some other formatting changes are made in passing
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3710 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 20:32:29 +00:00