iwlwifi: treat iwl_parse_nvm_data() MAC addr as little endian
authorJohannes Berg <johannes.berg@intel.com>
Sun, 24 Jan 2016 14:28:43 +0000 (15:28 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 1 Feb 2016 14:40:25 +0000 (16:40 +0200)
commitc257d5fb52872213f33016c0750bc2334a781700
tree57eeefc55508aa98a454dae14960fe8cdbfd4006
parent81f02ba3dbe0c9133dc4490f0a7d3acd99a89aad
iwlwifi: treat iwl_parse_nvm_data() MAC addr as little endian

The MAC address parameters passed to iwl_parse_nvm_data() are passed on
to iwl_set_hw_address_family_8000() which treats them as little endian.
Annotate them as such, and add the missing byte-swapping in mvm.

While at it, add the MAC address to the error to make debugging issues
with it easier.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@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