]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
9 years agoBump the date after the `show devmap` addition.
stas [Tue, 17 Mar 2015 00:15:55 +0000 (00:15 +0000)]
Bump the date after the `show devmap` addition.

9 years agoDocument the `show devmap` DDB command.
stas [Tue, 17 Mar 2015 00:12:29 +0000 (00:12 +0000)]
Document the `show devmap` DDB command.

9 years agoFix minor fallout from sysctl strings being nulterminated now. The dmesg
ian [Mon, 16 Mar 2015 21:09:11 +0000 (21:09 +0000)]
Fix minor fallout from sysctl strings being nulterminated now.  The dmesg
code can read the buffer via sysctl or from a core file.  In the core file
case there will be no nulterm, and the code copes with that, but now in the
sysctl case there is a nulterm (there didn't used to be).  The least
disruptive way to restore the old behavior (and eliminate a spurious '\000'
at the end of the output) is to remove the nulterm (by decrementing the
buffer length) in the sysctl case.

9 years agoDefault to turning off OpenSSL SSL_OP_TLSEXT_PADDING as it breaks
gshapiro [Mon, 16 Mar 2015 20:24:37 +0000 (20:24 +0000)]
Default to turning off OpenSSL SSL_OP_TLSEXT_PADDING as it breaks
compatibility with some sites

This change comes from 8.15 but is being backported to FreeBSD releases
not yet using 8.15.

MFC after: 3 days
Noted by: julian@

9 years agoReport that we may have write cache, and that we do support FLUSH.
mav [Mon, 16 Mar 2015 20:13:25 +0000 (20:13 +0000)]
Report that we may have write cache, and that we do support FLUSH.

FreeBSD guest driver does not use that legacy flag, but Linux seems does.

MFC after: 2 weeks

9 years agoReset bp->bio_done to unmapped_buf when removing a transient map in biodone.
benno [Mon, 16 Mar 2015 20:00:09 +0000 (20:00 +0000)]
Reset bp->bio_done to unmapped_buf when removing a transient map in biodone.

Submitted by: Scott Ferris <scott.ferris@isilon.com>
Sponsored by: EMC / Isilon Storage Division
Reviewed by: kib

9 years agoTrivial change / forced-commit to document prior change that slipped in
ian [Mon, 16 Mar 2015 19:29:19 +0000 (19:29 +0000)]
Trivial change / forced-commit to document prior change that slipped in
without a commit message...

Use sbuf_new() + SYSCTL_OUT() instead of wiring the userland buffer and
using sbuf_new_for_sysctl().  The preallocated 256 byte buffer is always
going to be big enough to hold these results, and this should be more
efficient than wiring the old buffer.

9 years ago(no commit message)
ian [Mon, 16 Mar 2015 19:25:03 +0000 (19:25 +0000)]

9 years agoUse a regular sbuf + SYSCTL_OUT() rather than sbuf_new_for_sysctl() with
ian [Mon, 16 Mar 2015 19:18:45 +0000 (19:18 +0000)]
Use a regular sbuf + SYSCTL_OUT() rather than sbuf_new_for_sysctl() with
auto-draining, to avoid a potential copyout fault while holding a lock.

Pointed out by:   jhb
Pointy hat to:   ian

9 years agoUpdate an sbuf assertion to allow for the new SBUF_INCLUDENUL flag. If
ian [Mon, 16 Mar 2015 17:45:41 +0000 (17:45 +0000)]
Update an sbuf assertion to allow for the new SBUF_INCLUDENUL flag.  If
INCLUDENUL is set and sbuf_finish() has been called, the length has been
incremented to count the nulterm byte, and in that case current length is
allowed to be equal to buffer size, otherwise it must be less than.

Add a predicate macro to test for SBUF_INCLUDENUL, and use it in tests, to
be consistant with the style in the rest of this file.

9 years agoIntroduce a cap_ioctl_t used for the 'cmds' arguments to cap_ioctls_limit()
rwatson [Mon, 16 Mar 2015 17:42:53 +0000 (17:42 +0000)]
Introduce a cap_ioctl_t used for the 'cmds' arguments to cap_ioctls_limit()
and cap_ioctls_get().  On FreeBSD, these are 'unsigned long', but on Linux,
ioctl(2) takes an 'int', making mild abstraction desirable.

MFC after: 3 days
Sponsored by: Google, Inc.

9 years agoConvert PTE eviction lock from an RW lock to a RM lock. It is held for
nwhitehorn [Mon, 16 Mar 2015 16:29:33 +0000 (16:29 +0000)]
Convert PTE eviction lock from an RW lock to a RM lock. It is held for
writing approximately never (< 0.00000001% under heavy VM load, and it can
go for months without ever being acquired in normal operation). This
provides a 10% (2-minute) improvement in wall clock time for make -j32
buildworld on a 4-core 32-thread POWER8.

9 years agoMove special DDP handling for closing a connection into a new
jhb [Mon, 16 Mar 2015 15:56:06 +0000 (15:56 +0000)]
Move special DDP handling for closing a connection into a new
handle_ddp_close() function in t4_ddp.c as the logic is similar
to handle_ddp_data().  This allows all knowledge of the special
DDP mbufs to be private to t4_ddp.c as well.

9 years agoDocument r279663, qsort(3) enhancements.
gjb [Mon, 16 Mar 2015 15:54:53 +0000 (15:54 +0000)]
Document r279663, qsort(3) enhancements.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279571, freebsd-update(8) will not download updates when
gjb [Mon, 16 Mar 2015 15:54:50 +0000 (15:54 +0000)]
Document r279571, freebsd-update(8) will not download updates when
a previous upgrade is not complete.
Add ScaleEngine Inc to sponsors.ent.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279463, iovctl(8) rc(8) script.
gjb [Mon, 16 Mar 2015 15:54:47 +0000 (15:54 +0000)]
Document r279463, iovctl(8) rc(8) script.
Add Sandvine Inc to sponsors.ent.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279361, kern.osrelease and kern.osreldate sysctls are
gjb [Mon, 16 Mar 2015 15:54:43 +0000 (15:54 +0000)]
Document r279361, kern.osrelease and kern.osreldate sysctls are
now configurable jail(8) parameters.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279315, uefisign(8) addition.
gjb [Mon, 16 Mar 2015 15:54:41 +0000 (15:54 +0000)]
Document r279315, uefisign(8) addition.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279252, pmap(9) overhaul for 64-bit PowerPC processors.
gjb [Mon, 16 Mar 2015 15:54:38 +0000 (15:54 +0000)]
Document r279252, pmap(9) overhaul for 64-bit PowerPC processors.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279189, VSX support.
gjb [Mon, 16 Mar 2015 15:54:35 +0000 (15:54 +0000)]
Document r279189, VSX support.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r279186, setmode(3) set errno on failure.
gjb [Mon, 16 Mar 2015 15:54:32 +0000 (15:54 +0000)]
Document r279186, setmode(3) set errno on failure.

Sponsored by: The FreeBSD Foundation

9 years agoDocument r278970, acpi(4) update to 20150204.
gjb [Mon, 16 Mar 2015 15:54:29 +0000 (15:54 +0000)]
Document r278970, acpi(4) update to 20150204.

Sponsored by: The FreeBSD Foundation

9 years agoProvide a comment explaining r279688.
glebius [Mon, 16 Mar 2015 14:24:47 +0000 (14:24 +0000)]
Provide a comment explaining r279688.

Suggested by: alc

9 years agoReport ARAT (APIC-Timer-always-running) feature for virtual CPU.
mav [Mon, 16 Mar 2015 11:57:03 +0000 (11:57 +0000)]
Report ARAT (APIC-Timer-always-running) feature for virtual CPU.

This makes FreeBSD guest to not avoid using LAPIC timer, preferring HPET
due to worries about non-existing for virtual CPUs deep sleep states.

Benchmarks of usleep(1) on guest and host show such extra latencies:
 - 51us for virtual HPET,
 - 22us for virtual LAPIC timer,
 - 22us for host HPET and
 - 3us for host LAPIC timer.

MFC after: 2 weeks

9 years agoIncrease S/G list size of 32 to 33 entries.
mav [Mon, 16 Mar 2015 09:15:59 +0000 (09:15 +0000)]
Increase S/G list size of 32 to 33 entries.

32 entries are not enough for the worst case of misaligned 128KB request,
that made FreeBSD to chunk large quests in odd pieces.

MFC after: 2 weeks

9 years agoRemove unused upstream DTrace provider implementations that are duplicates
markj [Mon, 16 Mar 2015 01:15:08 +0000 (01:15 +0000)]
Remove unused upstream DTrace provider implementations that are duplicates
of providers under sys/cddl/dev/. Also remove sdt_subr.c, which isn't used
in FreeBSD's SDT implementation.

Suggested by: rwatson

9 years agoproc: get rid of proc lock + unlock pair in proc_reap
mjg [Mon, 16 Mar 2015 01:09:49 +0000 (01:09 +0000)]
proc: get rid of proc lock + unlock pair in proc_reap

A comment in the code stated we PROC_LOCK and as a side effect guarantee
all writers released process lock. But at that point such lock was already
taken while we were removing the process from all lists, so it should be already
unreachable.

9 years agocred: add proc_set_cred helper
mjg [Mon, 16 Mar 2015 00:10:03 +0000 (00:10 +0000)]
cred: add proc_set_cred helper

The goal here is to provide one place altering process credentials.

This eases debugging and opens up posibilities to do additional work when such
an action is performed.

9 years agoFix DESTDIR support
bapt [Sun, 15 Mar 2015 23:40:50 +0000 (23:40 +0000)]
Fix DESTDIR support

9 years agoRemove bad and useless LINKS
bapt [Sun, 15 Mar 2015 23:31:20 +0000 (23:31 +0000)]
Remove bad and useless LINKS

9 years agoFix build with clang 3.6, silence -Wcast-qual warning.
kib [Sun, 15 Mar 2015 23:05:36 +0000 (23:05 +0000)]
Fix build with clang 3.6, silence -Wcast-qual warning.

Sponsored by: The FreeBSD Foundation
Acked by: adrian

9 years agoPre-allocate one extra request per processing thread.
mav [Sun, 15 Mar 2015 22:44:53 +0000 (22:44 +0000)]
Pre-allocate one extra request per processing thread.

Processing threads call callbacks before freeing requests.  As result,
new requests may arrive before old ones are freed.

MFC after: 2 weeks

9 years agoAdd a missing format string argument.
markj [Sun, 15 Mar 2015 21:57:44 +0000 (21:57 +0000)]
Add a missing format string argument.

PR: 197391
MFC after: 3 days

9 years agoUse ar71xx_mac_addr_random_init() instead of a hand-rolled random
adrian [Sun, 15 Mar 2015 21:56:41 +0000 (21:56 +0000)]
Use ar71xx_mac_addr_random_init() instead of a hand-rolled random
MAC address.

9 years agoStart fleshing out some MAC address helper functions.
adrian [Sun, 15 Mar 2015 21:56:12 +0000 (21:56 +0000)]
Start fleshing out some MAC address helper functions.

A lot of these embedded boards don't have a unique MAC address per
device stored somewhere unique - sometimes they'll have one MAC
for both arge NICs; someties they'll have one MAC for both arge NICs
/and/ the ath NICs.  In these instances, we need to derive device
specific MAC addresses from the base MAC address.

These functions will be used by some follow-up code that'll slot
into if_arge and if_ath.

9 years agoSymplify links installation by using multi variable for loop
bapt [Sun, 15 Mar 2015 21:50:58 +0000 (21:50 +0000)]
Symplify links installation by using multi variable for loop

Using multi variable for loop not only simplify the code, it also ensures that
the LINKS and SYMLINKS input have the right number of words

Differential Revision: https://reviews.freebsd.org/D2069
Reviewed by: imp

9 years agoaudit: fix cred assignment when A_SETPMASK is used
mjg [Sun, 15 Mar 2015 21:43:43 +0000 (21:43 +0000)]
audit: fix cred assignment when A_SETPMASK is used

The code used to modify curproc instead of the target process.

Discussed with: rwatson
MFC after: 3 days

9 years agoAdd a new taskqueue (device specific, not net80211 ic->tq); use it for
adrian [Sun, 15 Mar 2015 21:32:11 +0000 (21:32 +0000)]
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>

9 years agoWorkaround delays caused by vmem_check().
adrian [Sun, 15 Mar 2015 21:30:20 +0000 (21:30 +0000)]
Workaround delays caused by vmem_check().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix scan timeouts with powersave enabled.
adrian [Sun, 15 Mar 2015 21:29:36 +0000 (21:29 +0000)]
Fix scan timeouts with powersave enabled.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agounzip: Don't subvert vfs.timestamp_precision when setting atime to now.
jilles [Sun, 15 Mar 2015 21:29:20 +0000 (21:29 +0000)]
unzip: Don't subvert vfs.timestamp_precision when setting atime to now.

Also, preserve nanoseconds from libarchive, even though the zip file format
does not currently support nanoseconds in timestamps.

9 years agoDon't unlock mutex in interrupt thread (except for wpi_rx_done() - for now) -
adrian [Sun, 15 Mar 2015 21:29:18 +0000 (21:29 +0000)]
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>

9 years agoReformatting changes.
adrian [Sun, 15 Mar 2015 21:27:50 +0000 (21:27 +0000)]
Reformatting changes.

(attachment 154380)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse correct types
adrian [Sun, 15 Mar 2015 21:27:03 +0000 (21:27 +0000)]
Use correct types

(attachment 154379)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd another lock for the TX path.
adrian [Sun, 15 Mar 2015 21:26:22 +0000 (21:26 +0000)]
Add another lock for the TX path.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd an extra mutex for qfullmsk / ring->queued variables.
adrian [Sun, 15 Mar 2015 21:25:06 +0000 (21:25 +0000)]
Add an extra mutex for qfullmsk / ring->queued variables.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRegroup ring state checks in wpi_tx_done().
adrian [Sun, 15 Mar 2015 21:24:11 +0000 (21:24 +0000)]
Regroup ring state checks in wpi_tx_done().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoDon't use sc->qfullmsk in wpi_start().
adrian [Sun, 15 Mar 2015 21:23:45 +0000 (21:23 +0000)]
Don't use sc->qfullmsk in wpi_start().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoturn sc_tx_timeout into its own callout, rather than a global watchdog
adrian [Sun, 15 Mar 2015 21:22:03 +0000 (21:22 +0000)]
turn sc_tx_timeout into its own callout, rather than a global watchdog
timer.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd mutex for RXON structure; convert some callouts/lock use to use
adrian [Sun, 15 Mar 2015 21:20:58 +0000 (21:20 +0000)]
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>

9 years agoUse WPI_FILTER_BSS for checking current state.
adrian [Sun, 15 Mar 2015 21:19:52 +0000 (21:19 +0000)]
Use WPI_FILTER_BSS for checking current state.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoSplit TX and scan timeouts; use a callout now for the scan timeout.
adrian [Sun, 15 Mar 2015 21:19:15 +0000 (21:19 +0000)]
Split TX and scan timeouts; use a callout now for the scan timeout.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd experimental HOSTAP support.
adrian [Sun, 15 Mar 2015 21:18:18 +0000 (21:18 +0000)]
Add experimental HOSTAP support.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMerge wpi_start() and wpi_start_locked().
adrian [Sun, 15 Mar 2015 21:17:58 +0000 (21:17 +0000)]
Merge wpi_start() and wpi_start_locked().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMinor optimisation in wpi_limit_dwell()
adrian [Sun, 15 Mar 2015 21:17:03 +0000 (21:17 +0000)]
Minor optimisation in wpi_limit_dwell()

PR: kenr/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRearrange checks in wpi_send_rxon().
adrian [Sun, 15 Mar 2015 21:12:57 +0000 (21:12 +0000)]
Rearrange checks in wpi_send_rxon().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix some printfs(); add some debugging.
adrian [Sun, 15 Mar 2015 21:12:05 +0000 (21:12 +0000)]
Fix some printfs(); add some debugging.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd more KASSERTs.
adrian [Sun, 15 Mar 2015 21:11:00 +0000 (21:11 +0000)]
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>

9 years agoDisable powersave in IBSS mode (packet loss > 90%.)
adrian [Sun, 15 Mar 2015 21:09:29 +0000 (21:09 +0000)]
Disable powersave in IBSS mode (packet loss > 90%.)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoDo some cleanup before device startup.
adrian [Sun, 15 Mar 2015 21:08:54 +0000 (21:08 +0000)]
Do some cleanup before device startup.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAcquire ifq lock when checking / modifying IFF_DRV_OACTIVE flag.
adrian [Sun, 15 Mar 2015 21:08:24 +0000 (21:08 +0000)]
Acquire ifq lock when checking / modifying IFF_DRV_OACTIVE flag.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMerge wpi_init() and wpi_init_locked().
adrian [Sun, 15 Mar 2015 21:07:43 +0000 (21:07 +0000)]
Merge wpi_init() and wpi_init_locked().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRefactor wpi_ioctl().
adrian [Sun, 15 Mar 2015 21:06:36 +0000 (21:06 +0000)]
Refactor wpi_ioctl().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd WPI_DEBUG_NODE + some debugging.
adrian [Sun, 15 Mar 2015 21:05:59 +0000 (21:05 +0000)]
Add WPI_DEBUG_NODE + some debugging.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years ago* Add new debug category
adrian [Sun, 15 Mar 2015 21:04:55 +0000 (21:04 +0000)]
* Add new debug category
* Refactor out / restructure / extend debugging information

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove unrelated comment.
adrian [Sun, 15 Mar 2015 21:03:48 +0000 (21:03 +0000)]
Remove unrelated comment.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove unnecessary assignment.
adrian [Sun, 15 Mar 2015 21:02:59 +0000 (21:02 +0000)]
Remove unnecessary assignment.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoHide virtio features negotiation messages under bootverbose.
mav [Sun, 15 Mar 2015 21:00:10 +0000 (21:00 +0000)]
Hide virtio features negotiation messages under bootverbose.

Those messages are noisy, but useless for average user.

MFC after: 2 weeks

9 years agoRemove unnecessary debug output.
adrian [Sun, 15 Mar 2015 20:55:23 +0000 (20:55 +0000)]
Remove unnecessary debug output.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd support for AES-CCMP group keys.
adrian [Sun, 15 Mar 2015 20:54:40 +0000 (20:54 +0000)]
Add support for AES-CCMP group keys.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoEncrypt frame if IEEE80211_BPF_CRYPTO is set.
adrian [Sun, 15 Mar 2015 20:54:10 +0000 (20:54 +0000)]
Encrypt frame if IEEE80211_BPF_CRYPTO is set.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse separate mutex for wv_bcbuf and wv_boff structures.
adrian [Sun, 15 Mar 2015 20:53:46 +0000 (20:53 +0000)]
Use separate mutex for wv_bcbuf and wv_boff structures.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd prefixes to field names.
adrian [Sun, 15 Mar 2015 20:52:47 +0000 (20:52 +0000)]
Add prefixes to field names.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse ieee80211_beacon_update() for dynamic beacon contents.
adrian [Sun, 15 Mar 2015 20:51:56 +0000 (20:51 +0000)]
Use ieee80211_beacon_update() for dynamic beacon contents.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove beacon initialisation to wpi_init_beacon()
adrian [Sun, 15 Mar 2015 20:51:06 +0000 (20:51 +0000)]
Move beacon initialisation to wpi_init_beacon()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse a static buffer in wpi_cmd - rather than alloc/free'ing the
adrian [Sun, 15 Mar 2015 20:50:23 +0000 (20:50 +0000)]
Use a static buffer in wpi_cmd - rather than alloc/free'ing the
beacon buffer frequently.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse WPI_RSSI_OFFSET instead of stat->noise (always 0 for me)
adrian [Sun, 15 Mar 2015 20:48:32 +0000 (20:48 +0000)]
Use WPI_RSSI_OFFSET instead of stat->noise (always 0 for me)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix debug category in wpi_read_eeprom_band()
adrian [Sun, 15 Mar 2015 20:48:00 +0000 (20:48 +0000)]
Fix debug category in wpi_read_eeprom_band()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove IBSS assocation processing to wpi_newassoc().
adrian [Sun, 15 Mar 2015 20:46:24 +0000 (20:46 +0000)]
Move IBSS assocation processing to wpi_newassoc().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agowpi_tx_done() shouldn't wait for wpi_start().
adrian [Sun, 15 Mar 2015 20:45:43 +0000 (20:45 +0000)]
wpi_tx_done() shouldn't wait for wpi_start().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd node table lock - addresses LOR in wpi_node_free().
adrian [Sun, 15 Mar 2015 20:44:52 +0000 (20:44 +0000)]
Add node table lock - addresses LOR in wpi_node_free().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoOptimise sc->rev processing.
adrian [Sun, 15 Mar 2015 20:43:58 +0000 (20:43 +0000)]
Optimise sc->rev processing.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoUse ring->queued for WPI_CMD_TX_DATA only.
adrian [Sun, 15 Mar 2015 20:43:22 +0000 (20:43 +0000)]
Use ring->queued for WPI_CMD_TX_DATA only.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove some code under WPI_LOCK().
adrian [Sun, 15 Mar 2015 20:42:41 +0000 (20:42 +0000)]
Move some code under WPI_LOCK().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove unnecessary locking.
adrian [Sun, 15 Mar 2015 20:41:57 +0000 (20:41 +0000)]
Remove unnecessary locking.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoEliminate the WPI_FLAG_BUSY flag.
adrian [Sun, 15 Mar 2015 20:40:59 +0000 (20:40 +0000)]
Eliminate the WPI_FLAG_BUSY flag.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoAdd separate lock for TX queues.
adrian [Sun, 15 Mar 2015 20:40:11 +0000 (20:40 +0000)]
Add separate lock for TX queues.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoWrap node addition in STA mode into wpi_add_sta_node().
adrian [Sun, 15 Mar 2015 20:35:25 +0000 (20:35 +0000)]
Wrap node addition in STA mode into wpi_add_sta_node().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReplace kernel unit allocator with local set of functions.
adrian [Sun, 15 Mar 2015 20:34:26 +0000 (20:34 +0000)]
Replace kernel unit allocator with local set of functions.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoMove key processing in wpi_tx_data.
adrian [Sun, 15 Mar 2015 20:33:13 +0000 (20:33 +0000)]
Move key processing in wpi_tx_data.

(This is in preparation for further work to support hardware encryption.)

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoRemove some un-needed variables.
adrian [Sun, 15 Mar 2015 20:32:12 +0000 (20:32 +0000)]
Remove some un-needed variables.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReformatting - break lines ~ 80 characters.
adrian [Sun, 15 Mar 2015 20:31:21 +0000 (20:31 +0000)]
Reformatting - break lines ~ 80 characters.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agowpi_intr(): remove duplicate code
adrian [Sun, 15 Mar 2015 20:30:03 +0000 (20:30 +0000)]
wpi_intr(): remove duplicate code

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoReplace few numbers with named constants.
adrian [Sun, 15 Mar 2015 20:29:22 +0000 (20:29 +0000)]
Replace few numbers with named constants.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoWrap cast to (struct wpi_node *) into WPI_NODE macros
adrian [Sun, 15 Mar 2015 20:23:58 +0000 (20:23 +0000)]
Wrap cast to (struct wpi_node *) into WPI_NODE macros

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agomsleep() -> mtx_sleep()
adrian [Sun, 15 Mar 2015 20:22:16 +0000 (20:22 +0000)]
msleep() -> mtx_sleep()

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix warning: Value stored to 'supportsa' is never read.
adrian [Sun, 15 Mar 2015 20:21:30 +0000 (20:21 +0000)]
Fix warning: Value stored to 'supportsa' is never read.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix error handling in wpi_scan().
adrian [Sun, 15 Mar 2015 20:20:43 +0000 (20:20 +0000)]
Fix error handling in wpi_scan().

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoFix indentation - non-functional change.
adrian [Sun, 15 Mar 2015 20:19:54 +0000 (20:19 +0000)]
Fix indentation - non-functional change.

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>

9 years agoCheck some variables only on active TX rings
adrian [Sun, 15 Mar 2015 20:19:01 +0000 (20:19 +0000)]
Check some variables only on active TX rings

PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>