summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2017-01-09Show node MAC addresses in mira debug output.Stefan Sperling
2017-01-09Use a mutex to serialize accesses to buffer slots.Martin Pieuchot
With this change bpf_catchpacket() no longer need the KERNEL_LOCK(). Tested by Hrvoje Popovski who reported a recursion in the previous attempt. ok bluhm@
2017-01-09Revert previous, it's a documented behavior and people might rely on it.Martin Pieuchot
Pointed by deraadt@
2017-01-09Grab the NET_LOCK() in ipcomp input callback.Visa Hankala
OK mikeb@ mpi@
2017-01-09Stop and restart the watchdog timer when entering and leaving ddb(4).Martin Pieuchot
From Christian Ludwig.
2017-01-09Grab the NET_LOCK() in various callbacks.Martin Pieuchot
Fix an assert reported by Hrvoje Popovski. ok visa@, mikeb@
2017-01-09Make the net80211 stack send EDCA parameters to the driver in hostap mode.Stefan Sperling
Fixes problems with timing of frame transmissions which caused packet loss. tested by myself and tb@ ok phessler@ mpi@ tb@
2017-01-09pf_purge_thread() needs the NET_LOCK().Martin Pieuchot
ok sashan@, visa@
2017-01-09Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.Martin Pieuchot
2017-01-09When acting as 11n hostap, send Microsoft WME parameters to clients soStefan Sperling
that Linux clients will decide to use 11n mode. ok phessler@
2017-01-09Manage the HT protection setting if acting as hostap with 11n enabled.Stefan Sperling
For now we flip-flop only between non-member protection and non-HT protection. Running a HT network without protection would require monitoring environmental conditions (e.g. foreign beacons) which make HT protection necessary. The ic_update_htprot driver function becomes optional because it won't be needed by all drivers. Only call it if the driver has set a function pointer. ok tb@
2017-01-09The point of ieee80211_node_leave() is to place the node in COLLECT state.Stefan Sperling
Return early and do nothing if the node is already in COLLECT state upon entry to this function.
2017-01-09When acting as hostap, negotiate HT before calling the driver's ic_newassoc()Stefan Sperling
function, not afterwards. Drivers now know whether a joining node supports HT which helps with setting up state such as which Tx rate to use.
2017-01-09Fix ieee80211_add_htop(), which is not yet called in active code paths.Stefan Sperling
It was creating a corrupt beacon element by ommitting one byte. Fix this and fill the element with actual data from the ic_bss node instead of filling it with zeroes, allowing future 11n hostap to announce the current HT protection mode correctly.
2017-01-09Sync with NetBSD/luna68k changes.Kenji Aoyama
>> Fix (mostly harmless) off-by-one size check in XPIOCDOWNLD ioctl. >> Consistently use sc_shm_size initialized at device attach. http://mail-index.netbsd.org/source-changes/2017/01/08/msg080666.html http://mail-index.netbsd.org/source-changes/2017/01/08/msg080667.html
2017-01-09i386 vmm requires PAE mode to be in use. don't match vmm(4) if ! PAE.Mike Larkin
2017-01-08Revert previous commit as it failed to handle unset vmcs pointers properlyMike Larkin
noticed by Josh Grosse
2017-01-08Use a macro for the Tx timeout value.Visa Hankala
OK deraadt@ kettenis@
2017-01-08Add support for the RTC found on the Allwinner H3.Mark Kettenis
2017-01-08Specify correct size for the softc.Mark Kettenis
2017-01-08Make aml_rdpciaddr() work for for devices behind bridges. The code nowMark Kettenis
uses the mapping between AML nodes and PCI devices that we establish. Because _INIT methods may end up calling aml_rdpciaddr(), make sure we create that mapping early. Also handle devices that aren't actually present. These devices are now included in the mapping and reads will return an all-ones patterm whereas writes are a no-op.. ok mlarkin@
2017-01-08Display color depth alongside resolution when attaching inteldrm andFrederic Cambus
radeondrm, using the same scheme as efifb(4). OK mpi@, visa@, kettenis@
2017-01-08Make urtwn(4) use AMRR instead of letting the firmware handle rate scaling.Stefan Sperling
For now this only affects RTL8188EU chips, perhaps because the author of this patch does not own any devices containing any of the other chips (hint hint). Patch by misha aka Mikhail / mp39590 at gmail ok mpi@
2017-01-08When if_down() is called, sppp_keepalive() needs a NET_LOCK().Alexander Bluhm
OK visa@ mpi@
2017-01-07Make getting the parent clock for the SD/MMC controller work on theMark Kettenis
Allwinner H3.
2017-01-07regenMike Larkin
2017-01-07Some newer Intel Xeon E5v4 PCI ids, from Hrvoje PopovskiMike Larkin
ok deraadt
2017-01-07reduce statement nesting depth in a couple places, suggested byMike Larkin
Michael Bombardieri
2017-01-07add rcs tagsMike Larkin
2017-01-07use 16 bit segment selectors. also reduces differences with i386 vmmMike Larkin
2017-01-07Fill bootstrap translation table with zeroes before we use it and don't mapMark Kettenis
the vectors page at address 0 as we don't put them there. ok patrick@
2017-01-07Remove unused MIX_CN_CIN macro, make umidi_evlen[] static, style(9).Alexandre Ratchov
From Michael W. Bombardieri. Thanks.
2017-01-06Ansify cpu_sysctl() on mips64 platforms.Frederic Cambus
OK patrick@, visa@, jasper@, mpi@
2017-01-06Add C11 support.Mark Kettenis
ok millert@
2017-01-06Remove the global viftable vector that holds the virtual interfacesRafael Zalamena
configuration and instead use ifnet to store the configuration and counters. With this we can safely use multicast routing daemons on multiple domains without vif id colisions. ok mpi@
2017-01-06Simplify code by removing some old pullup macro, killing some variablesRafael Zalamena
and using m_dup_pkt() instead of m_copym() with max_linkhdr space adjust on packet sending to avoid more mbuf allocations. with input from millert@ and mikeb@, ok mikeb@
2017-01-06Kill various splsoftnet().Martin Pieuchot
ok rzalamena@, visa@
2017-01-06there is no longer a need to ifdef __armv7__ armv6 rev instructionsJonathan Gray
2017-01-06unifdef CPU_ARMv7 and ARM_ARCH_7Jonathan Gray
ok kettenis@ patrick@
2017-01-05Pass value as input instead of output register, otherwise we writePatrick Wildt
garbage into the control register. While there remove positional argument leftover from the 32-bit version.
2017-01-05Now that all non-ARMv7 platforms are gone, tedu the legacy atomicPatrick Wildt
locking code. ok kettenis@
2017-01-05Complete idle PCB allocation for secondary processors so that it makesPatrick Wildt
sense and builds as part of an MP kernel. ok kettenis@ mpi@
2017-01-05Checking whether mbuf list is empty is done by the if_input nowMike Belopuhov
2017-01-05Microsoft has allocated us a SubID that we can use to identify OpenBSDMike Belopuhov
2017-01-05Remove some unnecessary code abstractions and while here remove aRafael Zalamena
splsoftnet. ok mikeb@
2017-01-05Don't let producer index become equal with the consumer when writingMike Belopuhov
A nod to the re.c commit by dlg@, perhaps pure paranoia, but works nevertheless. While here replace a more expensive modulo operation with a subtraction.
2017-01-05Fix boot(8) crashing on some amd64 machines when booting from softraid crypto.Stefan Sperling
Allocate a 4k temp buffer on the heap instead of the stack. Problem was introduced in arch/amd64/stand/libsa/softraid_amd64.c r1.3. Reported by Andreas Bartelt on bugs@ ok krw@ kettenis@ yasuoka@
2017-01-04As noticed by bluhm@ the netlock is required for the multicast cleanupMike Belopuhov
While here, remove unnecessary splnet's. ok mpi
2017-01-04Cleanup gpio(4) support code.Mark Kettenis
ok jsg@
2017-01-04In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR caseAlexandre Ratchov
as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.