summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-01-05 00:22:02 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-01-21 20:32:21 (GMT)
commit2a1a78d240c68b918406cb5b31a375eaf1dc1835 (patch)
treeb82c9adfb532608f615106627f05b5aa47d63380 /drivers
parent311dce71b6af263a630717d77bd49cffc0d122a5 (diff)
downloadlinux-fsl-qoriq-2a1a78d240c68b918406cb5b31a375eaf1dc1835.tar.xz
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')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rxon.c4
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 99e9650..6e80f10 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;