madwifi/.git
17 years agoAdd labs macro
mtaylor [Wed, 21 Nov 2007 08:31:35 +0000 (08:31 +0000)]
Add labs macro

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2876 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAdd null check around dev_kfree_skb
mtaylor [Wed, 21 Nov 2007 08:23:43 +0000 (08:23 +0000)]
Add null check around dev_kfree_skb

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2875 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoThe node debug lines in this file were just reporting the function was invoked,
mtaylor [Wed, 21 Nov 2007 08:23:20 +0000 (08:23 +0000)]
The node debug lines in this file were just reporting the function was invoked,
and there didn't seem to be much point.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2874 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoUnexpand tabs in the lines different from the DFS branch
proski [Tue, 20 Nov 2007 20:33:58 +0000 (20:33 +0000)]
Unexpand tabs in the lines different from the DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2871 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMerge whitespace changes made on the DFS branch
proski [Tue, 20 Nov 2007 18:19:55 +0000 (18:19 +0000)]
Merge whitespace changes made on the DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2869 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMerge tools/wlanconfig.c changes from the DFS branch
proski [Tue, 20 Nov 2007 17:33:41 +0000 (17:33 +0000)]
Merge tools/wlanconfig.c changes from the DFS branch

IEEE80211_IS_CHAN_RADAR and IEEE80211_IS_CHAN_PASSIVE should be in the
headers, not in wlanconfig.c

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2866 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMerge some whitespace changes from the DFS branch
proski [Tue, 20 Nov 2007 17:18:36 +0000 (17:18 +0000)]
Merge some whitespace changes from the DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2864 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix MHz spelling (not Mhz) from DFS branch
proski [Tue, 20 Nov 2007 17:02:12 +0000 (17:02 +0000)]
Fix MHz spelling (not Mhz) from DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2863 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMerge RX timestamps changes from madwifi-dfs branch
benoit [Sun, 18 Nov 2007 22:04:47 +0000 (22:04 +0000)]
Merge RX timestamps changes from madwifi-dfs branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2859 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMove pointer reference to after null pointer check.
mentor [Fri, 16 Nov 2007 11:24:22 +0000 (11:24 +0000)]
Move pointer reference to after null pointer check.

Ticket: http://madwifi.org/ticket/1650
Original Patch: Signed-off-by: Josef Kriegl <Josef.Kriegl@gmail.com>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2856 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoChange the default VAP interface type to ARPHRD_ETHER
mentor [Thu, 15 Nov 2007 18:32:03 +0000 (18:32 +0000)]
Change the default VAP interface type to ARPHRD_ETHER

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2855 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoRevert r2852 as it uses the incorrect method to access IO memory and breaks on many...
mentor [Thu, 15 Nov 2007 16:32:01 +0000 (16:32 +0000)]
Revert r2852 as it uses the incorrect method to access IO memory and breaks on many archs.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2854 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoRevert commits 2623:2624, they break archs without iowrite32be()
proski [Thu, 15 Nov 2007 03:29:11 +0000 (03:29 +0000)]
Revert commits 2623:2624, they break archs without iowrite32be()

This fixes ticket #1539

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2852 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAdd semicolon lost in the previous commit
proski [Wed, 14 Nov 2007 20:53:41 +0000 (20:53 +0000)]
Add semicolon lost in the previous commit

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2851 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAlways set the correct network device type
mentor [Wed, 14 Nov 2007 20:47:56 +0000 (20:47 +0000)]
Always set the correct network device type

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2850 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoWhen setting the desired frequency of a VAP, check for differences against a previous...
mentor [Wed, 14 Nov 2007 18:12:05 +0000 (18:12 +0000)]
When setting the desired frequency of a VAP, check for differences against a previous desired frequency rather than ic_bsschan (which may be meaningless).

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2849 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoModify ieee80211_saveie and ieee80211_saveath(ewww) to take a NULL source parameter...
mentor [Tue, 13 Nov 2007 17:45:58 +0000 (17:45 +0000)]
Modify ieee80211_saveie and ieee80211_saveath(ewww) to take a NULL source parameter, and to cleanup in this case.
On reception of an Associatiion request, always save IEs correctly (i.e., cleanup up any no longer valid IEs in the case that no new, valid IE is received).

