Commit Graph

518 Commits

Author SHA1 Message Date
proski
6d6c1f9464 First step for power calibration reading support. This is still work in
progress and only works for eeprom versions < 5.

Reference: r3234

Merged from madwifi-trace and replaced with the exact version from
madwifi-trace to fix minor differences caused by previous merges.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3429 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 22:10:02 +00:00
proski
47002fcc6a Merge r2998:3007 from madwifi-trace
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3428 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 22:04:52 +00:00
proski
67f7dd0140 ath_info: add support to read (-R ADDR) and write (-W ADDR VALUE) registers
Reference: madwifi-trace@3398


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3425 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 21:14:05 +00:00
proski
b9e098b4f7 Dump EEPROM starting with 0, not 1
Reference: madwifi-trace@3088, madwifi-trace@3422


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3423 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 21:04:52 +00:00
proski
7006778174 Accept 64-bit addresses on the command line
Define _FILE_OFFSET_BITS to 64, so that even 32-bit systems would accept
64-bit addresses and pass then to mmap() correctly.  It could be useful
on systems with a 64-bit kernel and 32-bit userspace.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3421 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 03:39:24 +00:00
proski
c17eb8e386 Warning fix for 64-bit systems: u_int64_t is not unsigned long long
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3420 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 03:30:40 +00:00
proski
92a8a6b166 Merge from dfs branch
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3419 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-04-03 02:53:50 +00:00
mentor
0a246c936d Similarly to r3315
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3412 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-30 00:08:36 +00:00
proski
131d17a1f1 Fix compilation on kernels prior to Linux 2.6.11
Copy Linux implementation of sort() into ieee80211_scan_ap.c


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3407 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-27 22:32:08 +00:00
mentor
c6a1e81673 Change all broadcast address/SSID checks in ieee80211_wireless.c to use the same method.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3406 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-26 01:25:12 +00:00
mentor
5cbfbae447 Unify association request interface by having the madwifi private IOCTL translate to the wireless extensions interface.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3405 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-26 00:02:26 +00:00
proski
545cf26ad4 Don't rely on the compiler optimizing out iowrite32be and ioread32be
Use a separate set of _OS_REG_WRITE and _OS_REG_READ macros for
little-endian systems.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3402 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-22 06:13:08 +00:00
mentor
ce589c7ae3 Add node and SKB pointers to ath_buf in ath_mgtstart, so they are managed by the ath_buf logic. Also, remove unnecessary(?) comment.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3401 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-20 03:27:24 +00:00
proski
328929d76c Use resource_size_t for physical memory addresses
PCI resource addresses are 64-bit on i386 with PAE, so they won't fit
unsigned long.  Provide compatibility for older kernels.  Reported by
Diego Dujovne.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3399 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-19 21:28:16 +00:00
mentor
eec0d88182 Annoyingly pedantic updates
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3390 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-17 04:57:52 +00:00
mentor
b1a451321f The SIOCGATHDIAG ioctl tries to overlay a new struct defintion (struct ath_diag) onto the struct ifreq. Unfortunately, this structure appears to be too large on 64-bit platforms due to a larger pointer size; the technique may also suffer other problems.
Remove the old SIOCGATHDIAG ioctl (return -EOPNOTSUPP), and add a new ioctl (SIOCGATHHALDIAG) that passes the struct through ifr_data. Also, return -EOPNOTSUPP for unknown IOCTL numbers.

