summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2016-09-22Fix indentation of a break statement. No binary change.Jonathan Gray
2016-09-21If not set, set hw_vendor to the name of the first pvbus.Reyk Floeter
This sets hw.vendor to "OpenBSD" if running on vmm(4) because it doesn't provide an SMBIOS. OK mikeb@
2016-09-21sysctl KERN_ARND is no longer used (in ports, it only occurs in fallbackTheo de Raadt
paths of libevent). This interface was the first generation of what eventually became getentropy(2) and arc4random(3) -- june 1997! Ports scan by sthen, general agreement guenther
2016-09-21Always set the bit which allows RTS in iwm's LQ command.Stefan Sperling
This bit was only set in 11n mode previously. ok sthen@
2016-09-21Make iwm protect the session during association more like Linux does it.Stefan Sperling
ok sthen@
2016-09-21Properly support the mac context command in iwm. This was wrong in many ways.Stefan Sperling
This commit includes style fixes as well as actual bug fixes. Remove the global in_assoc flag from the softc. We can just pass a fixed argument to functions to indicate whether we're already associated. Remove in_tfsid from the softc as well. It was implicitly set to zero and never changed. A corresponding macro already exists so use it instead. Always copy the BSSID into the mac context command, as the Linux driver does. This helps the firmware during association. Set the firmware state to 'associated' once we've moved to RUN state and our assoc ID is known. Earlier versions of iwm used to set the firmware to 'associated' but this was disabled in r1.91 since it didn't work correctly due to bugs which are now fixed. Use live DTIM information obtained from the AP, rather than using the default DTIM period of our wireless stack. Check return values of functions called after moving to RUN state. ok sthen@
2016-09-21Make iwm return EBUSY from its ic_ampdu_rx_start() handler andStefan Sperling
call the functions provided by the wireless stack to accept or refuse BA agreements depending on the status returned by firmware. ok sthen@
2016-09-21Fix nfsrv_symlink() indentation. No binary change.Jonathan Gray
ok mpi@ deraadt@
2016-09-21For the keep-alive period in iwm's power command, use the DTIM periodStefan Sperling
specified by the AP, rather than the default DTIM period of our wireless stack (which is not applicable when running as a client anyway). And tell the firmware to disable power-saving. ok sthen@
2016-09-21Copy the AP's actual EDCA parameters into iwm's mac context commandStefan Sperling
rather than some fixed values present in this file since r1.1. Allows the firmware to properly time its transmissions in 11n networks. ok sthen@
2016-09-21Add the BSS's basic rates to iwm's LQ command, not all the rates.Stefan Sperling
Makes the firmware use appropriate Tx rates for ACKs.
2016-09-21When processing an ADDBA request, iwm(4) runs a task which sends aStefan Sperling
command to the firmware and waits for confirmation. This command can fail and there was no way we could recover from such an error. Allow drivers to return EBUSY from their ic_ampdu_rx_start() handler to tell the stack not to send a confirmation just yet. The stack provides functions which the driver can call to accept or refuse the request. There is no functional change yet. This just shuffles code around so drivers may insert themselves into the process. ok mpi@
2016-09-21Modernize arm assembly in the kernel for clang.Mark Kettenis
Based on a similar diff in bitrig. No binary change when compiled with gcc. ok patrick@
2016-09-21Remove some dead code and only enable tx and rx interrupts.Mark Kettenis
ok patrick@, tom@, mikeb@
2016-09-21straighten the chairsDavid Gwynne
2016-09-21SierraWireless MC7455.Martin Pieuchot
From Yannick Gravel, ok phessler@
2016-09-21regenMartin Pieuchot
2016-09-21SierraWireless MC7455Martin Pieuchot
from Yannick Gravel, ok phessler@
2016-09-21Remove a hack now that the USB stack correctly set the maximum packetMartin Pieuchot
size based on the device speed. Tested by and ok jsg@, mlarkin@
2016-09-21Sprinkle some #ifdef _KERNEL, autumn is here.Martin Pieuchot
ok dlg@
2016-09-21Remove recursive splsoftnet() calls, from David Hill.Martin Pieuchot
2016-09-20Remove duplicated includes in stdlib.h and termios.hFrederic Cambus
OK guenther@
2016-09-20properly set our state to down when we initially create the session.Peter Hessler
while here, fix the diag code for route-down
2016-09-20little bit of whitespacePeter Hessler
2016-09-20sprinkle some splsoftnet around sosocket and our soon-to-be-rtmsg locationsPeter Hessler
2016-09-20Complete bus_dmamap_load_raw(9) implementation for ARM. My initialPatrick Wildt
commit did not copy the vaddr information to the map's segments. This means non-coherent bus dma raw mappings could not be synced. As only agp(4) and radeondrm(4) seem to make use of non-coherent raw mappings at the moment, this bug did not cause any visible effects. From Marius Strobl. ok kettenis@
2016-09-20Create and destroy cloneable interfaces under splsoftnetMike Belopuhov
With and ok mpi, tested by David Hill and tb@, thanks!
2016-09-20Protect soshutdown() with splsoftnet() to define one layer whereAlexander Bluhm
we enter networking code. Fixes an splassert() found by David Hill. OK mikeb@
2016-09-20Fifo did work around the socket layer. Better call soconnect2()Alexander Bluhm
instead of unp_connect2(). This adds the missing splsoftnet(). Require that socantsendmore() and socantrcvmore() in uipc_socket2.c should be called with splsoftnet(). Found by David Hill; OK mikeb@
2016-09-20Sprinkle splsoftnets in TDB timeout callbacks; ok bluhmMike Belopuhov
2016-09-20Parse the DTIM count and period advertised in beacons and store themStefan Sperling
in the node structure. This should be useful for iwm(4) in the future. ok phessler@
2016-09-20Use splsoftassert() together with IPL_SOFTNET. On alpha and m88kAlexander Bluhm
it is defined differently than splassert(IPL_SOFTNET). No binary change on amd64. OK mpi@
2016-09-20Mostly cosmetic tweaks to macros involved in iwm(4) power-saving features.Stefan Sperling
Remove the unused struct iwm_powertable_cmd. Fix typos in comments. Add macros for default power-save Tx/Rx timeout values (from iwlwifi).
2016-09-20Add some spl softnet assertions that will help us to find the rightAlexander Bluhm
places for the upcoming network lock. This might trigger some asserts, but we have to find the missing code paths. OK mpi@
2016-09-20we will also want the echo timing paramaterPeter Hessler
2016-09-20Not needed anymoreMike Belopuhov
2016-09-20Switch to the new NDIS headerMike Belopuhov
2016-09-20Add a new NDIS headerMike Belopuhov
2016-09-20Add a missing status defineMike Belopuhov
2016-09-20Attach event counterMike Belopuhov
2016-09-20Add an API to hook up event countersMike Belopuhov
2016-09-20one too many close parenthesesJasper Lievisse Adriaanse
spotted by Markus Hennecke
2016-09-20whitespace fixes, no functional changeDavid Gwynne
2016-09-19Make this build again.Mark Kettenis
2016-09-19ansify function definitionsJasper Lievisse Adriaanse
ok guenther@ millert@
2016-09-19convert bcopy to memcpy. from david hillTed Unangst
2016-09-19convert bcopy to memcpy. from david hill.Ted Unangst
2016-09-19convert bcopy to memcpy. from david hill. ok jcaTed Unangst
2016-09-19fix whitespace at EOLJasper Lievisse Adriaanse
2016-09-19Correctly check for valid maximum packet size.Martin Pieuchot
from jsg@