OpenBSD wlan drivers: We cannot back out of initialization at preinit.

Otherwise we get KDLs. Fixes #17811.
This commit is contained in:
Augustin Cavalier
2022-07-01 22:09:06 -04:00
parent 27fda3e46f
commit 7ff2f10462
2 changed files with 2 additions and 4 deletions
@@ -11029,8 +11029,7 @@ iwx_attach(struct device *parent, struct device *self, void *aux)
ic->ic_ampdu_tx_stop = NULL;
#ifdef __HAIKU__
if (iwx_preinit(sc) != 0)
goto fail4;
iwx_preinit(sc);
#else
/*
* We cannot read the MAC address without loading the
@@ -12131,8 +12131,7 @@ iwm_attach(struct device *parent, struct device *self, void *aux)
ic->ic_ampdu_tx_start = iwm_ampdu_tx_start;
ic->ic_ampdu_tx_stop = iwm_ampdu_tx_stop;
#ifdef __HAIKU__
if (iwm_preinit(sc) != 0)
goto fail4;
iwm_preinit(sc);
#else
/*
* We cannot read the MAC address without loading the