Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214682
b: refs/heads/master
c: 2d2080c
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Sep 16, 2010
1 parent 9fd8a50 commit 7510102
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 46a5ebaf02d69e26ee0f47a0b8d2d9bc619240d4
refs/heads/master: 2d2080c3c1d52e186166afc3efe5067291e618bf
5 changes: 3 additions & 2 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
netif_carrier_on(dev);
}

set_bit(SDATA_STATE_RUNNING, &sdata->state);

if (sdata->vif.type == NL80211_IFTYPE_WDS) {
/* Create STA entry for the WDS peer */
sta = sta_info_alloc(sdata, sdata->u.wds.remote_addr,
Expand Down Expand Up @@ -331,8 +333,6 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)

netif_tx_start_all_queues(dev);

set_bit(SDATA_STATE_RUNNING, &sdata->state);

return 0;
err_del_interface:
drv_remove_interface(local, &sdata->vif);
Expand All @@ -343,6 +343,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);
clear_bit(SDATA_STATE_RUNNING, &sdata->state);
return res;
}

Expand Down

0 comments on commit 7510102

Please sign in to comment.