Skip to content

Commit

Permalink
iwlagn: return error if PAN disable timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jan 21, 2011
1 parent 311dce7 commit 2a1a78d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/wireless/iwlwifi/iwl-agn-rxon.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ static int iwlagn_disable_pan(struct iwl_priv *priv,
signed long wait_res;

wait_res = iwlagn_wait_notification(priv, &disable_wait, HZ);
if (wait_res == 0)
if (wait_res == 0) {
IWL_ERR(priv, "Timed out waiting for PAN disable\n");
ret = -EIO;
}
}

return ret;
Expand Down

0 comments on commit 2a1a78d

Please sign in to comment.