Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290203
b: refs/heads/master
c: 28009a6
h: refs/heads/master
i:
  290201: da01ec6
  290199: ed6e850
v: v3
  • Loading branch information
Danny Kukawka authored and David S. Miller committed Feb 17, 2012
1 parent 2efb49d commit 3169043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 067fb4c81944f8965a08cd91c0a1d66ccd09feea
refs/heads/master: 28009a6cab764f04d4e7c409c180c77b2ef36ba1
5 changes: 2 additions & 3 deletions trunk/net/batman-adv/soft-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ static int interface_set_mac_addr(struct net_device *dev, void *p)
}

memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
dev->addr_assign_type &= ~NET_ADDR_RANDOM;
return 0;
}

Expand Down Expand Up @@ -783,7 +784,6 @@ static const struct net_device_ops bat_netdev_ops = {
static void interface_setup(struct net_device *dev)
{
struct bat_priv *priv = netdev_priv(dev);
char dev_addr[ETH_ALEN];

ether_setup(dev);

Expand All @@ -800,8 +800,7 @@ static void interface_setup(struct net_device *dev)
dev->hard_header_len = BAT_HEADER_LEN;

/* generate random address */
random_ether_addr(dev_addr);
memcpy(dev->dev_addr, dev_addr, ETH_ALEN);
eth_hw_addr_random(dev);

SET_ETHTOOL_OPS(dev, &bat_ethtool_ops);

Expand Down

0 comments on commit 3169043

Please sign in to comment.