summaryrefslogtreecommitdiffstats
path: root/sys/dev/awi
Commit message (Collapse)AuthorAgeFilesLines
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-1/+1
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* In FreeBSD, we don't need sc_power callbackkevlo2006-12-121-1/+1
| | | | Approved by: cognet and imp
* tweak commentimp2006-10-191-1/+2
|
* add missed calls to bpf_peers_presentsam2006-06-021-3/+2
|
* Remove support for oldcard by removing compat shims.imp2005-09-201-24/+4
|
* Make sure that we call if_free(ifp) after bus_teardown_intr. Since weimp2005-09-191-3/+1
| | | | | | | could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call.
* fix handling of the current channel (missed in previous commit)sam2005-08-131-4/+5
|
* Propagate rename of IFF_OACTIVE and IFF_RUNNING to IFF_DRV_OACTIVE andrwatson2005-08-091-6/+6
| | | | | | | | | | | | | | IFF_DRV_RUNNING, as well as the move from ifnet.if_flags to ifnet.if_drv_flags. Device drivers are now responsible for synchronizing access to these flags, as they are in if_drv_flags. This helps prevent races between the network stack and device driver in maintaining the interface flags field. Many __FreeBSD__ and __FreeBSD_version checks maintained and continued; some less so. Reviewed by: pjd, bz MFC after: 7 days
* Cleanup beacon/listen interval handling:sam2005-08-081-1/+1
| | | | | | | | | | | | | | | | | o separate configured beacon interval from listen interval; this avoids potential use of one value for the other (e.g. setting powersavesleep to 0 clobbers the beacon interval used in hostap or ibss mode) o bounds check the beacon interval received in probe response and beacon frames and drop frames with bogus settings; not clear if we should instead clamp the value as any alteration would result in mismatched sta+ap configuration and probably be more confusing (don't want to log to the console but perhaps ok with rate limiting) o while here up max beacon interval to reflect WiFi standard Noticed by: Martin <nakal@nurfuerspam.de> MFC after: 1 week
* Modify device drivers supporting multicast addresses to lock if_addr_mtxrwatson2005-08-031-1/+5
| | | | | | | | over iteration of their multicast address lists when synchronizing the hardware address filter with the network stack-maintained list. Problem reported by: Ed Maste (emaste at phaedrus dot sandvine dot ca> MFC after: 1 week
* diff reduction against p4: define IEEE80211_FIXED_RATE_NONE and usesam2005-07-221-2/+2
| | | | it instead of -1
* Eliminate unused argument in PCMCIA_CARD macro.imp2005-06-241-8/+8
| | | | | | | | Provide a backwards compatible way to have the extra macro by defining PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that want/need to have the same driver on 5 and 6 with pccard attachments. Approved by: re (dwhite)
* Stop embedding struct ifnet at the top of driver softcs. Instead thebrooks2005-06-102-21/+20
| | | | | | | | | | | | | | | | | | | | struct ifnet or the layer 2 common structure it was embedded in have been replaced with a struct ifnet pointer to be filled by a call to the new function, if_alloc(). The layer 2 common structure is also allocated via if_alloc() based on the interface type. It is hung off the new struct ifnet member, if_l2com. This change removes the size of these structures from the kernel ABI and will allow us to better manage them as interfaces come and go. Other changes of note: - Struct arpcom is no longer referenced in normal interface code. Instead the Ethernet address is accessed via the IFP2ENADDR() macro. To enforce this ac_enaddr has been renamed to _ac_enaddr. - The second argument to ether_ifattach is now always the mac address from driver private storage rather than sometimes being ac_enaddr. Reviewed by: sobomax, sam
* Remove bus_{mem,p}io.h and related code for a micro-optimization on i386nyan2005-05-291-4/+0
| | | | | | and amd64. The optimization is a trivial on recent machines. Reviewed by: -arch (imp, marcel, dfr)
* reclaim mbuf chain when ieee80211_crypto_encap failssam2005-03-081-0/+1
| | | | Noticed by: David Young
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Update for net80211 changes.sam2004-12-082-79/+89
|
* Since if_awi doesn't contain locking or run with INTR_MPSAFE, markrwatson2004-08-131-1/+1
| | | | the interface as IFF_NEEDSGIANT so if_start is run holding Giant.
* Link ALTQ to the build and break with ABI for struct ifnet. Please recompilemlaier2004-06-131-0/+2
| | | | | | | | | | | | your (network) modules as well as any userland that might make sense of sizeof(struct ifnet). This does not change the queueing yet. These changes will follow in a seperate commit. Same with the driver changes, which need case by case evaluation. __FreeBSD_version bump will follow. Tested-by: (i386)LINT
* Fix disordering of pccarddevs.h noticed by bde. Also remove a fewimp2004-05-271-1/+2
| | | | | | redundant includes and fix some of the include disordering. Submitted by: bde
* Move to generating pccarddevs.h on the fly, both for the kernel andimp2004-05-261-1/+1
| | | | | | | the modules. Also generate usbdevs.h automatically now, but a non-kernel file is stopping that at the moment.
* It turns out that the module dependency on pccard is in error. Sinceimp2004-05-081-1/+0
| | | | | | | | | | | | there's not dependencies on pccard symboles, such a dependency is not necessary. This means that drivers that have multiple attachments can not drag bogus devices into the kernel at load time. We can't (yet) do this with pci and isa. Drivers written for them actually do seem to have symbols that depend on these busses' implementation code. ndis not touched until other things can be tested.
* Use IFF_ALLMULTI instead of if_amcount to decide if all multicast shouldonoe2004-04-181-5/+10
| | | | be received. Pointed out by Luigi Rizzo.
* Don't announce MAC addresses twice.mdodd2004-03-201-2/+0
| | | | (ieee80211_ifattach() calls ether_ifattach().)
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Correct beacon (src/bssid) for hostap and adhoc mode.onoe2004-01-151-7/+30
|
* Use generic net80211 framework for awi driver.onoe2004-01-159-3693/+1615
| | | | | | Restore awi to be workable again; it was broken.. XXX: The initialization is still unreliable yet, it sometimes fails on some card.
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-4/+3
| | | | | | | | | | | | | 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)
* ifp->if_name can't be null when we just assigned a static string to it.brooks2003-10-301-5/+0
|
* Fix off-by-one error in array bounds check.phk2003-09-051-1/+1
|
* Use __FBSDID().obrien2003-08-245-23/+22
| | | | Also some minor style cleanups.
* update for new 802.11 supportsam2003-06-285-4/+33
|
* Explicitly declare 'int' parameters.obrien2003-04-211-0/+1
|
* Make sure that pp_name is non-null before setting the deviceimp2003-04-101-1/+2
| | | | | description. This allows us to rely entirely on the CIS entries if necessary...
* Added missing dependency on rc4.ru2003-03-211-0/+1
| | | | Reviewed by: imp
* Back out M_* changes, per decision of the TRB.imp2003-02-192-15/+15
| | | | Approved by: trb
* 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
OpenPOWER on IntegriCloud