Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170608
b: refs/heads/master
c: 0adc23f
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Oct 7, 2009
1 parent 843d27b commit e2c8e04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: ff9fc791940f9ff51387c35f9332efe5007154f1
refs/heads/master: 0adc23f58e21cb47be998063ea1b82de33ccdd46
5 changes: 4 additions & 1 deletion trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ static int ieee80211_open(struct net_device *dev)
* No need to check netif_running since we do not allow
* it to start up with this invalid address.
*/
if (compare_ether_addr(null_addr, ndev->dev_addr) == 0)
if (compare_ether_addr(null_addr, ndev->dev_addr) == 0) {
memcpy(ndev->dev_addr,
local->hw.wiphy->perm_addr,
ETH_ALEN);
memcpy(ndev->perm_addr, ndev->dev_addr, ETH_ALEN);
}
}

/*
Expand Down Expand Up @@ -784,6 +786,7 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name,
goto fail;

memcpy(ndev->dev_addr, local->hw.wiphy->perm_addr, ETH_ALEN);
memcpy(ndev->perm_addr, ndev->dev_addr, ETH_ALEN);
SET_NETDEV_DEV(ndev, wiphy_dev(local->hw.wiphy));

/* don't use IEEE80211_DEV_TO_SUB_IF because it checks too much */
Expand Down

0 comments on commit e2c8e04

Please sign in to comment.