Age | Commit message (Collapse) | Author |
|
never be called to convince compilers and static analysis tools a path
that uses uninitialised memory does not exist.
ok krw@ mpi@
|
|
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
|
|
alignment can be variable, it's better to move taking care of alignment
into the BCDC receive code.
|
|
ifq dequeue semantics. This basically means we need to check for
available space before dequeuing a packet. As soon as we dequeue
a packet we commit to it. On the PCIe backend this check can not
be done easily since the flowring depends on the packet contents and
we cannot take a peek. When there is no flowring we cache the mbuf
and send it out as soon as the flowring opened up. Then the ifq can
be restarted and traffic can flow. Typically we usually run out of
packet ids, which can be checked without consulting the packet. The
flowring probably never becomes full as the bwfm(4) firmware takes
the packets off the ring without actually sending them out.
Discussed with dlg@
|
|
function so it can be shared with the SDIO attachment driver.
|
|
|
|
Also fix support for AR7010 devices, fix mode hostap by properly
managing the firmware station table, and fix Tx rate reporting.
Tested on AR7010 and AR9271 devices.
ok kevlo@
|
|
ok deraadt@, dlg@
|
|
transitions, which means those state transition won't be shown in dmesg
in interface debug mode. Make drivers print these transitions themselves.
ok patrick@
|
|
|
|
Works for me on amd64.
okay stsp@, who also noted this matches Linux commit
fd7b9270120ca7e53fbf0469febe0c68acf6a0a2
|
|
driver. It is only useful to know if firmware loading has failed. This
means fewer clutter in dmesg(8).
Spotted by and ok stsp@
|
|
urtw_alloc_tx_data_list() in 8187b init.
From James Jerkins, thanks.
|
|
devices from attaching (ex uaudio devices).
ok mpi
|
|
|
|
ok phessler@
|
|
|
|
push the mbuf allocation down into the USB attachment code and now pass
an mbuf to the bwfm(4) receive function.
|
|
ok deraadt@ krw@
|
|
ok millert@ krw@
|
|
ok deraadt@ phessler@ kettenis@
|
|
|
|
ok deraadt@ phessler@ kettenis@
|
|
reports more than 3 bulk-out endpoints.
Problem found by Pierre Pronchery (khorben) during code inspection.
ok mpi@ kevlo@
|
|
ether_output().
|
|
ok jsg@, stsp@
|
|
of the if_snd queue doesn't stall.
ok stsp@
|
|
behaves erratically and drops packets on TX. Found the hard way by
Jared McNeill. While there, also set the priority field.
ok stsp@
|
|
SIOCGIF{HARD,}MTU are handled by ifioctl() and not passed down to
drivers.
ok visa@
|
|
getting the data we expect to be getting. Otherwise the firmware
can starve our USB RX descriptors using invalid packets.
Caught by Jared McNeill.
|
|
pass the proper size.
Caught by Jared McNeill.
|
|
buffers. By storing the pointer of the TX mbuf in the TX buffer,
we can make sure to free the mbuf properly after TX completed.
This also seems to speed up the WiFi scan.
previous version ok stsp@
|
|
|
|
FullMAC, in comparison to SoftMAC, does most WiFi handling in the
firmware that's running on the controller. This means we have to
work around the net80211 stack while still implementing all the
WiFi interfaces to userland.
This driver is still in early development. So far it can connect
to open WiFis over the USB bus. SDIO and PCIe support, for devices
like the Raspberry Pi 3 or the Macbooks, is not yet implemented.
Also mbufs on the transmit path leak and are not yet freed.
ok stsp@
|
|
Fix regression introdruced in previous.
Found the hardway and diff from weerd@
|
|
sensor to the ugold(4) driver.
Patch by Jan Klemkow
Tested by Remi Locherer
ok mpi@ patrick@
|
|
Without it uhid_do_ioctl() will return EINVAL which will make the
upper layer assume that uhid node do not support non-blocking reads.
Fix a regression introduced by the removal of SIGIO support.
Reported by many, fix tested by Bryan Linton, Micah Muer and Nam Nguyen.
|
|
This assert triggers because of the floor check on amd64/sparc64
when ohci(4) processes its root-hub status change transfers at
IPL_BIO.
Previous to the removal of IPL_SOFTNET, the SPLUSBCHECK macro didn't
do anything, so it is safe to disable this check.
Issue reported by espie@ and krw@
|
|
- save product type for future use
|
|
- explicitly clear sc_xfer upon detach
- fix spacing in urng_softc definition
|
|
This is just a step forward which allows further progress to happen in-tree.
The isochronous code path remains disabled for now. Playing audio over
xhci(4) does not work properly yet, and I haven't even tested video input.
Based on a work-in-progress diff by mpi@ from 2015.
ok mpi@
|
|
|
|
ok mpi@
|
|
|
|
ok mpi@
|
|
It made one of my machines get stuck during boot.
|
|
endpoint companion descriptor.
ok mpi@
|
|
Each TRB contains a remaining TD size, which allows hardware to tell whether
additional TRBs follow within the current transfer without reading ahead.
The length of the first TRB was subtracted from the total length before
calculating the remaining TD sizes. This is wrong because remaining TD sizes
are relative to the size of the entire transfer, including the first TRB.
Our current USB code does not trigger this bug because there is no code in
upper layers yet which triggers use of multiple TRBs per transfer.
ok mpi@
|
|
puts us in line with the linux driver. Also add a DPRINTF for endpoints.
"i'd say go for it" jasper@
|
|
tested by abieber@
|