summaryrefslogtreecommitdiffstats
path: root/sys/dev/rtwn
Commit message (Collapse)AuthorAgeFilesLines
* rtwn: fix Tx processing, add some busdma synchronization.avos2016-06-201-3/+21
| | | | | | | | | | | 1) Unload mbuf instead of descriptor in rtwn_tx_done(). 2) Add more synchronization for device visible mappings before touching the memory. 3) Improve watchdog timer logic. Reported and tested by: mva Approved by: re (gjb)
* rtwn, urtwn: drop unused structures.avos2016-05-261-19/+0
| | | | | urtwn(4) uses another implementation of command queue; rtwn(4) don't need it at all.
* urtwn, rtwn, rsu: switch to ieee80211_add_channel_list_2ghz().avos2016-05-262-6/+26
| | | | | | - Use device's channel list instead of default one (from ieee80211_init_channels()); adds 12 - 14 2GHz channels. - Add ic_getradiocaps() method.
* rtwn: replace hardcoded rate indices with their names (similar to r289758).avos2016-05-262-43/+63
| | | | | | | | | | - Use macros to define rate indices; don't hardcode them in code. - Add method for 'rate' -> 'rate index' conversion (and array for the opposite). - Determine if rate is CCK / OFDM via appropriate macro. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D4837
* rtwn: fix double free in raw xmit path.avos2016-05-161-1/+0
| | | | Reported by: mva
* net80211 + drivers: hide size of 'bands' array behind a macro.avos2016-04-291-1/+1
| | | | | Auto-replace 'howmany(IEEE80211_MODE_MAX, 8)' with 'IEEE80211_MODE_BYTES'. No functional changes.
* net80211: replace internal LE_READ_*/LE_WRITE_* macro with systemavos2016-04-202-6/+2
| | | | | | | | | | | | | | | | | le*dec / le*enc functions. Replace net80211 specific macros with system-wide bytestream encoding/decoding functions: - LE_READ_2 -> le16dec - LE_READ_4 -> le32dec - LE_WRITE_2 -> le16enc - LE_WRITE_4 -> le32enc + drop ieee80211_input.h include, where it was included for these operations only. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D6030
* rtwn: import r290048.avos2016-02-211-26/+43
| | | | | | | | | | | - Fix scanning from AUTH state. Tested by: Simone Mario Lombardo <evil.lombo@gmail.com> PR: 203105 Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4820
* rtwn: do not start vap when initialization failsavos2016-01-261-20/+27
| | | | | | | | | | | | - Start vap(s) (via ieee80211_start_all()) only when initialization succeeds; stop the first vap otherwise (via ieee80211_stop()); - Do not try to stop a device multiple times (move (sc->sc_flags & RTWN_RUNNING) check to urtwn_stop_locked()). Tested by: kevlo Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5058
* rtwn: use ieee80211_restart_all() for device resetavos2016-01-262-29/+1
| | | | | | | Tested by: kevlo Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D5057
* rtwn: import r290022 (do not filter out control frames in the RX path)avos2016-01-121-4/+8
| | | | | | | Tested by: kevlo Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4838
* rtwn: fix sequence number assignment (part of r290630)avos2016-01-091-1/+1
| | | | | | Reviewed by: kevlo Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D4819
* net80211 drivers: fix ieee80211_init_channels() usageavos2016-01-071-5/+5
| | | | | | | | | | | | | | Fix out-of-bounds read (all) / write (11n capable) for drivers that are using ieee80211_init_channels() to initialize channel list. Tested with: * RTL8188EU, STA mode. * RTL8188CUS, STA mode. * WUSB54GC, HOSTAP mode. Approved by: adrian (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4818
* [rtwn] bring over initial rtwn driver.adrian2015-12-312-0/+5596
This is a port from openbsd. It's incomplete and unstable, but it's better than nothing. I have no plans to MFC this until it's complete and stable. Submitted by: kevlo
OpenPOWER on IntegriCloud