Ticket: http://madwifi.org/ticket/1188
Original Patch: Signed-Off-By: Bas

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2847 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoRevert r2828 - problem appears to be fixed now
mentor [Mon, 12 Nov 2007 19:20:11 +0000 (19:20 +0000)]
Revert r2828 - problem appears to be fixed now

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2845 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoStop ieee80211_node_leave from trying to be responsible for the caller's node reference
mentor [Sun, 11 Nov 2007 23:22:43 +0000 (23:22 +0000)]
Stop ieee80211_node_leave from trying to be responsible for the caller's node reference

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2844 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoTurn off Interference Mitigation/Ambient Noise Imunity when the HAL is not in Station...
mentor [Sun, 11 Nov 2007 01:47:55 +0000 (01:47 +0000)]
Turn off Interference Mitigation/Ambient Noise Imunity when the HAL is not in Station mode as it apparently causes problems with OFDM receive sensitivty.
It strikes me that we should always reset the hardware through a common function, though.

Ticket: http://madwifi.org/ticket/705
Original Patch: Signed-off-by: Tjalling Hattink <tjalling.hattink@ti-wmc.nl>

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2843 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAudit of node referencing:
mentor [Thu, 8 Nov 2007 16:55:02 +0000 (16:55 +0000)]
Audit of node referencing:
 * Enhance readability of some functions WRT node referencing by putting blocks around areas where node references are held
 * Various bits of consistency of the usage of node references; always unreference them at the point at which they are no longer used. Don't reuse variables implicitly.
 * Significant overhaul of the usage of bf_node and ieee80211_cb.ni. Always hold a reference with aforementioned variable and always unreference it properly.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2839 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years ago * Update comments on find_*node functions to specifically note node reference acquir...
mentor [Thu, 8 Nov 2007 16:50:00 +0000 (16:50 +0000)]
 * Update comments on find_*node functions to specifically note node reference acquirement
 * Update ieee80211 XR mode to use ieee80211_parent_queue_xmit

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2838 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoInstall modules with mode set to 0644 instead of 0755.
scottr [Tue, 6 Nov 2007 00:41:19 +0000 (00:41 +0000)]
Install modules with mode set to 0644 instead of 0755.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2834 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix compilation with GCC 4.1.2 on 64-bit hosts
scottr [Tue, 6 Nov 2007 00:33:49 +0000 (00:33 +0000)]
Fix compilation with GCC 4.1.2 on 64-bit hosts

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2833 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix for r1106. Perform HAL reset twice, once with chanchange = TRUE and once without.
mtaylor [Mon, 5 Nov 2007 23:18:44 +0000 (23:18 +0000)]
Fix for r1106.  Perform HAL reset twice, once with chanchange = TRUE and once without.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2831 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoTemporary workaround to refcount bugs exposed by r2792
mtaylor [Mon, 5 Nov 2007 16:34:46 +0000 (16:34 +0000)]
Temporary workaround to refcount bugs exposed by r2792

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2828 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMerge changes @2825 back to trunk
benoit [Sun, 4 Nov 2007 16:17:39 +0000 (16:17 +0000)]
Merge changes @2825 back to trunk

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2826 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix a node reference leak in XR mode due to re-assigning a variable without unref...
mtaylor [Sat, 3 Nov 2007 05:49:37 +0000 (05:49 +0000)]
Fix a node reference leak in XR mode due to re-assigning a variable without unref first.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2824 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix a node reference leak in ieee80211_ioctl_getspy loop
mtaylor [Sat, 3 Nov 2007 05:30:40 +0000 (05:30 +0000)]
Fix a node reference leak in ieee80211_ioctl_getspy loop

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2823 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix support for big-endian systems
proski [Fri, 2 Nov 2007 02:05:22 +0000 (02:05 +0000)]
Fix support for big-endian systems

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2818 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix support for 64-bit systems
proski [Thu, 1 Nov 2007 22:25:15 +0000 (22:25 +0000)]
Fix support for 64-bit systems

