Commit Graph

547 Commits

Author SHA1 Message Date
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
mentor
1a24cb141a Use vlan_hwaccel_rx instead of vlan_hwaccel_receive_skb, as this is the non-polling (non-NAPI) version.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3709 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 19:42:24 +00:00
mentor
f259deab93 In some parts of Madwifi, SKBs are dispatched from the VAP device to the physical device using Linux kernel queuing, which does not understand our node reference system, so node references are carefully cleaned up if the packet is dropped.
However, the netif_rx and vlan_hwaccel_receive_skb functions dispatch the SKB to the higher networking levels, out of our domain.

Therefore, handle node references as appropriate.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3708 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 19:21:33 +00:00
proski
1b5e6019b1 Don't show comments while compiling
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3707 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 05:39:54 +00:00
proski
78ddabe0b4 Fix tools compliation described in ticket #1934
Change compat.h to never use KERNEL_VERSION in userspace code.  Move it
to the block only used by the kernel code.  While at that, move KASSERT
to the same block.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3706 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 05:38:29 +00:00
mentor
a5680de2b6 Remove sead ALIGNED_POINTER code
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3705 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-06 01:40:25 +00:00
proski
0c4f9cd972 Add ignore rules for tools/wpakey and modules.order
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3703 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-05 07:37:41 +00:00
proski
798e0eb3fb Registers between 0x7000 and 0x8000 are always little-endian
According to FreeBSD changelog, this area is present in 5416 and newer
and must be byteswapped on big-endian systems.  Testing confirms it.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3701 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-05 07:22:51 +00:00
proski
8c141cdc58 Reapply r3402 (ARM compile fix), it was reverted by mistake
This should fix compilation on little-endian ARM and possibly other
platforms with little or no optimization.  This closes #1783.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3700 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-05 07:13:41 +00:00
kelmo
4b2cf1393a Remove modules.order files in Makefile clean targets.
Remove kbuild by-products in regression/Makefile. Also allow
regression/tkip/test_tkip.c to compile (too few arguments to function
ieee80211_crypto_demic).

Closes: #1973


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3699 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-04 12:25:31 +00:00
proski
eaac5479fd Rename remaining instances of ALL to PROGRAMS
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3693 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-01 17:39:48 +00:00
benoit
4b8b3f3960 Revert part of previous change. Was too board. Merge -dfs r3691
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3692 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-01 17:36:03 +00:00
benoit
ec82a6dabd Avoid soft lockup with calibration timer. Merge from -dfs r3689
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3690 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-01 16:44:12 +00:00
benoit
c04bc3e394 Merge -dfs r3410 and r3687 for proper multicast key search operation (disable
at this point since it does not work as expected).


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3688 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-06-01 09:34:30 +00:00
proski
4cf35af407 Copy Makefile and wpakey.c from madwifi-dfs branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3685 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-30 19:52:53 +00:00
proski
0b5e419a35 Connect ath_info as a subdirectory for tools
Use https protocol and the tip revision.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3684 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-30 19:44:14 +00:00
mentor
bacb36738e Update some strings in ieee80211_dumppkt to be slightly more obvious/correct
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3680 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-25 18:44:50 +00:00
mentor
7045e12375 Aid debugging by helpfully not dereferencing NULL pointers and oopsing when debugging messages are turned on.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3679 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-24 12:15:44 +00:00
mentor
2cb3887369 Add lots of .PHONY to Makefiles and remove a duplicate rule definition
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3678 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-23 03:49:25 +00:00
benoit
99ead2121d Merge madwifi-dfs r3676
Fixed type of all variables storing jiffies
Converted add_timer() to mod_timer()


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3677 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 20:25:48 +00:00
mentor
c62ff62eaf Cast to remotely the right pointer type
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3675 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 16:15:28 +00:00
mentor
c0466a75a6 Record stat's before dispatch, and generally don't try to access NULL pointers
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3674 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 16:09:19 +00:00
mentor
03b00b0e45 A few final bits of tidy
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3673 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 15:17:20 +00:00
mentor
2e5d81996e Slightly tidier way of managing SKBs
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3672 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 15:13:19 +00:00
mentor
18682f3d29 SKB handling code cleanup:
* Convert last SKB_CB()->ni to SKB_NI
 * Lots of comments
 * Refactor various pieces of code for consistency, readability, and removal of goto


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3666 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 12:58:24 +00:00
mentor
04084c023d Make sure to free the skb if it is not used. This is brute force programming; I blame gotos.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3665 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-05-22 12:48:52 +00:00