iwlagn: return error if PAN disable timeout
authorJohannes Berg <johannes.berg@intel.com>
Wed, 5 Jan 2011 00:22:02 +0000 (16:22 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Jan 2011 20:32:21 +0000 (15:32 -0500)
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>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c

index 99e96508b1dcde18885c71190b27e7b33d7f018f..6e80f1070c52c466c1b76ea1bf18d717e0a12472 100644 (file)
@@ -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;