aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/rtwn/pci
Commit message (Collapse)AuthorAgeFilesLines
* rtwn: clean up empty lines in .c and .h filesMateusz Guzik2020-09-015-6/+0
| | | | Notes: svn path=/head/; revision=365097
* Add MODULE_PNP_INFO() to autoload the rtwn_pci(4) kernel module.Hiroki Sato2020-02-272-6/+8
| | | | | | | | | Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D23807 Notes: svn path=/head/; revision=358402
* Widen EPOCH(9) usage in PCI WLAN drivers.Hans Petter Selasky2020-01-301-0/+5
| | | | | | | | | | | | | | Make sure all occurrences of ieee80211_input_xxx() in sys/dev are covered by a network epoch section. Do not depend on the interrupt handler nor any taskqueues being in a network epoch section. This patch should unbreak the PCI WLAN drivers after r357004. Pointy hat: glebius@ Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=357291
* rtwn_pci: add device ID for RTL8192CE.Andriy Voskoboinyk2019-08-121-0/+1
| | | | | | | | | | PR: 239795 Submitted by: James Parsons <james.m.parsons@protonmail.com> MFC after: 1 week Relnotes: yes Notes: svn path=/head/; revision=350885
* net80211: reuse TICKS_2_MSEC / MSEC_2_TICKS macros from sys/time.hAndriy Voskoboinyk2019-01-251-1/+1
| | | | | | | | | | | Replace in-place implementation with system-wide one; since it guarantees non-zero result drop all less-than-one checks from drivers and net80211. MFC after: 2 weeks Notes: svn path=/head/; revision=343417
* rtwn_pci(4): fix panic with INVARIANTS (due to inverted assertion logic)Andriy Voskoboinyk2019-01-021-1/+1
| | | | | | | MFC after: 4 days Notes: svn path=/head/; revision=342700
* rtwn_pci(4): add support for RTL8188EE chipset.Andriy Voskoboinyk2019-01-021-1/+5
| | | | | | | | | | | | | Initially based on https://reviews.freebsd.org/D15692; later deduplicated and improved a bit (Tx reports, IQ calibration support). Submitted by: Farhan Khan <khanzf@gmail.com> MFC after: 4 days Relnotes: yes Differential Revision: https://reviews.freebsd.org/D15692 Notes: svn path=/head/; revision=342682
* rtwn_pci(4): add support for event-based Tx reports.Andriy Voskoboinyk2019-01-022-18/+114
| | | | | | | | | It will be used for RTL8188EE (and, probably, others). MFC after: 4 days Notes: svn path=/head/; revision=342677
* rtwn_pci(4): use proper bus_dmamap_sync flags after Tx (sync with r342672)Andriy Voskoboinyk2019-01-021-1/+2
| | | | | | | MFC after: 4 days Notes: svn path=/head/; revision=342676
* rtwn_pci: fix excessive packet loss on Tx with RTL8188EE.Andriy Voskoboinyk2019-01-011-2/+2
| | | | | | | | | | | Use proper flags for bus_dmamap_sync() in Tx path. Tested with: RTL8188EE, STA mode MFC after: 4 days Notes: svn path=/head/; revision=342672
* rtwn: add Rx descriptor structures for common code.Andriy Voskoboinyk2017-07-064-22/+16
| | | | | | | | | | | Remove any chipset specific usage of Rx descriptor structure / bits from common code to prevent misuse of fields that may differ between various chipsets. Checked with: RTL8821AU in STA mode. Notes: svn path=/head/; revision=320725
* rtwn: drop unneeded (after r315583) code.Andriy Voskoboinyk2017-03-191-11/+0
| | | | | | | | Tested with RTL8188EU, HOSTAP mode + RTL8821AU, STA mode (fast-frames / A-MSDU). Notes: svn path=/head/; revision=315584
* rtwn: export more stats to net80211Andriy Voskoboinyk2017-01-171-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Setup more ieee80211_rx_stats fields for received frames: - pktflags: * IEEE80211_RX_F_FAIL_FCSCRC; * IEEE80211_RX_F_AMPDU; * IEEE80211_RX_F_AMPDU_MORE; * IEEE80211_RX_F_SHORTGI; - rate flags (CCK, OFDM, HT); - width; - phytype; - rate; - rx_tsf; - rssi; - nf; - ieee, freq (RTL8188EU only, when ht40 support is disabled). Tested with: - RTL8188CE, RTL8188EU, RTL8821AU (STA / AP modes, i386) - (by kevlo) RTL8188EU and RTL8812AU (amd64) Reviewed by: adrian (previous version), kevlo Differential Revision: https://reviews.freebsd.org/D9021 Notes: svn path=/head/; revision=312315
* rtwn_pci(4): fix possible race while accessing 'matched_chip' variable.Andriy Voskoboinyk2017-01-101-11/+23
| | | | Notes: svn path=/head/; revision=311845
* rtwn: enable 11n support for RTL8188CE.Andriy Voskoboinyk2016-11-123-20/+84
| | | | | | | | | | | | | | | | | | | | | | - Increase Rx buffer size from MCLBYTES to MJUMPAGESIZE. - Provide an additional defragmentation routine for frames larger than MCLBYTES; that is required by A-MSDU / Atheros Fast-Frames support to work with current Tx path implementation. Enabled features list for RTL8188CE: - Atheros Fast-Frames; - A-MPDU (Tx / Rx); - A-MSDU (Tx / Rx; 4k only); - Short Guard Interval. Tested with: - RTL8188CE (STA+AP) + RTL8821AU (STA). - RTL8188CE (STA) + RTL8188CUS (AP). Relnotes: yes Notes: svn path=/head/; revision=308575
* rtwn: add HOSTAP / IBSS mode support for RTL8188CE.Andriy Voskoboinyk2016-11-063-26/+101
| | | | | | | | | | | | | | | | NOTE: some multi-vap configurations (e.g., STA+IBSS) are not stable; that will be fixed later. Tested with: - RTL8188CE, STA + AP mode; - RTL8188CE, IBSS mode; - RTL8188CUS, IBSS mode; - RTL8188EU, IBSS mode. Relnotes: yes Notes: svn path=/head/; revision=308389
* rtwn_pci: omit tx_done() stage if device is not running.Andriy Voskoboinyk2016-11-061-5/+7
| | | | | | | | | | rtwn_usb: drain USB transfers during device shutdown; this fixes possible panic with 'options IEEE80211_SUPPORT_SUPERG' during device detach. Tested with RTL8188CE, STA mode. Notes: svn path=/head/; revision=308384
* rtwn: fix Tx ring cleanup.Andriy Voskoboinyk2016-11-061-30/+94
| | | | | | | | | | | | | Do not try to clear stale Tx descriptor entries when there are some running vaps; just free node references - rtwn_pci_tx_done() will free mbufs without creating holes in the Tx descriptor space. Also, reset only 2 first entries in the beacon ring - other will not be used anyway. Tested with RTL8188CE, STA + STA mode. Notes: svn path=/head/; revision=308381
* rtwn(4), urtwn(4): merge common code, add support for 11ac devices.Andriy Voskoboinyk2016-10-179-0/+1569
All devices: - add support for rate adaptation via ieee80211_amrr(9); - use short preamble for transmitted frames when needed; - multi-bss support: * for RTL8821AU: 2 VAPs at the same time; * other: 1 any VAP + 1 sta VAP. RTL8188CE: - fix IQ calibration bug (reason of significant speed degradation); - add h/w crypto acceleration support. USB: - A-MPDU Tx support; - short GI support; Other: - add support for RTL8812AU / RTL8821AU chipsets (a/b/g/n only; no ac yet); - split merged code into subparts: * bus glue (usb/*, pci/*, rtl*/usb/*, rtl*/pci/*) * common (if_rtwn*) * chip-specific (rtl*/*) - various other bugfixes. Due to code reorganization, module names / requirements were changed too: urtwn urtwnfw -> rtwn rtwn_usb rtwnfw rtwn rtwnfw -> rtwn rtwn_pci rtwnfw Tested with RTL8188CE, RTL8188CUS, RTL8188EU and RTL8821AU. Tested by: kevlo, garga, Peter Garshtja <peter.garshtja@ambient-md.com>, Kevin McAleavey <kevin.mcaleavey@knosproject.com>, Ilias-Dimitrios Vrachnis <id@vrachnis.com>, <otacilio.neto@bsd.com.br> Relnotes: yes Notes: svn path=/head/; revision=307529