Incidently, I can't find anything that actually uses the old IOCTL.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3389 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-17 04:46:00 +00:00
mentor
d72a04fc2e Rewrite ath_ioctl_diag to handle cases where buffer sizes are zero.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3388 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-17 04:08:25 +00:00
mentor
3252f8852e Merge -dfs to trunk - r3366
This commit should have been in trunk all along. Also, make one codepath sligthly less verbose.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3367 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-03-01 07:59:04 +00:00
mentor
101b902062 Arbitrary whitespace cleanups
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3365 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-25 15:51:38 +00:00
mentor
16deb792bb Merge -dfs to trunk - r3361 2/2
Formatting


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3364 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-25 03:18:21 +00:00
mentor
9c00c5ccf3 Merge -dfs to trunk - r3361 1/2
Calculate correct ratio of 'lookaround' packets


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3363 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-25 03:17:52 +00:00
nbd
b99d972b64 revert an accidental change to the handling of errors at ath_tx_start from r3346, thx. bruno
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3362 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-23 14:13:09 +00:00
nbd
39f4007bdd fix a merge bug that broke ap channel scanning for different modes
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3360 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-21 01:47:52 +00:00
mrenzmann
7b7aa53f4f Adjust contact information for donations.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3359 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-20 05:48:08 +00:00
mentor
7d5824e65c In some situations have the hardware PHY calibrations synchronised with beacon sending. There is a greater chance that the mediuim will be quiet during this time, which appears to imporive calibration results.
This patch differs from the original in that beacon synchronised calibration is not condifured during CAC as no beacons are sent.
Thanks to nbd.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3358 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-14 06:34:28 +00:00
kelmo
c7a001a014 fix errors in ath_info.8 manpage (as detected by debians lintian tool).
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3349 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-11 11:12:17 +00:00
mentor
6b76be7f11 Merge -dfs to trunk - r3345: This probably should be in trunk
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3348 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-10 20:41:19 +00:00
mtaylor
dd740cbeef Fix for #1769. Now that maximum supported VAPs is up to 64, 32 bits is not large enough for a bit set and rolls over, resulting in VAPs that are not configured to be accessed.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3347 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-08 20:59:47 +00:00
nbd
625d3f967d fix some memory leaks triggered by memory allocation errors, which were most visible in ath_mgtstart
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3346 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-08 05:38:41 +00:00
mentor
c3365b93bf Revert r3342 :(
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3344 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-06 23:23:48 +00:00
mentor
d3ab3181b0 Move DTIM and CFP count processing out of a loop into closed form
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3343 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-06 21:37:05 +00:00
mentor
dc1e5a74cd Also call ath_hal_rxmonitor in IBSS. Maybe this will make Ge0rg all happy.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3342 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-06 21:30:48 +00:00
mentor
3f4e3ddb40 Only have the Station PS handling routine run when we are actually in Station mode. This probably only affects IBSS.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3341 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-06 21:29:06 +00:00
mrenzmann
56981e0363 * Adjust for repository structure adjustments made in r2721
* Add support for micro releases
 * Suppress possible but irrelevant error message


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3339 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-05 14:42:15 +00:00
mentor
8c0469176d Add radar stuff to Makefile.kernel
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3338 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-05 06:27:17 +00:00
mentor
c9cc0e7dee Correct pointer arithmetic in the SKB CB.
With thanks (but not copyright ;) to Alessandro Erta


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3337 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-05 06:22:32 +00:00
mentor
ebc79fce38 Cleanup up de-MIC failure (in hardware) handling. Apparently, HW sometimes gets this wrong and spuriusly fails valid packets. In all cases, the packets are dropped, but we do extra processing to record statistics correctly.
This changeset adds a node statistic. If this is not liked, I encourage it to be fixed; I might learn something.
Thanks nbd.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3334 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-04 00:16:24 +00:00
mentor
e906bf12da CCMP/AES Crypto module
So, ccmp_attach is called for each new key. Hence, only try to allocate a software context if IEEE80211_KEY_SWCRYPT is specified. Also, if we need a software context and fail, fail immediately; thus, the check in ccmp_setkey can be eleminated, as it is not actually a separate condition.

I think that when I touched this last, I was confused about the purpose of ccmp_attach.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3322 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-02 20:07:01 +00:00
mentor
c7fba7a6ce This is a HACK.
With 0.9.30.13 ANI control appears to be broken. ANI is designed only for client (STA/AHDEMO) only mode. This function updates the data used for ANI, so we will only call it for client only mode. This may will not affect ANI problems in client only mode.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3321 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-02 17:47:59 +00:00
mentor
c0c3125da1 Demote these messages to debug only from informational as they are noisy and unneeded
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3320 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-02-02 17:36:29 +00:00
proski
89f9f3ed2a Allow ARCH to be set to "x86". That's what it is in Linux 2.6.24 for
both i386 and x86_64.  When calculating TARGET for x86 platform, use
CONFIG_X86 and CONFIG_X86_64 rather than ARCH.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3318 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-31 22:48:42 +00:00
mentor
a9788959cd Move some static declarations around for no particular reason
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3316 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-31 03:54:19 +00:00
mentor
877b7727d1 I think howmany(roundup()) should just be howmany() as roundup(x, y) is howmany(x, y) * y
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3315 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-31 03:42:51 +00:00
mtaylor
4d5de4b5a2 This patch adds iwpriv values for setting the
time in ms, or the number of beacons for the
beacon miss alarm.  If we haven't had a beacon
in this period, the alarm is sounded and 
action (i.e. roaming) is taken.

This patch changes the storage of the beacon
miss threshold to integral beacon count but 
corrects the previous intent.

The default beacon miss alarm is going to be
850ms which is half way between the two hard
coded limits that were there before.

The old hard coded limits assumed that the
beacon interval was 100ms and set the limit to
10 (1000ms) for software beacon miss timer 
and 7 for hardware beacon miss timer.

The new default is 850ms (the midpoint between
the two previous defaults).  This value is rounded
up to the next nearest beacon interval.

There is no upper bound on the beacon miss
threshold specified, since it may need to be
wildly inflated with 25ms beacon interval, or
wildly reduced with 1000ms beacon interval.

The minimum is still 2 beacons, regardless of
the beacon interval.



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3314 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 23:50:16 +00:00
proski
99b36fbd0f Fix section mismatch warning in forthcoming Linux 2.6.25
Section mismatch checker in the forthcoming Linux 2.6.25 complains about
ath_pci_drv_id and recommends to rename it.  Rename ath_pci_drv_id to
ath_pci_driver, which is consistent with other PCI drivers.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3312 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 21:01:05 +00:00
mentor
0ad2c8981a Linux 2.4 series compatibility fixes
* Based on patches from nbd
 * av_beacon_alloc code has been reimplemented using atomic bit operations; I think this is safe for SMP


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3310 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 20:23:49 +00:00
mtaylor
2b8281ba31 Update comment for why we set sc_beacons to one when resetting for calibration after txcont, cac, or calibration.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3309 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 19:34:49 +00:00
mtaylor
6fbbcf00a0 This patch makes some debug messages about
dropped frames a little more consistent and
fixes an issue in hardstart where I was being
too aggressive about requeing.

I thought the slab allocator would stop handing
out skbuff instances before the system was out
of free memory based upon some kind of limit on
the number of buffers, but this was nonsense.

Therefore, it is NOT a good idea to requeue
when skb allocation fails because this pretty
much basically means we are out of free memory.

Keeping the packets we do not have the RAM to
send and then stopping the transmit queue has
very bad side effects under low/zero memory 
conditions.  

Symptoms may include OOM killer and panics,
among other things.

It's better to drop tx packets when there's no
more RAM than to lock all the tx packets up
in the transmit queue.  Even if more skb
become freed up in the slab cache due to 
transmissions already in progress, evil things
still happen.



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3308 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 19:33:38 +00:00
mtaylor
874abd03ab Reduce the maximum message length for node
messages from 1000 to 192 and drop the length
needed to display the [atomic] node count.

Slamming this much data on the stack can cause
stack overflows with 4k stacks quite easily,
especially when hard interrupts occur and 
extend a stack that is already almost full.



git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3307 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 19:26:13 +00:00
mentor
5d4e93939c Add CONFIG_CRYPTO as a Kconfig dependency when patching into the kernel
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3306 0192ed92-7a03-0410-a25b-9323aeb14dbd
2008-01-30 15:26:06 +00:00