| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
different vendor id/product id.
Submitted by: Keith Davis
Notes:
svn path=/head/; revision=120900
|
| |
|
|
|
|
|
|
| |
Glanced over by: imp, gibbs
Tested by: i386 LINT
Notes:
svn path=/head/; revision=119690
|
| |
|
|
|
|
|
| |
Also some minor style cleanups.
Notes:
svn path=/head/; revision=119418
|
| |
|
|
|
|
|
|
| |
tree for two or more years now), except in a few places where there's
code to be compatible with older versions of FreeBSD.
Notes:
svn path=/head/; revision=119277
|
| |
|
|
|
|
|
| |
was asserted during a tsleep resulting in a panic in tsleep.
Notes:
svn path=/head/; revision=119163
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix up TX speed changes.
- Make mpi-350 cards sort-of work with new firmware. It RXs okay but TXs
only work for about 14 packets then fails to get an interrupt. The
TX watchdog fires. It has been reported that my hack for now doesn't
break cards with the older firmware. It appears my card has lost
the ability to RX or TX at all but other peoples cards work. I assume
it got damaged in tansport.
MFC: 1 week.
Notes:
svn path=/head/; revision=119156
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg.
Lockfunc allows a driver to provide a function for managing its locking
semantics while using busdma. At the moment, this is used for the
asynchronous busdma_swi and callback mechanism. Two lockfunc implementations
are provided: busdma_lock_mutex() performs standard mutex operations on the
mutex that is specified from lockfuncarg. dftl_lock() is a panic
implementation and is defaulted to when NULL, NULL are passed to
bus_dma_tag_create(). The only time that NULL, NULL should ever be used is
when the driver ensures that bus_dmamap_load() will not be deferred.
Drivers that do not provide their own locking can pass
busdma_lock_mutex,&Giant args in order to preserve the former behaviour.
sparc64 and powerpc do not provide real busdma_swi functions, so this is
largely a noop on those platforms. The busdma_swi on is64 is not properly
locked yet, so warnings will be emitted on this platform when busdma
callback deferrals happen.
If anyone gets panics or warnings from dflt_lock() being called, please
let me know right away.
Reviewed by: tmm, gibbs
Notes:
svn path=/head/; revision=117126
|
| |
|
|
| |
Notes:
svn path=/head/; revision=116951
|
| |
|
|
|
|
|
|
|
| |
Add XXX comment where intent is unclear.
Found by: FlexeLint
Notes:
svn path=/head/; revision=115615
|
| |
|
|
|
|
|
|
|
|
|
| |
network layer (ether).
- Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information
associated with a module then we should make it explicit and not
use hacks.)
Notes:
svn path=/head/; revision=113506
|
| |
|
|
|
|
|
|
|
|
| |
interrupt handler last. This gets rid of the sleep while locked
messages.
Reviewed by: ambrisko
Notes:
svn path=/head/; revision=113316
|
| |
|
|
|
|
|
|
| |
description. This allows us to rely entirely on the CIS entries if
necessary...
Notes:
svn path=/head/; revision=113315
|
| |
|
|
| |
Notes:
svn path=/head/; revision=113038
|
| |
|
|
|
|
|
| |
Approved by: trb
Notes:
svn path=/head/; revision=111119
|
| |
|
|
|
|
|
|
|
| |
into the source.
Reviewed by: ambrisko
Notes:
svn path=/head/; revision=111051
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Cache temp. keys so they are preserved across suspend/resume (MPI-350)
- Reads and writes are real fast to the MPI-350 causing early timeouts so
wait do some DELAYs to slow things down in the spin loops.
- Stream line setting RIDs when they are better to be set via another
function
- Add better support for setting home key via "ifconfig an0 wepkey 9:<key>"
Tested by: Peter Radcliffe <pir@pir.net> (in -stable)
myself in -current & -stable
MFC in: 3 days
Notes:
svn path=/head/; revision=110531
|
| |
|
|
|
|
|
|
|
|
| |
but not quite. The memory descriptors and most of the card parameters
need to be writen to the card.
MFC in: 3 days
Notes:
svn path=/head/; revision=110362
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Implement TX power control with hints to code in Linux driver
by Douglas S. J. De Couto <decouto@lcs.mit.edu>
- Update ifmedia support to use ieee80211_rate2media and
ieee80211_media2rate. Note doesn't work with stock ifconfig
since there seems to be an issue with the setmedia code.
"ancontrol -t" works now, before it did nothing.
- Fix spelling error in header.
Notes:
svn path=/head/; revision=110253
|
| |
|
|
|
|
|
| |
Questioned by: phk (for the indentation problem)
Notes:
svn path=/head/; revision=110104
|
| |
|
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Notes:
svn path=/head/; revision=109623
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
work. The interface was gleaned from the Linux driver. Currently only
one RX & one TX buffer are used. Firmware support is not tested so for the
MPI-350 so it is disabled. Signal cache and monitor mode are not supported
yet. Signal cache is not supported since in encapsulation mode ethernet
frames are returned by the chip. LAN monitor mode support will be added
shortly. Thanks to Warner for the MPI-350 card he sent me.
Add support for RSSI map from PR kern/32880 which was incomplete. Enhanced
with the ability to select the cache mode of raw, dbm or per-cent.
Clean up Signal/Noise/Quality structures and units with help from
Marco Molteni.
Change flash to use a malloc'ed buffer when needed.
PR: kern/32880
Submitted by: Douglas S. J. De Couto decouto@pdos.lcs.mit.edu,
Marco Molteni
MFC: 3 weeks
Notes:
svn path=/head/; revision=108401
|
| |
|
|
|
|
|
|
|
| |
cards.
Reviewed by: imp (if_wi)
Notes:
svn path=/head/; revision=108259
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o don't strip the Ethernet header from inbound packets; pass packets
up the stack intact (required significant changes to some drivers)
o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN)
o track ether_ifattach/ether_ifdetach API changes
o track bpf changes (use BPF_TAP and BPF_MTAP)
o track vlan changes (ifnet capabilities, revised processing scheme, etc.)
o use if_input to pass packets "up"
o call ether_ioctl for default handling of ioctls
Reviewed by: many
Approved by: re
Notes:
svn path=/head/; revision=106937
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106512
|
| |
|
|
|
|
|
|
|
| |
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
Notes:
svn path=/head/; revision=104094
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103870
|
| |
|
|
| |
Notes:
svn path=/head/; revision=100770
|
| |
|
|
|
|
|
|
|
|
| |
most cases NULL is passed, but in some cases such as network driver locks
(which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used.
Tested on: i386, alpha, sparc64
Notes:
svn path=/head/; revision=93818
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
general cleanup of the API. The entire API now consists of two functions
similar to the pre-KSE API. The suser() function takes a thread pointer
as its only argument. The td_ucred member of this thread must be valid
so the only valid thread pointers are curthread and a few kernel threads
such as thread0. The suser_cred() function takes a pointer to a struct
ucred as its first argument and an integer flag as its second argument.
The flag is currently only used for the PRISON_ROOT flag.
Discussed on: smp@
Notes:
svn path=/head/; revision=93593
|
| |
|
|
| |
Notes:
svn path=/head/; revision=92739
|
| |
|
|
|
|
|
|
|
| |
of the things they do, shouldn't be done by normal users.
MFC after: 2 days
Notes:
svn path=/head/; revision=92292
|
| |
|
|
|
|
|
|
|
|
| |
part of an ad-hoc network. This means another station needs to be
around so they can both associate.
MFC after: 1 week
Notes:
svn path=/head/; revision=91283
|
| |
|
|
|
|
|
| |
Submitted by: Kenjiro Cho <kjc@csl.sony.co.jp>
Notes:
svn path=/head/; revision=90990
|
| |
|
|
| |
Notes:
svn path=/head/; revision=89063
|
| |
|
|
|
|
|
|
|
|
| |
Reviewed by: Brooks Davis <brooks@freebsd.org>
Warner Losh <imp@freebsd.org>
Approved by: Brooks Davis <brooks@freebsd.org>
Warner Losh <imp@freebsd.org>
Notes:
svn path=/head/; revision=88749
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a packed array so sizeof work. This broke RFMON mode and passing
up 802.11 packets.
The Linux emulation code was derived from the open source Linux driver to
maintain compatibility.
LEAP support is added, hints from Richard Johnson. I've verified this
locally with PC350v42510.img firmware. More bug fixing from Marco to
fix long passwords.
Change DELAYs in flash part of driver to FLASH_DELAY which uses tsleep
so it doesn't look like your system died during a flash update.
Install header files in /usr/include/dev/an
Cleanup some ifmedia bugs add "Home" key mode to ifmedia and ancontrol.
This way you can manage 2 keys a little easier. Map the home mode into
key 5. Enhance ifconfig to dump the various configured SSIDs. I use
a bunch of different ones and roam between them. Use the syntax similar
to the WEP keys to deal with setting difference SSIDs.
Bump up up the Card capabilities RID since they added 2 bytes to it
in the latest firmware. Thankfully we changed it from a terminal
failure so the card still worked but the driver whined.
Some cleanup patches from Marco Molteni.
Submitted by: Richard Johnson <raj@cisco.com>
Marco Molteni <molter@tin.it>
and myself
Various checks: David Wolfskill <david@catwhisker.org>
Reviewed by: Brooks Davis <brooks@freebsd.org>
Warner Losh <imp@freebsd.org>
Approved by: Brooks Davis <brooks@freebsd.org>
Warner Losh <imp@freebsd.org>
Obtained from: Linux emulation API's from Aironet driver.
Notes:
svn path=/head/; revision=88748
|
| |
|
|
| |
Notes:
svn path=/head/; revision=86386
|
| |
|
|
|
|
|
|
|
|
|
| |
pccard layer and rename them PCMCIA_CARD and PCMCIA_CARD2 respectively
(note, this is being done with an eye towards NetBSD integreation so
it is easier to keep lists of cards between us and them in sync).
Use this in the an and wi drivers.
Notes:
svn path=/head/; revision=86385
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD's an driver (and FreeBSD's /etc/defaults/pccard.conf)
Notes:
svn path=/head/; revision=86384
|
| |
|
|
|
|
|
|
|
| |
PR: 24854
Submitted by: "Sam Habash" <the+xp@llama.com>
(with the mtx fix by Jonathan Chen)
Notes:
svn path=/head/; revision=86382
|
| |
|
|
| |
Notes:
svn path=/head/; revision=86381
|
| |
|
|
|
|
|
|
| |
PR: 31898
Submitted by: Michael Lyngbøl <lyngbol@bifrost.lyngbol.dk>
Notes:
svn path=/head/; revision=86259
|
| |
|
|
| |
Notes:
svn path=/head/; revision=84811
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
Notes:
svn path=/head/; revision=83366
|
| |
|
|
|
|
|
|
| |
after if, for, while, switch, '{', and '}' plus a bunch of bogus
whitespace at the end of lines.
Notes:
svn path=/head/; revision=83270
|
| |
|
|
|
|
|
|
|
|
|
| |
correct mode via ancontrol, you can use bpf to sniff raw 802.11 frames.
Who want's to port AirSnort. ;-)
Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> (author)
David Wolfskill <david@catwhisker.org> (port to current)
Notes:
svn path=/head/; revision=83269
|
| |
|
|
|
|
|
|
|
|
| |
ifnet_addrs[i - 1] -> ifaddr_byindex(i)
ifindex2ifnet[i] -> ifnet_byindex(i)
This is intended to ease the conversion to SMPng.
Notes:
svn path=/head/; revision=83130
|
| |
|
|
|
|
|
|
|
|
| |
slightly from the submitted one.
PR: kern/29415
Submitted by: Bob Fleck <rfleck@cigital.com>
Notes:
svn path=/head/; revision=81221
|
| |
|
|
|
|
|
|
|
| |
PR: kern/29210
Submitted by: Doug Ambrisko <ambrisko@ambrisko.com>
MFC after: 3 days
Notes:
svn path=/head/; revision=80449
|