iwlwifi: use big-endian for the hw section of the nvm
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 17 Aug 2017 15:51:56 +0000 (18:51 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 18 Aug 2017 14:36:42 +0000 (17:36 +0300)
commit8fe34b060a4b11be35ffd9383acdd0bc7bee72e2
tree438032078fe8818c743c3bac6d5ee31a15fb8a40
parentee4fe54024f071976120dce71aefe056dfab4eb7
iwlwifi: use big-endian for the hw section of the nvm

Unlike the other sections of the NVM, the hw section is in big-endian.
To read a value from it, we had to cast it to __be16.  Fix that by
using __be16 * for the entire section.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c