summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
Commit message (Collapse)AuthorAgeFilesLines
* Staticise the flash buffer, since it isn't needed anywhere else.msmith2002-01-081-1/+1
|
* Save stack space by converting areq in sc->areq.ambrisko2001-12-311-88/+84
| | | | | | | Reviewed by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org> Approved by: Brooks Davis <brooks@freebsd.org> Warner Losh <imp@freebsd.org>
* Fix bugs in the structure for rx_frame by making gap length one byte andambrisko2001-12-313-42/+722
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Minor style problem I introduced recentlyimp2001-11-151-4/+4
|
* Hoist the Card/Card2 macros that I invented for the wi driver intoimp2001-11-151-9/+4
| | | | | | | | 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.
* Add PC4500 and 350 for newer cards in this line.imp2001-11-151-3/+9
| | | | Obtained from: NetBSD's an driver (and FreeBSD's /etc/defaults/pccard.conf)
* Add NEWCARD support for aironet stuff.imp2001-11-151-2/+32
| | | | | | PR: 24854 Submitted by: "Sam Habash" <the+xp@llama.com> (with the mtx fix by Jonathan Chen)
* Fix comments about 'current' state of hardware/softwareimp2001-11-151-4/+1
|
* fix typo.phk2001-11-111-1/+1
| | | | | PR: 31898 Submitted by: Michael Lyngbøl <lyngbol@bifrost.lyngbol.dk>
* Add missing includes of sys/lock.h.jhb2001-10-112-0/+2
|
* KSE Milestone 2julian2001-09-121-0/+1
| | | | | | | | | | | | | | 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
* Lots of style(9) related white space fixes. Mostly missing spacesbrooks2001-09-106-122/+149
| | | | | after if, for, while, switch, '{', and '}' plus a bunch of bogus whitespace at the end of lines.
* Add support for monitor mode. This means that after enabling thebrooks2001-09-101-93/+255
| | | | | | | | 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)
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-1/+1
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Add PCI ID for Cisco Aironet 350 Series cards. The patch differsbrooks2001-08-061-0/+2
| | | | | | | slightly from the submitted one. PR: kern/29415 Submitted by: Bob Fleck <rfleck@cigital.com>
* Cleanup duplication in Aironet headersbrooks2001-07-272-492/+74
| | | | | | PR: kern/29210 Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> MFC after: 3 days
* Fix a number of bugs in the implementation of the WEP related statusbrooks2001-06-223-67/+156
| | | | | | | | | | | | | functions in ifconfig. "ifconfig an0" should output the correct status now. Also, make the read and write functions both more robust and more consistant. This should stop most of the incorrect size complaints and eliminate the possiability of panics from firmware that increases resource sizes. PR: kern/27826 Reviewed by: imp, jlemon Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> David Wolfskill <dhw@whistle.com>
* Fix warnings:peter2001-06-151-1/+0
| | | | | 1831: warning: unused variable `noise' 1831: warning: unused variable `sig'
* Currently, each wireless networking driver has it's own control programphk2001-05-266-5/+508
| | | | | | | | | | | | despite the fact that most people want to set exactly the same settings regardless of which card they have. It has been repeatidly suggested that this configuration should be done via ifconfig. This patch implements the required functionality in ifconfig and add support to the wi and an drivers. It also provides partial, untested support for the awi driver. PR: 25577 Submitted by: Brooks Davis <brooks@one-eyed-alien.net>
* Catch up to header include changes:jhb2001-03-281-0/+1
| | | | | - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
* A few fixes..archie2001-03-233-39/+15
| | | | | | | | | | | | | 1 Make promiscuous mode work 2 A few header additions 3 Allow device config before IFF_UP These were (respectively)... Submitted by: Allan Saddi <asaddi@philosophysw.com> Submitted by: Dave Cornejo <dave@dogwood.com> Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> Tested by: David Wolfskill <dhw@whistle.com>
* change the default mode from adhoc to bss (infrastructure)assar2001-03-121-1/+1
| | | | Reviewed by: Brooks Davis <brooks@one-eyed-alien.net>
* Change and clean the mutex lock interface.bmilekic2001-02-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtx_enter(lock, type) becomes: mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized) similarily, for releasing a lock, we now have: mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument. The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind. Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two: MTX_QUIET and MTX_NOSWITCH The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers: mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively. Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case. Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled. Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those. Finally, caught up to the interface changes in all sys code. Contributors: jake, jhb, jasone (in no particular order)
* Implement MTX_RECURSE flag for mtx_init().bmilekic2001-01-191-1/+2
| | | | | | | | | | | | | | | | | | | All calls to mtx_init() for mutexes that recurse must now include the MTX_RECURSE bit in the flag argument variable. This change is in preparation for an upcoming (further) mutex API cleanup. The witness code will call panic() if a lock is found to recurse but the MTX_RECURSE bit was not set during the lock's initialization. The old MTX_RECURSE "state" bit (in mtx_lock) has been renamed to MTX_RECURSED, which is more appropriate given its meaning. The following locks have been made "recursive," thus far: eventhandler, Giant, callout, sched_lock, possibly some others declared in the architecture-specific code, all of the network card driver locks in pci/, as well as some other locks in dev/ stuff that I've found to be recursive. Reviewed by: jhb
* Fixes to the Aironet driver to clear up some WEP issues.archie2000-12-082-2/+5
| | | | | PR: 23097 Submitted by: Doug Ambrisko <ambrisko@whistle.com>
* remove unneded sys/ucred.h includesalfred2000-11-301-1/+0
|
* Close PR# 21843 and PR# 21864. This adds support for WEP and updates somewpaul2000-11-133-12/+121
| | | | | | | | | | | | | | | of the data structures to include new members that weren't defined in the manual I have. I opted to use Doug Ambrisko's WEP patches since David Cornejo's patches did not include the necessary changes to ancontrol(8) to actually enable and use WEP. NOTE: I don't currently have access to an Aironet card, so I can't test any of this. Everything compiles and close scrutiny doesn't reveal any obvious problems, but Murphy's Law applies. This means I will probably leave these changes in -current for a bit longer than usual until I'm sure they work right.
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* Catch up to moving headers:jhb2000-10-203-3/+3
| | | | | - machine/ipl.h -> sys/ipl.h - machine/mutex.h -> sys/mutex.h
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Remember to assign an_dev to device_t before calling an_attach().wpaul2000-10-133-0/+13
|
* Convert the Aironet driver to use mutexes instead of spls.wpaul2000-10-134-28/+59
|
* MF4: fix style(9) whitespace breakage.peter2000-08-081-3/+3
|
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-134-7/+5
| | | | | | | | | ether_ifdetach(). The former consolidates the operations of if_attach(), ng_ether_attach(), and bpfattach(). The latter consolidates the corresponding detach operations. Reviewed by: julian, freebsd-net
* - Add suser check before SIOCSAIRONET.roberto2000-06-181-3/+10
| | | | | | - Fix a splimp() w/o splx bug in the ioctl routine while I'm here. Submitted by: Aaron Campbell <aaron@openbsd.org>
* Oops, nearly forgot to commit this one. Use correct register names, orpeter2000-05-281-3/+3
| | | | this will not compile without COMPAT_OLDPCI.
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-141-13/+0
| | | | | | | | | | | | | | | of the individual drivers and into the common routine ether_input(). Also, remove the (incomplete) hack for matching ethernet headers in the ip_fw code. The good news: net result of 1016 lines removed, and this should make bridging now work with *all* Ethernet drivers. The bad news: it's nearly impossible to test every driver, especially for bridging, and I was unable to get much testing help on the mailing lists. Reviewed by: freebsd-net
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-193-3/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
* Remove unloaded printf. We do this now in the newbus layer.imp2000-04-171-1/+0
|
* Fix an instance of rman_get_start() than should be rman_get_bushandle().wpaul2000-01-161-1/+1
|
* Actually read the PCI device ID when testing the device ID value againstwpaul2000-01-151-1/+1
| | | | the supported devices list.
* Add driver support for the Aironet 4500/4800 series wireless 802.11wpaul2000-01-146-0/+3444
NICs. (Finally!) The PCMCIA, ISA and PCI varieties are all supported, though only the ISA and PCI ones will work on the alpha for now. PCCARD, ISA and PCI attachments are all provided. Also provided an ancontrol(8) utility for configuring the NIC, man pages, and updated pccard.conf.sample. ISA cards are supported in both ISA PnP and hard-wired mode, although you must configure the kernel explicitly to support the hardwired mode since you have to know the I/O address and port ahead of time. Special thanks to Doug Ambrisko for doing the initial newbus hackery and getting it to work in infrastructure mode.
OpenPOWER on IntegriCloud