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)
commit0ff1bd35f5aece42879b04cbfe6b4040cf50a697
treed6e58a2fc91c3febd77651458a8a0e1dd2e0c499
parentbd408b33363035275403cfaadf2683d8c8e22dd7
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