Skip to content

Commit

Permalink
iwl3945: check ucode load error code
Browse files Browse the repository at this point in the history
Check successful completion of BSM loading. Give a chance to
load BSM again. If BSM loading is unsuccessful we should exit
and not initilize NIC. Before this checking even if the BSM loading failed
driver tries to initilize the NIC which should not be the case.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
  • Loading branch information
Abhijeet Kolekar authored and Reinette Chatre committed Mar 10, 2010
1 parent edc1a3a commit 75a9a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2697,7 +2697,7 @@ static int __iwl3945_up(struct iwl_priv *priv)
/* load bootstrap state machine,
* load bootstrap program into processor's memory,
* prepare to load the "initialize" uCode */
priv->cfg->ops->lib->load_ucode(priv);
rc = priv->cfg->ops->lib->load_ucode(priv);

if (rc) {
IWL_ERR(priv,
Expand Down

0 comments on commit 75a9a92

Please sign in to comment.