浏览代码

iwlagn: check rf kill in queue stuck

check the RF KILL flag in queue stuck watch dog function

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Wey-Yi Guy 14 年之前
父节点
当前提交
46e7741ea1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/net/wireless/iwlwifi/iwl-core.c

+ 3 - 0
drivers/net/wireless/iwlwifi/iwl-core.c

@@ -1781,6 +1781,9 @@ void iwl_bg_watchdog(unsigned long data)
 	if (test_bit(STATUS_EXIT_PENDING, &priv->shrd->status))
 		return;
 
+	if (iwl_is_rfkill(priv->shrd))
+		return;
+
 	timeout = priv->cfg->base_params->wd_timeout;
 	if (timeout == 0)
 		return;