iwlwifi: mvm: disentangle paging command structs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 13 Mar 2017 20:48:39 +0000 (21:48 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 2 Jun 2017 11:07:49 +0000 (14:07 +0300)
commit3b43fbcac4765ac5f7b92464b7d9685eaa34467b
tree9ac60df261c4bf5eeff0414af174b3c0e53d6e0e
parentaed35826d67f31afe010c1d25d204badf7057a25
iwlwifi: mvm: disentangle paging command structs

Instead of using a union and hard-coding the size difference,
declare both command structs properly, use a union on the
stack to build them and the right sizeof() for the size.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h
drivers/net/wireless/intel/iwlwifi/mvm/fw.c