idualwifi7260 & iaxwifi200: preinit() can fail.

This will prevent the device from even appearing in Network preferences
if firmware loading does not work.
This commit is contained in:
Augustin Cavalier 2022-06-20 13:04:00 -04:00
parent f578843da4
commit 2e1033fcf1
2 changed files with 4 additions and 2 deletions

View File

@ -11028,7 +11028,8 @@ iwx_attach(struct device *parent, struct device *self, void *aux)
ic->ic_ampdu_tx_stop = NULL;
#ifdef __HAIKU__
iwx_preinit(sc);
if (iwx_preinit(sc) != 0)
return -1;
#else
/*
* We cannot read the MAC address without loading the

View File

@ -12124,7 +12124,8 @@ 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__
iwm_preinit(sc);
if (iwm_preinit(sc) != 0)
return -1;
#else
/*
* We cannot read the MAC address without loading the