mirror of https://gitee.com/openkylin/linux.git
iwlwifi: mvm: print base HW address during init
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>
This commit is contained in:
parent
a8d011446b
commit
4409e72b71
|
@ -640,6 +640,8 @@ static int iwl_set_hw_address(struct iwl_trans *trans,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IWL_INFO(trans, "base HW address: %pM\n", data->hw_addr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -599,6 +599,8 @@ int iwl_mvm_nvm_get_from_fw(struct iwl_mvm *mvm)
|
||||||
goto err_free;
|
goto err_free;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IWL_INFO(trans, "base HW address: %pM\n", mvm->nvm_data->hw_addr);
|
||||||
|
|
||||||
/* Initialize general data */
|
/* Initialize general data */
|
||||||
mvm->nvm_data->nvm_version = le16_to_cpu(rsp->general.nvm_version);
|
mvm->nvm_data->nvm_version = le16_to_cpu(rsp->general.nvm_version);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue