summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/rtw.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wireless drivers call if_input() via ieee80211_input() which set `rcvif'mpi2015-02-101-2/+1
| | | | | | | on every received mbuf, so there's no need to initialize this pointer in the drivers. Tested by and ok phessler@
* unifdef INETtedu2014-12-221-5/+1
|
* Use <sys/endian.h> instead of <machine/endian.h>guenther2014-12-191-2/+2
| | | | ok dlg@ mpi@ bcook@ millert@ miod@
* Some reallocarray() use; review Jean-Philippe Ouellet, patrick keshishianderaadt2014-07-131-2/+2
| | | | ok tedu
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-4/+4
| | | | after discussions with beck deraadt kettenis.
* decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt2014-07-081-3/+1
| | | | | don't need to be married. ok guenther miod beck jsing kettenis
* Stop abusing the rcvif pointer to pass wireless nodes down to thempi2014-03-191-4/+3
| | | | | | | | | | driver start routines. Instead add & use a pointer in the pkthdr since we don't want the overhead of using a mbuf_tags(9). claudio@ pointed out that other subsystems might want to use this pointer too, so here's a new cookie! ok claudio@, mikeb@, deraadt@
* Instead of comparing the lower and higher addresses of all the multicastmpi2013-11-261-10/+6
| | | | | | | | | | | entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-2/+1
| | | | ok guenther millert kettenis
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-36/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* Massage the powerhook functions into activate functions, and then callderaadt2010-08-291-18/+21
| | | | | | them from the powerhook. Fix a few quibbles about the things done for the IFF_RUNNING and IFF_UP cases ok kettenis
* kill PWR_STANDBY (apm can use PWR_SUSPEND instead). While here, renumberderaadt2010-08-271-4/+1
| | | | | | | PWR_{SUSPEND,RESUME} so that they match the values of DAVCT_{SUSPEND,RESUME} so that we can eventually (many more steps...) kill the powerhook garbage and use the activate mechanism. no objections
* kill hooks and timeouts before calling complex sleeping code from detach; ok jsgderaadt2009-11-241-3/+4
|
* remove use of BITS and BIT macrosjsg2009-08-161-7/+7
|
* tweak a switch statement to appease lintjsg2009-08-161-2/+2
|
* More cases of shutdown hooks not needed after card is already stopped. Inderaadt2009-08-101-21/+1
| | | | | | these cases the xxstop function is a bit more complicated and has a flag of some sort, but the use of that flag does not matter; DMA is already ceased ok dlg
* timeout_add -> timeout_add_msecblambert2009-07-281-5/+5
| | | | ok jsg@
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).grange2009-01-211-2/+2
| | | | | | No functional changes. ok krw@ miod@
* Eliminate the redundant bits of code for MTU and multicast handlingbrad2008-11-281-10/+7
| | | | | | | | | | | | | | from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
* fix IEEE80211_RADIOTAP_F_SHORTPREdamien2008-08-271-3/+3
|
* introduce new IEEE80211_STA_ONLY kernel option that can be set todamien2008-08-271-5/+28
| | | | | | | | | remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
* in ieee80211_input(), call if_start() after enqueuing frames in if_snddamien2008-08-141-9/+1
| | | | | | | when acting as an access point instead of having each driver doing the job. tested by krw@ (ral AP) and me with several drivers.
* instead of passing rx tstamp and rssi to the ieee80211_input function,damien2008-07-211-7/+10
| | | | | | | pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
* Kernel implementation of the 4-way handshake and group-keydamien2008-04-161-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
* Remove superfluous function declarationblambert2007-11-211-2/+1
| | | | ok jsg@
* Unconditionally initialize all channels, regardless of locale.blambert2007-10-241-49/+7
| | | | | | Shaves 258 bytes from i386 kernel. Feedback, guidance, testing, and ok jsg@
* s/NPBFILTER/NBPFILTER/ in #endif comment. No functional change.kettenis2007-09-301-3/+3
|
* Only the most obvious bzero() -> M_ZERO changes. No cast changes, nokrw2007-09-171-4/+2
| | | | | MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
* move ieee80211_compute_duration() and ieee80211_compute_duration1()damien2007-06-071-3/+172
| | | | | | | | | | functions into the two drivers that use them (atw and rtw.) this code is not generic enough to be used by other drivers and there is no chance that it will ever be used in newer driver since it supports 802.11b only. plus, it hurts my eyes each time i look into ieee80211_output.c. "fine with me as long as the logic doesn't change in the functions" jsg@
* Correct order of bus_space_barrier() parameters.jsg2007-04-061-2/+2
| | | | From brad
* Similar to other drivers call if_start() at the end of the rx interrupt becauseclaudio2007-04-021-1/+9
| | | | | ieee80211_input() may enqueue packets. OK jsg@
* remove some unused goopjsg2007-02-141-18/+3
|
* M_DUP_PKTHDR() cleanup. On static buffers M_DUP_PKTHDR() will leak mbuf tags.claudio2007-01-031-5/+7
| | | | See similar rum(4) commit for more info. OK mglocker@
* Make use of ieee80211_std_ratesetjsg2006-11-261-10/+3
|
* Return from channel tuning code if we get IEEE80211_CHAN_ANYjsg2006-08-301-3/+3
| | | | | | | | | | as per other drivers instead of doing panics. Should workaround PR 5206 which I could never manage to reproduce, though we really shouldn't be getting IEEE80211_CHAN_ANY here. ok deraadt@
* allow bpf(4) to ignore packets based on their direction (inbound ordjm2006-03-251-5/+6
| | | | | outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
* Add a fix from David Young to not set the ring indexes to somethingjsg2006-02-051-3/+3
| | | | obviously invalid, which can occur when ejecting a CardBus rtw.
* rev 1.59 & 1.60 of rtw.c commited by David Young to NetBSD:jsg2006-01-051-5/+4
| | | | | | | | On a transmit FIFO overflow (err, actually an underflow...) reset both the transmit & receive sections of the MAC. Fix comments and debug printfs: Tx FIFOs underflow, they don't overflow.
* part of rev 1.58 of rtw.c David Young comitted to NetBSD:jsg2006-01-051-121/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | Miscellaneous Realtek RTL8180L driver improvements: 3 Revamp handling of transmit descriptor rings. 4 Reliably IFF_OACTIVE when transmit descriptors are available, to stop the transmit section of the driver from freezing up. 5 Fix beacon transmission in adhoc and hostap modes. XXX There is a wart in hostap mode, where beacons are transmitted at 1/2 the correct rate. Load beacon descriptors when the RTW_INTR_BINT interrupt arrives; schedule RTW_INTR_BINT 1ms ahead of the target beacon time. 6 Recover more gracefully from tx/rx errors: avoid transmitter/receiver/chip resets. Try to re-synchronize software state with hardware state---e.g., load next descriptor pointer from hardware. 7 Activate the transmit watchdog timer for beacons as well as other packets. 8 Introduce rtw_idle() that waits for transmit DMA to finish; call it before resetting the transmitter.
* Add support for GCT GRF5101 RF transceiver based hardware. Magic numbersjsg2005-11-201-8/+132
| | | | | | partially derived from rtl8180-sa2400 Linux driver. GCT refuse to release documentation so this is more than likely not as optimal as it could be.
* Move displaying rf/pa type to rtw_rf_attach to simplify code.jsg2005-11-051-48/+38
| | | | ok reyk@
* remove uneeded debug function.jsg2005-11-041-27/+3
|
* Move access to RF tranceiver functions to be via callbacks.jsg2005-11-041-79/+22
| | | | "looks fine" reyk@
* change read/write callbacks to use a void * instead of struct rtw_regs.reyk2005-10-241-15/+22
| | | | | | | | why? rtw uses the smc93cx6 EEPROM and a separate diff will allow accessing it without depending on the bus_space_* functions. this is required for the RTL8187L. discussed with jsg@
* fix RTW_DEBUGreyk2005-10-241-2/+2
|
* change RTW_ANAPARM to RTW_ANAPARM_0 for consistency with the rtl8225 code.reyk2005-10-241-13/+13
| | | | ok jsg@
* Move rtw_attach error condition handling out of rtw_detach and intojsg2005-10-231-93/+55
| | | | rtw_attach simplifying things in the process. ok reyk@
* use read/write/barrier callbacks, will be used laterreyk2005-10-231-1/+64
| | | | ok jsg@
* knfreyk2005-10-231-6/+7
|