OpenBSD cvs log

created 2021-04-18T06:06:42Z
begin 2021-04-15T00:00:00Z
end 2021-04-16T00:00:00Z
path src/sys
commits 8

date 2021-04-15T02:23:17Z
author kevlo
files src/sys/dev/usb/if_ure.c log diff annotate
message Match Linux path in r8153_set_rx_early_size().

The rx early size is used to reduce the loading of CPU by letting a transfer
contain more data to reduce the number of transfers.

ok deraadt@

date 2021-04-15T07:28:37Z
author kettenis
files src/sys/arch/powerpc64/powerpc64/machdep.c log diff annotate
message The SSR1 register can have bits set that don't match to bits in the MSR
register. We would set the sc_ps member of struct sigcontext to SSR1
when entering a signal handler, and compare it to PSL_USER in sigreturn(2)
to make sure that the user code didn't set any bits it shouldn't set.
If non-MSR bits are set that comparison would fail and sigreturn(2) would
fail. Fix this by initializing sc_ps to PSL_USER instead of taking its
value from SSR1. On OpenBSD we always run processes with the same MSR
value.

ok deraadt@

date 2021-04-15T17:06:59Z
author patrick
files src/sys/dev/fdt/virtio_mmio.c log diff annotate
message Implement version 2 of virtio(4) at fdt, as used by Parallels on the
Apple M1. With this vio(4) shows up and we can properly install and
use OpenBSD as VM.

"not afraid of the virtio diff" deraadt@
"okie dokie" jcs@

date 2021-04-15T18:05:05Z
author stsp
files src/sys/net80211/ieee80211_node.c log diff annotate
message When starting an AP or IBSS network, reconfigure the operation mode to
11ac/n/a/g/b as applicable. Fixes an issue where hostap would end up
running in the rather meaningless MODE_AUTO unless a mode was explicitly
configured with ifconfig.

Found while investigating issues reported by trondd testing my athn RA patch.

ok deraadt@

date 2021-04-15T18:14:45Z
author stsp
files src/sys/dev/ic/athn.c log diff annotate
message Make athn(4) set the channel when hostap or monitor modes enter RUN state.

Fixes a problem where the hardware would end up using a different channel
than the one selected by net80211.

Found while investigating issues reported by trondd testing my athn RA patch.

ok deraadt@

date 2021-04-15T18:25:43Z
author stsp
files src/sys/dev/cardbus/if_athn_cardbus.c log diff annotate
src/sys/dev/ic/ar5008.c log diff annotate
src/sys/dev/ic/ar5416.c log diff annotate
src/sys/dev/ic/ar9003.c log diff annotate
src/sys/dev/ic/ar9280.c log diff annotate
src/sys/dev/ic/ar9285.c log diff annotate
src/sys/dev/ic/ar9287.c log diff annotate
src/sys/dev/ic/ar9380.c log diff annotate
src/sys/dev/ic/athn.c log diff annotate
src/sys/dev/ic/athnvar.h log diff annotate
message Switch athn(4) 802.11n Tx rate adaptation from MiRA to RA.

Tests:
AR5418: Uwe Werler
AR9280: kn, jmatthew, Lauri Tirkkonen, Scott Bennett, Mikolaj Kucharski
AR9285: kevlo, trondd, myself

ok deraadt@

date 2021-04-15T18:25:44Z
author stsp
files src/sys/dev/pci/if_athn_pci.c log diff annotate
src/sys/dev/usb/if_athn_usb.c log diff annotate
message Switch athn(4) 802.11n Tx rate adaptation from MiRA to RA.

Tests:
AR5418: Uwe Werler
AR9280: kn, jmatthew, Lauri Tirkkonen, Scott Bennett, Mikolaj Kucharski
AR9285: kevlo, trondd, myself

ok deraadt@

date 2021-04-15T18:32:19Z
author stsp
files src/sys/dev/pci/if_iwi.c log diff annotate
message Since iwi(4) doesn't call into net80211_newstate() the interface link state
must be updated by the driver in order to get packets to flow.

In case of WPA the link state was updated as a side-effect of a successful
WPA handshake. This commit fixes the WEP and plaintext cases.

Similar fix as recently committed to ipw(4).

Additionally, check for errors from iwi_auth_and_assoc() and keep scanning
if this function fails.

Problem confirmed and fix tested by matthieu@
ok deraadt@