mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
311dce71b6
commit
2a1a78d240
|
@ -74,8 +74,10 @@ static int iwlagn_disable_pan(struct iwl_priv *priv,
|
||||||
signed long wait_res;
|
signed long wait_res;
|
||||||
|
|
||||||
wait_res = iwlagn_wait_notification(priv, &disable_wait, HZ);
|
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");
|
IWL_ERR(priv, "Timed out waiting for PAN disable\n");
|
||||||
|
ret = -EIO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue