Since iwi(4) doesn't call into net80211_newstate() the interface link state
authorstsp <stsp@openbsd.org>
Thu, 15 Apr 2021 18:32:19 +0000 (18:32 +0000)
committerstsp <stsp@openbsd.org>
Thu, 15 Apr 2021 18:32:19 +0000 (18:32 +0000)
commite1a9b71e3eda83bbd991bc3da30e523209191e30
tree16707a39cc06fd327bec0e1f5fb8e98e49124778
parentd2dd70ac0a5fe22ca102dd594dce32a1fe581c76
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@
sys/dev/pci/if_iwi.c