Make the iwm(4) ioctl handler wait until the transition to SCAN has completed
authorstsp <stsp@openbsd.org>
Wed, 14 Jun 2017 16:56:50 +0000 (16:56 +0000)
committerstsp <stsp@openbsd.org>
Wed, 14 Jun 2017 16:56:50 +0000 (16:56 +0000)
commit90e46a7be75b277c317f80ee4ebed30b937dd0eb
tree7f3715f8004888e01e09b5db7243c58712961b9c
parent626e1a0594dfa3a93f068df763589b3682cce52a
Make the iwm(4) ioctl handler wait until the transition to SCAN has completed
when bringing the interface up. Otherwise we get racy behaviour when running
ifconfig commands which issue several ioctls in quick succession.
Should fix the occasional "could not initiate scan" errors.
ok deraadt@
sys/dev/pci/if_iwm.c