mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
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:
parent
f578843da4
commit
2e1033fcf1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user