diff options
author | Eran Harary <eran.harary@intel.com> | 2014-06-29 12:53:06 +0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-07-07 22:41:12 +0400 |
commit | ca55eb47822560e56b126eeb05b3cd0b8415acfd (patch) | |
tree | 54567bb334bac78a4a917790e249d6059e79f088 /drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | |
parent | b14fc2befb3bdd01d05d2e399b05c9c8ead6a5ca (diff) | |
download | linux-ca55eb47822560e56b126eeb05b3cd0b8415acfd.tar.xz |
iwlwifi: 8000: drop a print when the address is invalid
when driver takes the MAC address from the HW section and
it isn't valid - print an error.
Signed-off-by: Eran Harary <eran.harary@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-nvm-parse.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c index dd76ed28884d..018af2957d3b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/iwlwifi/iwl-nvm-parse.c @@ -549,6 +549,9 @@ static void iwl_set_hw_address_family_8000(struct device *dev, data->hw_addr[1] = hw_addr[2]; data->hw_addr[0] = hw_addr[3]; } + if (!is_valid_ether_addr(data->hw_addr)) + IWL_ERR_DEV(dev, + "mac address from hw section is not valid\n"); return; } |