Adrian Chadd
7167f5fc02
Reformatting - break lines ~ 80 characters.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:31:21 +00:00
Adrian Chadd
7f1299c5cd
wpi_intr(): remove duplicate code
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:30:03 +00:00
Adrian Chadd
8e4cf38ac7
Replace few numbers with named constants.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:29:22 +00:00
Adrian Chadd
a5e093b0e0
Wrap cast to (struct wpi_node *) into WPI_NODE macros
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:23:58 +00:00
Adrian Chadd
76fdf7eb35
msleep() -> mtx_sleep()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:22:16 +00:00
Adrian Chadd
cb0de40f2a
Fix warning: Value stored to 'supportsa' is never read.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:21:30 +00:00
Adrian Chadd
96dadeb0aa
Fix error handling in wpi_scan().
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:20:43 +00:00
Adrian Chadd
bb086d4e83
Fix indentation - non-functional change.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:19:54 +00:00
Adrian Chadd
ebf62e08fb
Check some variables only on active TX rings
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:19:01 +00:00
Adrian Chadd
5f25a0e970
Use correct pointer for wpi_softc
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:18:09 +00:00
Adrian Chadd
01729242e5
Fix panics in wpi_tx_done() when powersave is enabled
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:17:25 +00:00
Adrian Chadd
71258eb207
Fix races between wpi_rx_done() and wpi_stop()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:15:10 +00:00
Adrian Chadd
e336bd5499
Divide ackfailcnt by 2 (firmware decreases rate after two unsuccessful retries)
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:13:58 +00:00
Adrian Chadd
811fe0a8fb
Run callout_reset() with mutex held.
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:13:07 +00:00
Adrian Chadd
0c66281c5f
Add missed ieee80211_draintask()
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:12:16 +00:00
Adrian Chadd
9facf2b90a
Fix a typo (IEEE80211_S_SCAN -> IEEE80211_F_SCAN)
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:10:55 +00:00
Adrian Chadd
893edbea10
Fix mbuf mapping errors in wpi_cmd2() + add check for nsegs
...
PR: kern/197143
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
2015-03-15 20:09:47 +00:00
Andrew Turner
d051c9457e
Move the x86 specific files to be built in the amd64 loader.efi. This will
...
help with importing the arm and arm64 versions of loader.efi.
2015-03-15 19:00:35 +00:00
Ian Lepore
207e72288c
Remove redundant sysctl_handle_string() calls, the sbuf auto-drain takes
...
care of that.
Reviewed by: erj@
2015-03-15 17:39:38 +00:00
Robert Watson
9dcce6e267
Now that DTrace stack traces handle exception frames better, skip fewer
...
stack frames for FBT 'entry' probes on ARM.
MFC after: 3 days
Sponsored by: DARPA, AFRL
2015-03-15 15:19:02 +00:00
Robert Watson
2a1d3dee4f
On ARM, unlike some other architectures, saved $pc values from in-kernel
...
traps do appear in the regular call stack, rather than only in a special
trap frame, so we don't need to inject the trap-frame $pc into a returned
stack trace in DTrace.
MFC after: 3 days
Sponsored by: DARPA, AFRL
2015-03-15 15:17:34 +00:00
Robert Watson
808d83b01a
Replace the completely arbitrary '3' with '9' for the number of frames to
...
skip using the DTrace 'profile' provider on ARM. This causes stack traces
to skip various driver-and callout-related things as they do on x86, where
the likewise arbitrary values are '6' (32-bit) and '10' (64-bit) for
similar sorts of reasons.
MFC after: 3 days
Sponsored by: DARPA, AFRL
2015-03-15 14:12:40 +00:00
Dimitry Andric
df6508c726
Merge ^/head r279995 through r280029.
2015-03-15 11:58:52 +00:00
Dimitry Andric
302cd48a04
Bump __FreeBSD_version again, and set real dates in UPDATING and
...
ObsoleteFiles.inc, in preparation for the merge back to head.
2015-03-15 11:56:43 +00:00
Ian Lepore
e5197e3a08
Add a nulterm byte to the returned sysctl string.
...
PR: 195668
2015-03-15 00:39:18 +00:00
Ian Lepore
657282e062
Include the nulterm byte in the sysctl string.
...
PR: 195668
2015-03-15 00:36:08 +00:00
Ian Lepore
dcdeb95f09
Go back to using sbuf_new() with a preallocated large buffer, to avoid
...
triggering an sbuf auto-drain copyout while holding a lock.
Pointed out by: jhb
Pointy hat: ian
2015-03-14 23:57:33 +00:00
Ian Lepore
2a6a72f113
Use sbuf_printf() for sysctl strings instead of static buffers and snprintf.
2015-03-14 23:30:03 +00:00
Ian Lepore
91d9eda200
Use sbuf_printf() for sysctl strings instead of stack buffers and snprintf().
2015-03-14 23:16:12 +00:00
Ian Lepore
6ec9891291
Use sysctl_handle_string() and the sbuf printf routines instead of large
...
stack-allocated buffers and snprintf().
PR: 195668
2015-03-14 22:32:15 +00:00
Ian Lepore
6ef6968de5
Use SYSCTL_OUT_STR() to return strings.
...
PR: 195668
2015-03-14 21:41:00 +00:00
Ian Lepore
c38c26f8da
Use SYSCTL_OUT_STR() to return strings.
...
PR: 195668
2015-03-14 21:40:51 +00:00
Ian Lepore
8ddeeebf4b
Use SYSCTL_OUT_STR() to return strings.
...
PR: 195668
2015-03-14 21:40:33 +00:00
Ian Lepore
d711ee2c29
Use SYSCTL_OUT_STR() to return strings.
...
PR: 195668
2015-03-14 21:40:24 +00:00
Ian Lepore
acfc962f82
Use SYSCTL_OUT_STR() to return strings.
...
PR: 195668
2015-03-14 21:40:01 +00:00
Ian Lepore
8a0d2c613b
Define a convenience macro, SYSCTL_OUT_STR() for handling strings the
...
standard way (including the nulterm byte in the data returned to userland).
This augments the existing sysctl_handle_string() in that this can be used
with const strings without ugly inappropriate casting.
2015-03-14 21:38:51 +00:00
Ian Lepore
b773372938
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
...
string returned to userland is nulterminated.
PR: 195668
2015-03-14 18:46:33 +00:00
Ian Lepore
b97fa22cd6
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
...
string returned to userland is nulterminated.
PR: 195668
2015-03-14 18:42:30 +00:00
Ian Lepore
751ccc429d
Use sbuf_new_for_sysctl() instead of plain sbuf_new() to ensure sysctl
...
string returned to userland is nulterminated.
PR: 195668
2015-03-14 18:11:24 +00:00
Steven Hartland
208264283d
Allow zvol_geom_worker to process BIO_DELETE's
...
If zvol_geom_start is called with a BIO_DELETE from a thread which can
sleep it queues it for later processing by the zvol_geom_worker. The
zvol_geom_worker didn't have a delete case so would simply loose the bio
hence preventing the original caller from every completing. In addition
an other unknown types would suffer the same fate.
Allow zvol_geom_worker to process BIO_DELETE's via zvol_strategy and
return unsupported for all unknown bio types.
MFC after: 2 weeks
Sponsored by: Multiplay
2015-03-14 17:35:04 +00:00
Dimitry Andric
2dbe5fa718
Merge ^/head r279985 through r279994.
2015-03-14 17:25:17 +00:00
Dimitry Andric
6be291e47a
Amend r277940, by also disabling -Wcast-qual warnings for a few specific
...
aesni files on i386.
2015-03-14 17:19:48 +00:00
Ian Lepore
1eafc07856
Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
...
strings returned to userland include the nulterm byte.
Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases. (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)
Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.
PR: 195668
2015-03-14 17:08:28 +00:00
Ian Lepore
f4d281428f
Add a new flag, SBUF_INCLUDENUL, and new get/set/clear functions for flags.
...
The SBUF_INCLUDENUL flag causes the nulterm byte at the end of the string
to be counted in the length of the data. If copying the data using the
sbuf_data() and sbuf_len() functions, or if writing it automatically with
a drain function, the net effect is that the nulterm byte is copied along
with the rest of the data.
2015-03-14 16:02:11 +00:00
Dimitry Andric
e0125cfdd1
Merge ^/head r279893 through r279984.
2015-03-14 13:08:00 +00:00
Ian Lepore
b36424bd4b
Revert r279934, r279938; this is going to be fixed in sbuf instead.
...
PR: 195668
2015-03-14 13:04:39 +00:00
Ian Lepore
59daf5b0ce
Revert r279933; this is going to be fixed in sbuf instead.
...
PR: 195668
2015-03-14 13:02:08 +00:00
Ian Lepore
ed9dd64b8c
Revert r279932; this is going to be fixed in the sbuf code instead.
...
PR: 195668
2015-03-14 13:00:37 +00:00
Adrian Chadd
af1357897d
Compile some modules - I'm going to eventually just compile all the
...
modules, but these are a subset of things that are worth playing with
in deployed APs.
(ipfw in particular is rather nice.)
2015-03-14 08:29:03 +00:00
Adrian Chadd
22aeed02bf
Add board support for the TP-Link TL-WR1043nd v2.
...
This is a QCA9558 based design with on-chip 2GHz 3x3 11n wifi,
AR8327N switch, 64MB RAM and 8MB flash.
Of course, it runs FreeBSD.
2015-03-14 07:59:54 +00:00