Adrian Chadd
42946b7dbc
Fix active/passive dwell calculation.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:56:36 +00:00
Adrian Chadd
3289bbc9e3
Turn off led when leaving RUN state.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:55:06 +00:00
Adrian Chadd
3d9089a6f1
Add TX status codes (obtained from iwlegacy)
...
PR: kern/197143
Differential Revision: Andriy Voskoboinyk <s3erios@gmail.com>
Obtained from: Linux drivers/net/wireless/iwlegacy
2015-05-03 22:49:47 +00:00
Adrian Chadd
b3cd88da75
Move radiooff_task to the internal taskqueue.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:47:06 +00:00
Adrian Chadd
e948ddb6d1
Use another workaround for scanning.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:43:45 +00:00
Adrian Chadd
621f1a7594
Add wpi_check_bss_filter()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:34:32 +00:00
Adrian Chadd
205cb272ea
Fix KASSERT statements in if_wpi_debug.h
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:32:45 +00:00
Adrian Chadd
b625a56aae
Remove workaround for bug 199676.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:30:11 +00:00
Adrian Chadd
6b997e0c7d
Add a few local variables to improve readability.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:13:55 +00:00
Adrian Chadd
2ead385419
Remove this; it's currently a no-op.
...
History note: it's good to document what the driver expects like this even
if it's currently a no-op.
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:10:28 +00:00
Adrian Chadd
30b6048179
Retry twice at the same rate.
...
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 20:56:33 +00:00
Adrian Chadd
02d4991526
Do not access peripheral before clock stabilization.
...
Tested:
* Intel 3945ABG NIC, STA mode
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-04-09 04:56:24 +00:00
Adrian Chadd
655e8ba806
Fix buffer overflow introduced in previous commits (unbreaks 802.11a capable NICs).
...
Tested:
* PCIe Intel 3945ABG NIC
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-04-09 04:51:39 +00:00
Konstantin Belousov
69a2ec4a19
Fix build with clang 3.6, silence -Wcast-qual warning.
...
Sponsored by: The FreeBSD Foundation
Acked by: adrian
2015-03-15 23:05:36 +00:00
Adrian Chadd
e2ad437112
Add a new taskqueue (device specific, not net80211 ic->tq); use it for
...
device restart.
(Committers note - once scan overhaul and a few other things have been
fixed in net80211 to not block things in the taskqueue, this can disappear
and the device specific taskqueues in other drivers can also go away.)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:32:11 +00:00
Adrian Chadd
a5403e3157
Workaround delays caused by vmem_check().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:30:20 +00:00
Adrian Chadd
2e79e29307
Fix scan timeouts with powersave enabled.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:29:36 +00:00
Adrian Chadd
fd06b53774
Don't unlock mutex in interrupt thread (except for wpi_rx_done() - for now) -
...
fixes various races between wpi_notif_intr() and wpi_stop_locked().
(attachment 154381)
Committers note: yes, unlock/if_input/lock has to go away, but that'll
have to be done later.
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:29:18 +00:00
Adrian Chadd
062c813943
Reformatting changes.
...
(attachment 154380)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:27:50 +00:00
Adrian Chadd
b52207dbd2
Use correct types
...
(attachment 154379)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:27:03 +00:00
Adrian Chadd
5effcbfd6c
Add another lock for the TX path.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:26:22 +00:00
Adrian Chadd
fc5870b418
Add an extra mutex for qfullmsk / ring->queued variables.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:25:06 +00:00
Adrian Chadd
a6b6ca52c6
Regroup ring state checks in wpi_tx_done().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:24:11 +00:00
Adrian Chadd
84ad7b3667
Don't use sc->qfullmsk in wpi_start().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:23:45 +00:00
Adrian Chadd
d74e544a1d
turn sc_tx_timeout into its own callout, rather than a global watchdog
...
timer.
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:22:03 +00:00
Adrian Chadd
446685e49c
Add mutex for RXON structure; convert some callouts/lock use to use
...
RXON rather than the global WPI lock.
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:20:58 +00:00
Adrian Chadd
9e7aab73cd
Use WPI_FILTER_BSS for checking current state.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:19:52 +00:00
Adrian Chadd
0bc39fc6f8
Split TX and scan timeouts; use a callout now for the scan timeout.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:19:15 +00:00
Adrian Chadd
726ddc2648
Add experimental HOSTAP support.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:18:18 +00:00
Adrian Chadd
8483c8c339
Merge wpi_start() and wpi_start_locked().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:17:58 +00:00
Adrian Chadd
7d4ee533d4
Minor optimisation in wpi_limit_dwell()
...
PR: kenr/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:17:03 +00:00
Adrian Chadd
cfe9b1ceb2
Rearrange checks in wpi_send_rxon().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:12:57 +00:00
Adrian Chadd
cec45f0495
Fix some printfs(); add some debugging.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:12:05 +00:00
Adrian Chadd
39060fa992
Add more KASSERTs.
...
(Committer note: these checks will have to be re-established in a future
commit as /well/ as having the KASSERTs.)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:11:00 +00:00
Adrian Chadd
0b90e84501
Disable powersave in IBSS mode (packet loss > 90%.)
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:09:29 +00:00
Adrian Chadd
e49a7038fc
Do some cleanup before device startup.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:08:54 +00:00
Adrian Chadd
b9858d864a
Acquire ifq lock when checking / modifying IFF_DRV_OACTIVE flag.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:08:24 +00:00
Adrian Chadd
77cf0b82c2
Merge wpi_init() and wpi_init_locked().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:07:43 +00:00
Adrian Chadd
5ca7739522
Refactor wpi_ioctl().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:06:36 +00:00
Adrian Chadd
0528191a1a
Add WPI_DEBUG_NODE + some debugging.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:05:59 +00:00
Adrian Chadd
a6df6cfe65
* Add new debug category
...
* Refactor out / restructure / extend debugging information
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:04:55 +00:00
Adrian Chadd
32e4f2f7e9
Remove unrelated comment.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:03:48 +00:00
Adrian Chadd
419435b847
Remove unnecessary assignment.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:02:59 +00:00
Adrian Chadd
7b52621191
Remove unnecessary debug output.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:55:23 +00:00
Adrian Chadd
d29fcfb7c3
Add support for AES-CCMP group keys.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:54:40 +00:00
Adrian Chadd
735c606726
Encrypt frame if IEEE80211_BPF_CRYPTO is set.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:54:10 +00:00
Adrian Chadd
b56fed3da0
Use separate mutex for wv_bcbuf and wv_boff structures.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:53:46 +00:00
Adrian Chadd
d036bb20e3
Add prefixes to field names.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:52:47 +00:00
Adrian Chadd
6f8421f8a5
Use ieee80211_beacon_update() for dynamic beacon contents.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:51:56 +00:00
Adrian Chadd
21f6580ed8
Move beacon initialisation to wpi_init_beacon()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:51:06 +00:00