]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't store section offset/length in debugfs
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 May 2013 11:08:51 +0000 (13:08 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 16 May 2013 21:17:49 +0000 (23:17 +0200)
commit3f68124337bbbbf2ac22a22c1297a9f417a13575
tree2dd0958b74f5879f1105fe402fea335df294d648
parentc3c799f7e31a7c1333ad1001611a1895afd216b1
iwlwifi: mvm: don't store section offset/length in debugfs

When different images can (soon) be accessed through this
file, storing the section offset/length on first access to
the file breaks (or needs manual reset). Avoid this by not
storing the offset/length values but using them locally in
the function only. That way, the correct values are always
used.

While at it, correct the check that firmware is loaded.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/debugfs.c