summaryrefslogtreecommitdiffstats
path: root/sys/dev/awi
Commit message (Collapse)AuthorAgeFilesLines
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-15/+15
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct mbuf packet header propagation. Previously, packet headerssam2002-12-302-2/+2
| | | | | | | | | | | | | | | | | | | | | | were sometimes propagated using M_COPY_PKTHDR which actually did something between a "move" and a "copy" operation. This is replaced by M_MOVE_PKTHDR (which copies the pkthdr contents and "removes" it from the source mbuf) and m_dup_pkthdr which copies the packet header contents including any m_tag chain. This corrects numerous problems whereby mbuf tags could be lost during packet manipulations. These changes also introduce arguments to m_tag_copy and m_tag_copy_chain to specify if the tag copy work should potentially block. This introduces an incompatibility with openbsd which we may want to revisit. Note that move/dup of packet headers does not handle target mbufs that have a cluster bound to them. We may want to support this; for now we watch for it with an assert. Finally, M_COPYFLAGS was updated to include M_FIRSTFRAG|M_LASTFRAG. Supported by: Vernier Networks Reviewed by: Robert Watson <rwatson@FreeBSD.org>
* network interface driver changes:sam2002-11-142-13/+6
| | | | | | | | | | | | | | 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
* Repeat after me: sizeof(int) != sizeof(void *).jhb2002-11-061-1/+1
|
* Remove empty #if*/#endif clauses.phk2002-09-212-4/+0
|
* Use __FreeBSD_version to test what things to useimp2002-05-312-10/+11
|
* Make this build on 4.x machines again (building a -current kernel on aimp2002-04-193-36/+27
| | | | | | | | | | | | -stable machine via the old-school methods): Use __FreeBSD_version in preference to __FreeBSD__ >= N where possible. Define a single variable mythread which is set to curproc or curthread depending on the OS version (with a comment saying it is a white lie on 4.x since it really is a proc). NB: __FreeBSD__ is the OS level of the host machine, not the target, and should never be used, if possible, as __FreeBSD__ >= N.
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-013-0/+28
| | | | | | | | | | | | 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-206-106/+106
|
* Set ifp->if_name to "awi" instead of device_get_name(dev) to avoidbrooks2002-02-261-1/+1
| | | | casting away a const qualifier so the awi driver compiles.
* Add NEWCARD support to awi.imp2001-11-191-3/+36
| | | | Devices obtained from NetBSD (+ zoom air 4000, which I added).
* KSE Milestone 2julian2001-09-123-0/+3
| | | | | | | | | | | | | | 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
* The information about how to integrate this driver into BSDs is obsoleted,onoe2001-06-261-60/+0
| | | | and no longer needed.
* Fix capability information in association request to reflect ESS/IBSS mode.onoe2001-06-261-5/+9
| | | | | This fix is required to interoperate with Cisco's access point. Obtained from: NetBSD current
* Fix keyid bit position of encrypted packet to make non-first key usable.onoe2001-06-261-2/+2
| | | | Obtained from: NetBSD current
* Fix previous enhancement to add support for new ifconfig interface.onoe2001-06-261-53/+35
|
* Currently, each wireless networking driver has it's own control programphk2001-05-261-0/+181
| | | | | | | | | | | | 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>
* Convert if_multiaddrs from LIST to TAILQ so that it can be traversedphk2001-02-061-1/+1
| | | | | | backwards in the three drivers which want to do that. Reviewed by: mikeh
* Another round of the <sys/queue.h> FOREACH transmogriffer.phk2001-02-041-8/+4
| | | | | Created with: sed(1) Reviewed by: md5(1)
* Note new location of if_wavelan_ieee.h.wollman2001-01-091-1/+1
|
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-12/+7
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-293-3/+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>.
* Remove unneeded #include <machine/clock.h>phk2000-10-154-4/+0
|
* awi needs to access memory with 8bit,onoe2000-10-101-0/+9
| | | | | | | | but pccardd apparently maps memory with MDF_16BITS flag. So memory mapped access is disabled and use IO port instead for now. This fixes the problem for config index 0x01 in the pccard.conf with the message: "awi0: failed to complete selftest (timeout)"
* Bite the bullet and provde memcmp() and memset(), this will be cheaperphk2000-09-021-16/+0
| | | | than all the copy&paste versions we already have :-(
* awictl configuration interface is never used and now it is replaced byonoe2000-08-141-72/+0
| | | | wicontrol(8).
* Add support for WEP functionality.onoe2000-08-144-369/+1629
| | | | | | | Add support for wi(4) compatible configuration interface. It enables wicontrol(8) to configure some 802.11 specific parameters. Some minor fixes from NetBSD. Obtained from: NetBSD current
* This file contains a shim just for NetBSD, and not used in FreeBSD at all.onoe2000-08-141-445/+0
|
* Remove the awi(4) manual page from the sys/ hierarchy after a repo-sheldonh2000-07-231-154/+0
| | | | | copy to share/man/man4 . The file is still not connected to the build from that directory either.
* Make all Ethernet drivers attach using ether_ifattach() and detach usingarchie2000-07-132-6/+3
| | | | | | | | | 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
* We always provide the bpf hooks. Remove #include "bpf.h"/NBPF.peter2000-06-101-2/+1
|
* Fix a panic resulting from an obvious null pointer deref.guido2000-05-291-1/+4
| | | | | Apparently some other panics still exist in this driver, but with this fix, it was at least possible to run the Nokia card at SANE 2000.
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Use the rman_get_bustag() and rman_get_bushandle() functions.nyan2000-05-191-9/+6
|
* Move code to handle BPF and bridging for incoming Ethernet packets outarchie2000-05-141-0/+2
| | | | | | | | | | | | | | | 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 unneeded #include <sys/kernel.h>phk2000-04-291-1/+0
|
* Provide mem* for compat with NetBSD to fix LINTimp2000-04-172-3/+15
|
* Awi driver, ported from NetBSD from Atsushi Once-san.imp2000-04-0611-0/+5049
From the README: Any IEEE 802.11 cards use AMD Am79C930 and Harris (Intersil) Chipset with PCnetMobile firmware by AMD. BayStack 650 1Mbps Frequency Hopping PCCARD adapter BayStack 660 2Mbps Direct Sequence PCCARD adapter Icom SL-200 2Mbps Direct Sequence PCCARD adapter Melco WLI-PCM 2Mbps Direct Sequence PCCARD adapter NEL SSMagic 2Mbps Direct Sequence PCCARD adapter Netwave AirSurfer Plus 1Mbps Frequency Hopping PCCARD adapter Netwave AirSurfer Pro 2Mbps Direct Sequence PCCARD adapter Known Problems: WEP is not supported. Does not create IBSS itself. Cannot configure the following on FreeBSD: selection of infrastructure/adhoc mode ESSID ... Submitted by: Atsushi Onoe <onoe@sm.sony.co.jp>
OpenPOWER on IntegriCloud