Fix all uses of long integers for 32-bit values.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2817 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoBig cleanup of tools/ath_info.c
proski [Thu, 1 Nov 2007 21:15:28 +0000 (21:15 +0000)]
Big cleanup of tools/ath_info.c

Reformat with madwifi-indent, it was needed badly.  Break some long
lines.  Avoid complex structure initializers that GNU indent cannot
format.  Avoid using macro for the names table.  Remove spaces in the
names, add then with formatted output.  Remove spaces before punctuation
signs.

Fix all sparse warnings.  Default to base 16 for all numbers specified
on the command line.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2816 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix sysctl support in Linux 2.6.24
proski [Wed, 31 Oct 2007 05:39:41 +0000 (05:39 +0000)]
Fix sysctl support in Linux 2.6.24

Linux 2.6.24 introduces a sysctl checker that disallows using arbitrary
ctl_name values for sysctl entries.  The entries with non-standard
values should set ctl_name to CTL_UNNUMBERED.

On the other hand, using consistent non-zero ctl_name values is required
for older kernels (tested on Linux 2.4.33.3 from Slackware 11).

Thus the solution is to use CTL_UNNUMBERED on Linux 2.6.24+ and the
original values in the older kernels.  Move CTL_AUTO and DEV_ATH to
include/compat.h and define them correspondingly.

When copying sysctl entries, check procname for being non-zero, since
ctl_name is zero (CTL_UNNUMBERED) on Linux 2.6.24 and newer.

For the same reason, don't use ctl_name to distinguish entries in
ath_sysctl_template, use extra2 instead.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2814 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoWhen a channel switch announcement (CSA) happens either through an action frame or...
mtaylor [Mon, 29 Oct 2007 22:34:55 +0000 (22:34 +0000)]
When a channel switch announcement (CSA) happens either through an action frame or a beacon, the sampling algorithm can get back responses with a rate of zero which result in rate index lookups that fail with -1 as a return value.

We just need to ignore these, as the sample rate control algorithm will recover quickly.

Previously, after a channel switch due to radar or command line channel change, we would see lots of error messages spewed to the logs about invalid rate indexes from the sample alg.  This just squelches those messages.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2799 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoOur ABI for hostapd currently uses an old structure that only has one byte for the...
mtaylor [Mon, 29 Oct 2007 22:33:03 +0000 (22:33 +0000)]
Our ABI for hostapd currently uses an old structure that only has one byte for the key index.  This means that the 'magic value' of -1 (255) for NONE is passed rather than the larger type we actually use internally.  To make comparisons work properly, I'm putting the magic value back at (uint8_t)-1 again so that a key index of 'none' with a MAC address that is passed into madwifi is interpreted correctly and the keys for that station are properly removed, rather than errors returned.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2798 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix oops due to sysctl table check failure in Linux 2.6.24
proski [Mon, 29 Oct 2007 04:19:27 +0000 (04:19 +0000)]
Fix oops due to sysctl table check failure in Linux 2.6.24

Linux 2.6.24 has a sysctl table checker that rejects the tables
presented by the driver.  Make the code survive this condition.  Free
devname (or dev_name) before freeing the table.  Don't do it at the
unregister time, it's too late.

