mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 15:43:59 +08:00
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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user