summaryrefslogtreecommitdiffstats
path: root/sys/dev/an
Commit message (Collapse)AuthorAgeFilesLines
* an driver now needs wlan, so put the required explicit dependsimp2003-02-173-0/+3
| | | | | | into the source. Reviewed by: ambrisko
* - Fixes for suspend/resume code (MPI-350)ambrisko2003-02-082-51/+54
| | | | | | | | | | | | | - 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
* Support for suspend/resume in laptops. Loosely based on the wi(4) patchesambrisko2003-02-053-0/+41
| | | | | | | but not quite. The memory descriptors and most of the card parameters need to be writen to the card. MFC in: 3 days
* Some small enhancmentsambrisko2003-02-022-64/+70
| | | | | | | | | | - 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.
* Fix some style and incorrect indentation level bugs.ambrisko2003-01-301-24/+24
| | | | Questioned by: phk (for the indentation problem)
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-5/+5
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Add support for MPI-350 the mini-pci Cisco Aironet card. This needs moreambrisko2002-12-295-330/+1301
| | | | | | | | | | | | | | | | | | | | | | 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
* Require privilege to flush the signal cache on if_an and if_wi 802.11rwatson2002-12-241-0/+3
| | | | | | cards. Reviewed by: imp (if_wi)
* network interface driver changes:sam2002-11-144-17/+12
| | | | | | | | | | | | | | 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
* Fix warning where sizeof(size_t) != sizeof(int).jhb2002-11-061-1/+1
|
* Be consistent about "static" functions: if the function is markedphk2002-09-281-1/+1
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* use __packed.alfred2002-09-232-2/+2
|
* Fix location and name of if_an_pci.c in comment.fenner2002-07-271-1/+1
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-2/+2
| | | | | | | 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
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-5/+5
| | | | | | | | | | | | 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@
* Remove __P.alfred2002-03-204-52/+50
|
* Only allow super user to perform the Linux compatible ioctls since someambrisko2002-03-141-0/+4
| | | | | | of the things they do, shouldn't be done by normal users. MFC after: 2 days
* In ad-hoc mode, the "associate" bit is valid to check to see if it isambrisko2002-02-261-3/+1
| | | | | | | part of an ad-hoc network. This means another station needs to be around so they can both associate. MFC after: 1 week
* Add missing m_free() so we actually drain the send buffer in monitor mode.brooks2002-02-201-0/+2
| | | | Submitted by: Kenjiro Cho <kjc@csl.sony.co.jp>
* 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
|
OpenPOWER on IntegriCloud