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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user