iwlwifi: mvm: dump to debugfs the SRAM as binary
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Dec 2013 12:58:29 +0000 (14:58 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 31 Dec 2013 17:03:48 +0000 (19:03 +0200)
commitd510342feebddbcd9d2e245cf97575a7464fe810
tree947d583f2eca84a6e77a5a304c5a28b9bc823cc5
parentd2ccc902da2312f6327d3487e4ca4e07ef18d4d2
iwlwifi: mvm: dump to debugfs the SRAM as binary

This allows to format it at will using external tools.
Since different teams want it in different formats, dump
the raw data and everyone can play with the data the way
they want.

While at it - make this code slightly more robust by making
the required verification on the offsets / length in the
write handler.

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