iwlwifi: mvm: print base HW address during init
authorLuca Coelho <luciano.coelho@intel.com>
Tue, 9 May 2017 19:46:19 +0000 (22:46 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 23 Jun 2017 09:20:16 +0000 (12:20 +0300)
It's sometimes hard to find out which HW address the iwlwifi device is
using, for instance when reading crouded sniffer logs.  To make it
easier, print out an info level message with the HW address as soon as
we know it.

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

index 070f3dfb94ce57c0a7365c0db1365b27dbd6e01f..5c08f4d40f6ac78fbdeb575e152742c9c0a3cef5 100644 (file)
@@ -640,6 +640,8 @@ static int iwl_set_hw_address(struct iwl_trans *trans,
                return -EINVAL;
        }
 
+       IWL_INFO(trans, "base HW address: %pM\n", data->hw_addr);
+
        return 0;
 }
 
index efdcffbaac6f908ab526379823e645c40d331483..dac7e542a190641b736d83d7c31cedaef867477c 100644 (file)
@@ -599,6 +599,8 @@ int iwl_mvm_nvm_get_from_fw(struct iwl_mvm *mvm)
                goto err_free;
        }
 
+       IWL_INFO(trans, "base HW address: %pM\n", mvm->nvm_data->hw_addr);
+
        /* Initialize general data */
        mvm->nvm_data->nvm_version = le16_to_cpu(rsp->general.nvm_version);