Do not send (normal) packets before we reach the run state. Logic copied
authorkettenis <kettenis@openbsd.org>
Fri, 30 Dec 2022 16:49:34 +0000 (16:49 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 30 Dec 2022 16:49:34 +0000 (16:49 +0000)
commitf549aee37da0b37ae1ebf15abdaa214f8a469509
tree5106f327a7a264e9afeb899095df0244c502de8d
parent708e0c628cd89711c4b165068a45d5f5860235f2
Do not send (normal) packets before we reach the run state.  Logic copied
from iwm(4), which also looks at the TX_MGMT_ONLY flag.  We don't expect
that flag to be ever set for bwfm(4), but it shouldn't hurt and it keeps
things consistent across drivers.

This fixes issues with suspend/resume (including firmware crashes seen on
the M2 Macbook Air).

ok patrick@, stsp@
sys/dev/ic/bwfm.c