提交 5f5deff3 编写于 作者: S Stanislaw Gruszka 提交者: John W. Linville

iwl3945: do not print RFKILL message

We can mess logs if user space try to open device again and again if
RFKILL switch is on. Do not print message and return ERFKILL error
instead to indicate where the problem is.

Note that iwl4965 handle this problem differently, it allows to open
device when radio is disabled.
Reported-by: NDietmar Rudolph <dietmar@crlf.de>
Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 60ce473e
...@@ -2396,8 +2396,7 @@ __il3945_up(struct il_priv *il) ...@@ -2396,8 +2396,7 @@ __il3945_up(struct il_priv *il)
clear_bit(S_RFKILL, &il->status); clear_bit(S_RFKILL, &il->status);
else { else {
set_bit(S_RFKILL, &il->status); set_bit(S_RFKILL, &il->status);
IL_WARN("Radio disabled by HW RF Kill switch\n"); return -ERFKILL;
return -ENODEV;
} }
_il_wr(il, CSR_INT, 0xFFFFFFFF); _il_wr(il, CSR_INT, 0xFFFFFFFF);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册