iwlwifi: add support for getting HW address from CSR
authorSara Sharon <sara.sharon@intel.com>
Mon, 7 Mar 2016 12:18:29 +0000 (14:18 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 9 Mar 2016 18:59:19 +0000 (20:59 +0200)
commit17c867bfe89bd2e089752ac938468900387acbe2
treee6a9f7d80eae175145dbe2311bb0ff0e8c4ca5b0
parent7b5424361ec9270f40c3e23cb747cc8b9ee66235
iwlwifi: add support for getting HW address from CSR

From 9000 family on, we need to get HW address from host
CSR registers.
OEM can override it by fusing the override registers - read
those first, and if those are 0 - read the OTP registers instead.

In addition - bail out if no valid mac address is present. Make
it shared for all NICs.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-9000.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/iwl-csr.h
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c