diff options
author | 2011-01-04 16:22:02 -0800 | |
---|---|---|
committer | 2011-01-21 15:32:21 -0500 | |
commit | 2a1a78d240c68b918406cb5b31a375eaf1dc1835 (patch) | |
tree | b82c9adfb532608f615106627f05b5aa47d63380 /drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |
parent | iwlagn: properly wait for PAN disable (diff) | |
download | linux-2a1a78d240c68b918406cb5b31a375eaf1dc1835.tar.gz linux-2a1a78d240c68b918406cb5b31a375eaf1dc1835.tar.bz2 linux-2a1a78d240c68b918406cb5b31a375eaf1dc1835.zip |
iwlagn: return error if PAN disable timeout
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rxon.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index 99e96508b1dc..6e80f1070c52 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c @@ -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; |