iwlwifi: mvm: refactor beacon template command code
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Jun 2017 12:19:45 +0000 (15:19 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 09:41:44 +0000 (12:41 +0300)
commit09856582bffba3b4a3f6286d53be16c2a569c3ef
treefafd3c17356332fa537ddb860ec382eb473f10a2
parent57bcc81d52a264847944f6e2b812588fbab09e5d
iwlwifi: mvm: refactor beacon template command code

We currently support 3 different versions of the beacon template
command and the code does some tricks in order to reuse what is
possible across these versions.  But it is a bit complicated to read
and soon there will be one more variation that the driver needs
implement, which would complicate it even further.

Refactor the way we send beacon template commands, which increases the
code size a bit, but makes it much easier to read.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c