Skip to content
Snippets Groups Projects
Commit 7ce5d222 authored by Danny Kukawka's avatar Danny Kukawka Committed by David S. Miller
Browse files

net: use eth_hw_addr_random() and reset addr_assign_type


Use eth_hw_addr_random() instead of calling random_ether_addr()
to set addr_assign_type correctly to NET_ADDR_RANDOM.

Reset the state to NET_ADDR_PERM as soon as the MAC get
changed via .ndo_set_mac_address.

v2: adapt to renamed eth_hw_addr_random()

Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f2cedb63
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 14 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment