]> 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)
commitd8549a2a8fd61130c613c9eda4361fc5103357dd
treed6e58a2fc91c3febd77651458a8a0e1dd2e0c499
parentbe887e5bf274ba9451fa2920e1e71be7c09204c2
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