Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300701
b: refs/heads/master
c: 4d6c36f
h: refs/heads/master
i:
  300699: 22bcaf0
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Apr 11, 2012
1 parent 2d1d9b3 commit b89212b
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 3a25a8c8b75b430c4f4022918e26fa51d557ecde
refs/heads/master: 4d6c36fa227afc7b76b85ee48e3ef3972fe0ca23
6 changes: 3 additions & 3 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);

if (!is_valid_ether_addr(dev->dev_addr)) {
if (!local->open_count)
drv_stop(local);
return -EADDRNOTAVAIL;
res = -EADDRNOTAVAIL;
goto err_stop;
}
}

Expand Down Expand Up @@ -485,6 +484,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
sdata->bss = NULL;
if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)
list_del(&sdata->u.vlan.list);
/* might already be clear but that doesn't matter */
clear_bit(SDATA_STATE_RUNNING, &sdata->state);
return res;
}
Expand Down

0 comments on commit b89212b

Please sign in to comment.