The sysctl tables still need to be fixed.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2795 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix for a false replay detection when seq was initialized to zero and first packet...
mtaylor [Sun, 28 Oct 2007 20:40:04 +0000 (20:40 +0000)]
Fix for a false replay detection when seq was initialized to zero and first packet is also seq zero.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2794 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAdd indication of radar, half and quarter rates to wlanconfig list chan
mtaylor [Sun, 28 Oct 2007 17:55:54 +0000 (17:55 +0000)]
Add indication of radar, half and quarter rates to wlanconfig list chan

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2793 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoMove acquisition of node reference outside macro to ensure node is referenced only...
mentor [Sat, 27 Oct 2007 17:58:32 +0000 (17:58 +0000)]
Move acquisition of node reference outside macro to ensure node is referenced only once.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2792 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoLinux 2.6.24 moves proc_net inside init_net
proski [Wed, 17 Oct 2007 16:59:45 +0000 (16:59 +0000)]
Linux 2.6.24 moves proc_net inside init_net

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2756 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix compilation for the forthcoming Linux 2.6.24
proski [Wed, 17 Oct 2007 03:39:50 +0000 (03:39 +0000)]
Fix compilation for the forthcoming Linux 2.6.24

SET_MODULE_OWNER() is not defined in 2.6.24, but it's already a no-op in
2.6.23.  Make sure that it will be a no-op in 2.6.23 and newer kernels.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2754 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoadd dump eeprom option (-d) to ath_info to dump the entire contents
br1 [Tue, 16 Oct 2007 12:32:26 +0000 (12:32 +0000)]
add dump eeprom option (-d) to ath_info to dump the entire contents
of the eeprom to the screen and to a file

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2750 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoTry not to dereference null pointers; the loop above might not have run
mentor [Sun, 14 Oct 2007 17:48:45 +0000 (17:48 +0000)]
Try not to dereference null pointers; the loop above might not have run

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2745 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoRefactor beacon buffer generating loop for readability
mentor [Sat, 13 Oct 2007 21:19:49 +0000 (21:19 +0000)]
Refactor beacon buffer generating loop for readability

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2742 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoIf a rates information element is received that is larger than we will accept, simply...
mentor [Thu, 11 Oct 2007 15:40:49 +0000 (15:40 +0000)]
If a rates information element is received that is larger than we will accept, simply take the first maximum size elements and continue, rather than BUG'ing out.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2736 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoSignificantly lower the PCI_LATENCY_TIMER value that we were setting. This is essenti...
mentor [Mon, 8 Oct 2007 12:02:22 +0000 (12:02 +0000)]
Significantly lower the PCI_LATENCY_TIMER value that we were setting. This is essentially hte total time we are allowed to hold onto the PCI bus, before we see if anyone else wants a go. Higher means better throuhgput at the expense of the latency of other devices, and vice versa.

This value is roughly around the value that other devices are setting. The previous value appeared to be stupidly high.

This may solve some interactivity problems and machine performance issues.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2732 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFunction declaration whitespace
mentor [Mon, 8 Oct 2007 11:38:21 +0000 (11:38 +0000)]
Function declaration whitespace

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2731 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoFix lock context imbalance in ap_end() found by sparse
proski [Fri, 5 Oct 2007 17:01:13 +0000 (17:01 +0000)]
Fix lock context imbalance in ap_end() found by sparse

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2726 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoAdded support for AP mode scan results to be updated and returned to
mtaylor [Fri, 5 Oct 2007 05:52:42 +0000 (05:52 +0000)]
Added support for AP mode scan results to be updated and returned to
wireless tools and other clients.  This fixes:

bgscan
iwlist <iface> scan
wlanconfig <iface> list scan
wlanconfig <iface> list peers

etc...

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2724 0192ed92-7a03-0410-a25b-9323aeb14dbd

17 years agoRestructuring the repository layout in response to ath5k.
mrenzmann [Thu, 4 Oct 2007 13:07:51 +0000 (13:07 +0000)]
Restructuring the repository layout in response to ath5k.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2721 0192ed92-7a03-0410-a25b-9323aeb14dbd