Patch "iwlwifi: check for valid ethernet address provided by OEM" has been added to the 4.8-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iwlwifi: check for valid ethernet address provided by OEM
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
iwlwifi-check-for-valid-ethernet-address-provided-by-oem.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a6c934b364948cd4de5bd9ab055bb65206ec70f3Mon Sep 17 00:00:00 2001
From: Haim Dreyfuss <[email protected]>
Date: Tue, 2 Aug 2016 15:28:23 +0300
Subject: iwlwifi: check for valid ethernet address provided by OEM
From: Haim Dreyfuss <[email protected]>
commit a6c934b364948cd4de5bd9ab055bb65206ec70f3 upstream.
In 9000 family products we added an option to let the OEM fuse the mac address via registers. If these registers are zeroed we use the OTP address instead. Make sure that the address provided by the OEM is valid and, if not, fall back to the OTP address as well.
--- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +10 -5
@@ -564,11 +564,16 @@ static void iwl_set_hw_address_from_csr(__le32 mac_addr0 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR0_STRAP ));__le32 mac_addr1 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR1_STRAP )); -/* If OEM did not fuse address - get it from OTP */ -if (!mac_addr0 && !mac_addr1) { - mac_addr0 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR0_OTP )); - mac_addr1 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR1_OTP )); - } +iwl_flip_hw_address (mac_addr0, mac_addr1, data->hw_addr); +/* +* If the OEM fused a valid address, use it instead of the one in the +* OTP +*/ +if (is_valid_ether_addr (data->hw_addr)) +return ; + + mac_addr0 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR0_OTP )); + mac_addr1 =cpu_to_le32 (iwl_read32 (trans,CSR_MAC_ADDR1_OTP ));iwl_flip_hw_address (mac_addr0, mac_addr1, data->hw_addr); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/iwlwifi-check-for-valid-ethernet-address-provided-by-oem.patch