summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-10-28Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE PHY_OP notification which willStefan Sperling
be generated by version 17 firmware. While at it, declare all known firmware command groups and all PHY_OPS subcomand ids. Patch by Imre Vadasz, with tweaks by me ok patrick@
2019-10-28Get rid of version 1 of iwm's time event firmware API.Stefan Sperling
All supported firmware versions support IWM_UCODE_TLV_FLAGS_TIME_EVENT_API_V2. Rename struct iwm_time_event_cmd_v2 to iwm_time_event_cmd, and remove helper functions for converting from V2 API structs to V1 versions. Patch by Imre Vadasz ok patrick@
2019-10-28Remove a couple of unneeded IWM_UCODE_TLV_FLAGS_* flags:Stefan Sperling
IWM_UCODE_TLV_FLAGS_PM_CMD_SUPPORT IWM_UCODE_TLV_FLAGS_NEWBT_COEX IWM_UCODE_TLV_FLAGS_BF_UPDATED IWM_UCODE_TLV_FLAGS_D3_CONTINUITY_API IWM_UCODE_TLV_FLAGS_STA_KEY_CMD IWM_UCODE_TLV_FLAGS_DEVICE_PS_CMD IWM_UCODE_TLV_FLAGS_SCHED_SCAN All supported firmware versions have these flags set. Patch by Imre Vadasz ok patrick@
2019-10-28Remove unneeded IWM_UCODE_TLV_FLAGS_RX_ENERGY_API flag.Stefan Sperling
All supported firmware versions have this feature flag set. Remove now unneeded iwm_calc_rssi() function. Patch by Imre Vadasz. ok patrick@
2019-10-28Do not set IWM_SF_CFG_DUMMY_NOTIF_OFF bit in iwm SF_CFG firmware command.Stefan Sperling
It is only required for devices connected via SDIO which we do not support. Patch by Imre Vadasz ok patrick@
2019-10-28Skip the 'update MCC' command if iwm 8k firmware supports LocationStefan Sperling
Aware Regulatory (LAR) mode and LAR is disabled according to NVM. Patch by Imre Vadasz. ok patrick@
2019-10-28Use 0x6c as permanent ID for IWM_PHY_DB_CMD; remove incorrect comment.Stefan Sperling
Patch by Imre Vadasz. Matches Linux commit 176aa60bf148b5af4209ac323cef941dee76e390 by Sara Sharon. ok patrick@
2019-10-28Remove unused DEFAULT_MAX_TX_POWER definition from if_iwmreg.h,Stefan Sperling
which had a value different from the IWL_DEFAULT_MAX_TX_POWER constant in Linux iwlwifi. Patch by Imre Vadasz. ok patrick@
2019-10-28The iwm_prepare_card_hw() call in iwm_attach() is only needed on 8k devices.Stefan Sperling
Patch by Imre Vadasz. ok patrick@
2019-10-28iwm: tweak post-alive NIC locking to more closely match how Linux does itStefan Sperling
ok patrick@
2019-10-28iwm: enlarge maximum NVM section size; required for newer firmwareStefan Sperling
ok patrick@
2019-10-28Add missing KERNEL_UNLOCK.Mark Kettenis
ok guenther@, mpi@
2019-10-28Better error handling for bwfm(4) connection attempts. When we failPatrick Wildt
to connect, e.g. due to a timeout, we will switch the state to SCAN. Unfortunately this skips clearing the active channel set, which means that on a scan on all bands only the nodes on the active channel set, which is defined by whatever node we tried to connect to, are allowed and all other APs are ignored. Fix this by properly calling begin_scan(). When we fail to connect and start a scan, make sure to let the chip know that we don't want to associate anymore. Another issue existed when we interrupt a scan, for instance by setting a new nwid or wpakey. In this case we didn't abort the scan and started a new scan while the old one as still active. This could lead to a SCAN -> SCAN transition loop. Remove the "set ssid" event, since this would be an event in addition to a failed auth/assoc event, which would make us try to handle failure twice. Discussed with and ok stsp@
2019-10-28Fix atomic_sub_long_nv() on mips64. The negation should useVisa Hankala
64-bit unsigned arithmetic.
2019-10-28Start with empty rather than NULL window name to avoid NULL printf ifNicholas Marriott
window_name is evaluated early. Reported by Mikolaj Kucharski.
2019-10-28merge version directly into codeTheo de Raadt
2019-10-27tweak the rx path to look more like the tx path.David Gwynne
it's a bit shorter, and a bit more correct wrt use of bus_dma. still a bit to go though.
2019-10-27Mark the _Qp_{mul,div,add,sub} functions as 'protected' to eliminatePhilip Guenther
PLT entries and prevent overriding ok kettenis@ deraadt@
2019-10-27Add i.MX5/6 support and enable this driver on armv7(4).Mark Kettenis
ok jsg@, patrick@
2019-10-27No need for <sys/uio.h> as writev(2) isn't used any more.Jeremie Courreges-Anglas
2019-10-27Don't fail hard if we can't preallocate history storage.Jeremie Courreges-Anglas
Using alloc.c for the history array brings no value and prevents easy handling of memory shortage. Switch to plain reallocarray and keep running if HISTSIZE is too big. The allocation is still done upfront with no sanity checking, it would probably be nicer to allocate space as needed. Issue reported by thomas@habets.se who suggested a different approach.
2019-10-27+ resets P as wellkn
The manual has it, complete the help screen. OK millert
2019-10-27Print interface index and name for RTM_NEWADDR, RTM_DELADDR andKenneth R Westerback
RTM_CHGADDRATTR messages. Be consistant and eliminate ':' after all 'name's. ok bluhm@
2019-10-27Add code to spin up secondary CPUs.Mark Kettenis
ok jsg@
2019-10-27Require at least one interface with -ikn
Either a positive count is given or -i is omitted entirely; vm.conf(5) does not allow interface configuration that results in zero interfaces either. Raise the minimium count value to one and tell more about invalid counts with the usual strtonum(3) idiom. OK reyk
2019-10-27Add simplefb(4).Mark Kettenis
2019-10-27fix the last commit.David Gwynne
if gen is toggled per packet, then it needs to be toggled before each packet, not before the loop. also, if 0 out the right offload. brad pointed out the if 0 bit.
2019-10-27Document retguard for octeon in clang-local.mortimer
Prodded by Janne Johansson - thanks!
2019-10-26put vlan tag offload back inDavid Gwynne
2019-10-26make vmx transmit (vmxnet3_start) mpsafe.David Gwynne
to make mpsafetey a bit easier to figure out i disabled checksum and vlan offload. i'll put them back in soon though.
2019-10-26avoid rxr races between rxfill from the interrupt and timeout pathsDavid Gwynne
vmx "hardware" seems to be able to use rx descriptors as soon as theyre filled in, which means filling the ring from a timeout can run conccurently with an isr that's pulling stuff off the ring. this is mostly a problem with the rxr accounting, so we serialise updates to the alive counter by running rxfill in a mutex. most of the investigation was done by claudio@ and mathieu@ an earlier version of this diff was tested hard by mathieu@ and was ok@ claudio
2019-10-26clock_getres(2): actually return the resolution of the given clockcheloha
Currently we return (1000000000 / hz) from clock_getres(2) as the resolution for every clock. This is often untrue. For CPUTIME clocks, if we have a separate statclock interrupt the resolution is (1000000000 / stathz). Otherwise it is as we currently claim: (1000000000 / hz). For the REALTIME/MONOTONIC/UPTIME/BOOTTIME clocks the resolution is that of the active timecounter. During tc_init() we can compute the precision of a timecounter by examining its tc_counter_mask and store it for lookup later in a new member, tc_precision. The resolution of a clock backed by a timecounter "tc" is then tc.tc_precision * (2^64 / tc.tc_frequency) fractional seconds. While here we can clean up sys_clock_getres() a bit. Standards input from guenther@. Lots of input, feedback from kettenis@. ok kettenis@
2019-10-26Remove common from "common options" in usage to be closer to SYNOPSIS.Martijn van Duren
Discussed with jmc@
2019-10-26Stop exporting the internal _mcount symbol as that's only referencedPhilip Guenther
by the ASM stub, which is also in libc. The compiler only generates invocations of the latter. ok mpi@ deraadt@ kettenis@
2019-10-26The starttls command doesn't have a value with its extended request.Martijn van Duren
The handling of this changed with libutil/ber.c r1.12 resulting in starttls failing. Found by several. Fix suggestion by roklein <at> roklein <dot> de OK claudio@
2019-10-26Shorten the SYNOPSIS greatly.Martijn van Duren
While here also fix some wrong definitions. With help from jmc@ Requested by and OK deraadt@
2019-10-26Wrap long lines.Antoine Jacoutot
2019-10-26Correct some ASM in a commentPhilip Guenther
2019-10-26use ftp -N option; ok jcaTheo de Raadt
2019-10-25Forgot to add '\30AUTOONF4" to ifnetflags[].Kenneth R Westerback
route will now show "AUTOCONF4" in flags.
2019-10-25Split out the code that brings us out of HYP mode and the code thatMark Kettenis
initializes the MMU into its own functions and move them to locore.S. ok patrick@
2019-10-25Add tests for ifconfig(8) with inet6 addresses.Alexander Bluhm
2019-10-25Free maskHash when RSA_PSS_PARAMS is freed.Joel Sing
ok tb@
2019-10-25Retracted a bit too much.Antoine Jacoutot
2019-10-25Add glass console for armv7. Similar to what we did on arm64 two years ago.Mark Kettenis
ok patrick@
2019-10-25Make it possible to switch to framebuffer "glass" console in case itMark Kettenis
isn't the default already. Same change as we made on arm64 two months ago. ok patrick@
2019-10-25ifname in opentap() is not optionalkn
The function argument is not checked at all and the only caller in config.c always passes a buffer valid buffer. Defer the error case's default value to the end to avoid rewriting in case a node is opened. Feedback and OK reyk
2019-10-25Remove some space before tab and other small indentation errors.Claudio Jeker
2019-10-25handle aggr(4) in the same way as trunk(4)David Gwynne
from brad@ ok bluhm@ claudio@ deraadt@
2019-10-25Adjust whitespace, so Ta macros are aligned vertically as already done inTheo Buehler
ober_add_string.3 and as it was before the ber -> ober rename.