glebius
4a0e78ec55
Change three methods in struct ieee80211com, namely ic_updateslot,
...
ic_update_mcast and ic_update_promisc, to pass pointer to the ieee80211com,
not to the ifnet.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
2015-05-25 19:53:29 +00:00
glebius
8e50f6e398
Set ic_softc in all 802.11 drivers. Not required right now, but will be
...
used quite soon.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
2015-05-25 18:50:26 +00:00
adrian
40fb0d7388
Update wpi(4) to use the new mgmt RX API.
2015-05-25 17:06:52 +00:00
glebius
f67a4dcfd7
Make net80211 drivers supply their device name to the net80211 layer, so
...
that the latter doesn't need to go through struct ifnet to get their name.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
2015-05-25 13:51:13 +00:00
adrian
1ce24614d1
[iwn] Do not filter control frames in monitor mode.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:40:12 +00:00
adrian
261baf2ea6
Handle properly IBSS merges (works with patch from bug 199632).
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:39:44 +00:00
adrian
77a6558263
Fix various powersave races + optimize tx/rx pointer update when powersave is off.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:39:02 +00:00
adrian
4f1505a6fa
[iwn?] Use correct sequence numbers with non-QoS STAs.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:38:32 +00:00
adrian
f6b81fd81b
Fix warning about comparison of integers of different signs.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:37:13 +00:00
adrian
d995e1dc39
[iwn?] Fix memory leak in wpi_reset_tx_ring().
...
PR: kern/197143
Differential Revision: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:36:25 +00:00
adrian
2f99e9e494
Use nitems() for counting elements in arrays.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:35:44 +00:00
adrian
735a372cff
Do not include WPI_START_SCAN event processing into non-debug builds.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:35:11 +00:00
adrian
9fe5db5c05
Fix sequence number generation for beacon frames.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:34:24 +00:00
adrian
4bb2bb9a92
Add debug output for WPI_BEACON_SENT event.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:30:04 +00:00
adrian
c053a22b7f
Try to fix passive scanning hang on beacon miss.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:28:54 +00:00
adrian
102868722b
Add comment about AUTH -> AUTH state transition + fix some style issues.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:27:36 +00:00
adrian
dd8b8eac83
Display more information for beacon miss debugging.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:25:33 +00:00
adrian
d1203af9c6
Limit minimum threshold of missed beacons.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:24:20 +00:00
adrian
87dab202d9
Improve beacon miss detection.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:21:16 +00:00
adrian
4c2a7c8041
Create another debug category for WPI_BEACON_MISSED notification.
...
Differential Revision: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:18:28 +00:00
adrian
061c23cbd6
Unbreak scanning after RUN -> SCAN state transition.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:09:47 +00:00
adrian
92d93a7215
Check channels which are passed in IBSS mode.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:08:25 +00:00
adrian
d223b21846
Do not disable beacon notifications (unbreaks scanning on passive channels).
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:06:19 +00:00
adrian
fdc8b654ed
Fix pause scan time calculation (the remainder must be less than beacon interval).
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 23:03:06 +00:00
adrian
a9dc381ab0
Fix active/passive dwell calculation.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:56:36 +00:00
adrian
43d01be22c
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
0bf01bbf21
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
3bbd98845c
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
0cfc1a013a
Use another workaround for scanning.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:43:45 +00:00
adrian
4522e25173
Add wpi_check_bss_filter()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:34:32 +00:00
adrian
8e63bb7128
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
1fecd35aa5
Remove workaround for bug 199676.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 22:30:11 +00:00
adrian
92f4e766ee
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
4a2e2c95f3
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
4219fbbd79
Retry twice at the same rate.
...
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-05-03 20:56:33 +00:00
adrian
bca1fef7fe
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
5cabee2fa7
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
kib
f840d367f6
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
88f71e0aa9
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
349908c4dd
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
f237bf3b27
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
9376a63b82
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
45474488c8
Reformatting changes.
...
(attachment 154380)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:27:50 +00:00
adrian
2db18afcbd
Use correct types
...
(attachment 154379)
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 21:27:03 +00:00
adrian
1571f049e1
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
0af1796bab
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
ff5fdd0ba4
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
712e0605e0
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
a8e488d075
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
3641fd84ae
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