diff options
author | Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> | 2019-11-18 11:23:10 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-11-20 10:42:58 +0300 |
commit | 4e14e76cee382619766176095ac0c10651980b66 (patch) | |
tree | 5ad0b9f57521ac0ba82994401aca56e3821e4c73 /drivers/net/wireless/quantenna/qtnfmac/commands.c | |
parent | 904628d3130b5aef0c9b06efa80e5a96f203e000 (diff) | |
download | linux-4e14e76cee382619766176095ac0c10651980b66.tar.xz |
qtnfmac: advertise netdev port parent ID
Use MAC address of the first active radio as a unique device ID.
Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna/qtnfmac/commands.c')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/commands.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/commands.c b/drivers/net/wireless/quantenna/qtnfmac/commands.c index cbc56464220e..1c1b377932cf 100644 --- a/drivers/net/wireless/quantenna/qtnfmac/commands.c +++ b/drivers/net/wireless/quantenna/qtnfmac/commands.c @@ -1242,10 +1242,7 @@ qtnf_cmd_resp_proc_mac_info(struct qtnf_wmac *mac, mac_info = &mac->macinfo; mac_info->bands_cap = resp_info->bands_cap; - memcpy(&mac_info->dev_mac, &resp_info->dev_mac, - sizeof(mac_info->dev_mac)); - - ether_addr_copy(mac->macaddr, mac_info->dev_mac); + ether_addr_copy(mac->macaddr, resp_info->dev_mac); vif = qtnf_mac_get_base_vif(mac); if (vif) |