iwlwifi: mvm: store latest power command for debugfs read
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 28 Jan 2014 07:13:04 +0000 (09:13 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 3 Feb 2014 20:43:55 +0000 (22:43 +0200)
commit474b50c30864a342d47e5d4a4a69df5750fa4254
tree7d33a74978e931b8dad951c22bcd547dffbe38ec
parent06280a2ba9050cd8bc15a03aa22b24698a3ea742
iwlwifi: mvm: store latest power command for debugfs read

Instead of re-building the power command upon debugfs read,
store the latest command sent to the firmware.
This reduces the code complexity by reducing the number of
entries in the power code.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Alexander Bondar <alexander.bondar@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mvm.h
drivers/net/wireless/iwlwifi/mvm/power.c