]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: disallow log_event access if interface down
authorRichard A. Griffiths <richardx.a.griffiths@intel.com>
Thu, 28 Jun 2012 20:14:11 +0000 (13:14 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Jul 2012 12:03:26 +0000 (14:03 +0200)
commit89d3c171026fbd4ab32c02e25559bddab2f26f52
treed6e58a2fc91c3febd77651458a8a0e1dd2e0c499
parenteb1d0dba53867c67a08e04d054bbaaec4c2dd98b
iwlwifi: disallow log_event access if interface down

'echo 1 > log_event' generates the bogus "MAC is in deep sleep"
or "Timeout waiting for hardware access" log messages when
the interface is down, we should just disallow accessing the
device through debugfs when it is down.

Signed-off-by: Richard A. Griffiths <richardx.a.griffiths@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/debugfs.c