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)
'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>

No differences found