summaryrefslogtreecommitdiff
path: root/sys/dev/ath
Commit message (Collapse)AuthorAgeFilesLines
* Add missing bit of last if_start workaround: mark scan calloutSam Leffler2004-08-081-1/+1
| | | | | | | | MPSAFE only debug_mpsafenet is 1 so callbacks to send management frames hold Giant; this is another bandaid on the path to removing Giant. Notes: svn path=/head/; revision=133330
* Pickup Giant in ath_rx_proc and when handling a beacon miss in order toSam Leffler2004-08-071-0/+6
| | | | | | | satisfy the assertion in if_start. Notes: svn path=/head/; revision=133240
* Second part of ALTQ driver modifications, covering:Max Laier2004-08-011-3/+5
| | | | | | | | | | | | | an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4) Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/ Tested by: Vaidas Damosevicius (an, ath, wi) Roman Divacky (vr) Submitted by: yongari (hme) Notes: svn path=/head/; revision=132986
* use correct malloc type to allocate struct ieee80211_node'sSam Leffler2004-04-051-1/+1
| | | | | | | Noticed by: phk Notes: svn path=/head/; revision=127878
* do proper subclassing of node free+copy; the previous hack falls apart whenSam Leffler2004-04-031-0/+5
| | | | | | | | | the 802.11 layer does useful work Obtained from: madwifi Notes: svn path=/head/; revision=127784
* do proper subclassing of node free+copy; the previous hack falls apart whenSam Leffler2004-04-031-2/+8
| | | | | | | | | the 802.11 layer does useful work Obtained from: madwifi Notes: svn path=/head/; revision=127782
* transmit beacon frames directly instead of defering them to a swi; thereSam Leffler2004-04-032-4/+8
| | | | | | | | | was too much delay Obtained from: madwifi Notes: svn path=/head/; revision=127781
* update copyright notice for 2004Sam Leffler2004-04-024-4/+4
| | | | Notes: svn path=/head/; revision=127780
* add new statisticsSam Leffler2004-04-021-0/+3
| | | | | | | Obtained from: madwifi Notes: svn path=/head/; revision=127779
* check more quickly (and directly) if an interrupt is pending; this reducesSam Leffler2004-04-021-0/+2
| | | | | | | | | work done in ath_intr when the irq is shared Obtained from: madwifi Notes: svn path=/head/; revision=127778
* cleanup descriptor allocation if attach failsSam Leffler2004-04-021-2/+4
| | | | | | | Obtained from: madwifi Notes: svn path=/head/; revision=127777
* remove use IEEE80211_C_RCVMGTSam Leffler2004-04-021-1/+1
| | | | Notes: svn path=/head/; revision=127776
* radiotap updates:Sam Leffler2004-04-012-6/+13
| | | | | | | | | o force little-endian byte order for header o pad header to 32-bit boundary to guard against applications that assume packet data alignment Notes: svn path=/head/; revision=127698
* Don't announce MAC addresses twice.Matthew N. Dodd2004-03-201-2/+0
| | | | | | | (ieee80211_ifattach() calls ether_ifattach().) Notes: svn path=/head/; revision=127237
* Convert callers to the new bus_alloc_resource_any(9) API.Nate Lawson2004-03-171-4/+4
| | | | | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Notes: svn path=/head/; revision=127135
* Make this compile on amd64.Peter Wemm2004-02-061-6/+6
| | | | | | | "I'll cope" by: sam Notes: svn path=/head/; revision=125510
* When draining the tx queue reclaim any node references held in packets.Sam Leffler2004-01-071-1/+10
| | | | | | | | This fixes a problem when operating as an AP where clients would get stuck in the node table because the reference count never went to zero. Notes: svn path=/head/; revision=124225
* When ath_hal_stoptxdma returns an error dma is still likely stoppedSam Leffler2004-01-071-1/+1
| | | | | | | | so don't just stop trying to send a beacon frame or we'll be more likely to lose sync. This only seems to happen on some older chips. Notes: svn path=/head/; revision=124224
* use ath_reset instead of ath_init when recovering from a watchdog timeout:Sam Leffler2004-01-071-1/+1
| | | | | | | resetting the hardware is sufficient, no need to reset the 802.11 fsm Notes: svn path=/head/; revision=124223
* make hw.ath.debug a tunableSam Leffler2004-01-071-0/+1
| | | | Notes: svn path=/head/; revision=124222
* make hw.ath.outdoor and hw.ath.countrycode tunablesSam Leffler2004-01-071-0/+2
| | | | Notes: svn path=/head/; revision=124221
* split debugging messages up into classes;Sam Leffler2004-01-071-73/+109
| | | | | | | ah_debug is now treated as a bit vector Notes: svn path=/head/; revision=124220
* update radiotap support to reflect recent changes:Sam Leffler2003-12-282-11/+22
| | | | | | | | | | | | o move tx taps from ath_start to ath_tx_start so lots more state is available to tap o add tx flags o add tx rate o add tx power (constant for the moment) o add tx antenna state Notes: svn path=/head/; revision=123928
* o eliminate widespread on-stack mbuf use for bpf by introducingSam Leffler2003-12-281-34/+11
| | | | | | | | | | | | | | | | a new bpf_mtap2 routine that does the right thing for an mbuf and a variable-length chunk of data that should be prepended. o while we're sweeping the drivers, use u_int32_t uniformly when when prepending the address family (several places were assuming sizeof(int) was 4) o return M_ASSERTVALID to BPF_MTAP* now that all stack-allocated mbufs have been eliminated; this may better be moved to the bpf routines Reviewed by: arch@ and several others Notes: svn path=/head/; revision=123922
* o track API change for HAL v0.9.6.1Sam Leffler2003-11-293-18/+56
| | | | | | | | | | | | | | | | | | o fix race condition when processing rx descriptors: because we use a self-linked descriptor at the end of the rx descriptor list to avoid rx overruns (which can easily happen for 5212 parts that enable PHY errors) we must carefully check that a descriptor is "done" by looking ahead to the next descriptor before believing the done bit in the current descriptor (this is all handled in the HAL since the rx descriptor format is chip-specific so we need to pass in two additional parameters--the physical address of the current descriptor and the virtual address of the next descriptor in the list) o check copyout return status for SIOCGATHSTATS ioctl Approved by: re (scottl) Notes: svn path=/head/; revision=123044
* Sometimes cardbus attachments don't attach, so while we track downWarner Losh2003-11-281-0/+1
| | | | | | | | | | | this problem put these lines back in. While they should be unnecessary, they appear to be sometimes necessary. Reviewed in concept: dfr Approved by: re (scottl@) Notes: svn path=/head/; revision=123019
* move rate control change messages under ath_debugSam Leffler2003-11-171-2/+2
| | | | Notes: svn path=/head/; revision=122866
* o fix WEP use in hostap mode; need to reset the pointer to theSam Leffler2003-11-171-1/+2
| | | | | | | 802.11 packet header after stripping the WEP header on input Notes: svn path=/head/; revision=122863
* on a beacon miss try to reassociate before starting a scanSam Leffler2003-11-171-2/+9
| | | | | | | Submitted by: Henry Qian Notes: svn path=/head/; revision=122862
* Don't count PHY errors as input errors. This is important forSam Leffler2003-11-131-1/+9
| | | | | | | | | | | 5212-based devices because PHY errors are used to collect data on environmental noise that and doesn't truly reflect the state of the communications media. The result is confused users. Folks that want to watch PHY errors can still get the statistics through the device ioctl (used by athstats). Notes: svn path=/head/; revision=122602
* Remove explicit cardbus attachments from drivers where this is identicalDoug Rabson2003-11-031-1/+0
| | | | | | | | | | to the pci attachment. Cardbus is a derived class of pci so all pci drivers are automatically available for matching against cardbus devices. Reviewed by: imp Notes: svn path=/head/; revision=121939
* o check hal ABI version to catch driver-HAL mismatchesSam Leffler2003-11-011-0/+16
| | | | | | | o print MAC, PHY, and radio h/w revisions at attach Notes: svn path=/head/; revision=121840
* Replace the if_name and if_unit members of struct ifnet with new membersBrooks Davis2003-10-311-2/+2
| | | | | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname) Notes: svn path=/head/; revision=121816
* terminate the rx descriptor list with a self-linked entrySam Leffler2003-10-221-3/+21
| | | | | | | so high phy error rates on a 5212 don't cause rx overruns Notes: svn path=/head/; revision=121322
* o consolidate rx filter calculations in one placeSam Leffler2003-10-171-19/+39
| | | | | | | | o enable beacon reception when operating in adhoc mode so the 802.11 layer can use them to create nodes for peers Notes: svn path=/head/; revision=121177
* indicate device receives all management framesSam Leffler2003-10-171-2/+6
| | | | Notes: svn path=/head/; revision=121175
* o correct handling of a frame that has too many segments to fit in theSam Leffler2003-10-161-3/+6
| | | | | | | | | | tx descriptor array o while here fix a whitespace nit Obtained from: NetBSD Notes: svn path=/head/; revision=121138
* o convert mutex calls to #defines for portability, etc.Sam Leffler2003-10-143-35/+61
| | | | | | | o destroy mutex's on detach (was missing) Notes: svn path=/head/; revision=121100
* remove dangling mtx_unlock orphaned by rev 1.21 changeSam Leffler2003-10-131-1/+0
| | | | Notes: svn path=/head/; revision=121063
* Reduce per-packet overhead when using WEP by using an advancing IVSam Leffler2003-10-131-1/+8
| | | | | | | | | seeded with arc4random rather than calling arc4random for each packet. Note this is the same algorithm used to select the IV when doing WEP on the host. Notes: svn path=/head/; revision=121059
* Must reset the pointer to the 802.11 header after prependingSam Leffler2003-10-131-0/+1
| | | | | | | for WEP in case the prepend addes a new mbuf. This fixes WEP. Notes: svn path=/head/; revision=121058
* MFp4:Sam Leffler2003-10-131-3/+13
| | | | | | | | | | | | | o don't grab the mutex at the top of ath_detach; it does nothing useful o deal with entry to ath_ioctl during detach to disable promiscuous mode as a result of calling bpfdetach2: cannot call ath_init when the device is marked invalid as the code isn't prepared to deal with it (in particular by that time the hal reference may have been yanked) Notes: svn path=/head/; revision=121057
* MFp4:Sam Leffler2003-10-131-14/+23
| | | | | | | | | change ath_rate_ctl_reset to handle transition from station mode to adhoc mode; was not resetting the initial xmit rate causing outbound frames to be dicarded Notes: svn path=/head/; revision=121056
* include the DS element in beaconsSam Leffler2003-10-061-1/+4
| | | | Notes: svn path=/head/; revision=120826
* Maintain a history of data associated with received frames and use this toSam Leffler2003-09-152-5/+77
| | | | | | | | | | | | | | | | | calculate smoothed signal quality data for each node. o add a 16-deep history buffer to each driver-private node storage that holds rssi and antenna info for received frames o override the default per-node "get rssi" method to return an average rssi value based on samples collected over the last second o enable beacon reception so even idle systems maintain a running history of signal quality This data may also be useful for improving the rate control algorithm. Based on work by Tom Marshall <tommy@home.tig-grr.com> for MADWIFI. Notes: svn path=/head/; revision=120105
* o do not filter received frames based on type or length; pass 'em all upSam Leffler2003-09-151-13/+3
| | | | | | | | | | | to the 802.11 layer if they are at least IEEE80211_MIN_LEN o mask off interrupt status bits that we don't care about so we don't do the wrong thing; this fixes a problem where the beacon miss interrupt status bit is delivered together with other status bits when operating in monitor mode (we would post a beacon miss swi and then do the wrong thing) Notes: svn path=/head/; revision=120100
* must also check for 5Ghz channels when marking short preamble capability inSam Leffler2003-09-141-1/+2
| | | | | | | | | the beacon frames Reminded by: Stephane Laroche <stephane.laroche@colubris.com> Notes: svn path=/head/; revision=120075
* o mark the device capable of short preamble (meaningless for the 5210 butSam Leffler2003-09-142-16/+18
| | | | | | | | | | | | | safe since the 802.11 layer does the right thing for 11a operation) o select short preamble operation based on the negotiated capabilities; not just the local state/capability o fillin the duration field in the 802.11 header as appropriate o remove detection of 11g support; no longer needed Obtained from: MADWIFI (with modifications) Notes: svn path=/head/; revision=120071
* Add support for the experimental radiotap capture format. With thisSam Leffler2003-09-053-11/+112
| | | | | | | we no longer need the debugging code to dump packets. Notes: svn path=/head/; revision=119783
* Explicitly enable probe request frame reception when not in station mode;Sam Leffler2003-09-011-0/+4
| | | | | | | | | this is needed for the 5212 which a separate filter bit for these frames. Submitted by: Stephane Laroche <stephane.laroche@colubris.com> Notes: svn path=/head/; revision=119629