Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170989
b: refs/heads/master
c: 53623f1
h: refs/heads/master
i:
  170987: cb01697
v: v3
  • Loading branch information
John W. Linville committed Oct 27, 2009
1 parent 649806e commit 6a12f75
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 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: e5e2647fd6ceef2cdc479954b84517535eb7febd
refs/heads/master: 53623f1a09c7a7d23b74f0f7d93dba0ebde1006b
4 changes: 2 additions & 2 deletions trunk/net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ static int ieee80211_open(struct net_device *dev)
if (sdata->vif.type == NL80211_IFTYPE_STATION)
ieee80211_queue_work(&local->hw, &sdata->u.mgd.work);

netif_tx_start_all_queues(dev);
netif_start_queue(dev);

return 0;
err_del_interface:
Expand Down Expand Up @@ -343,7 +343,7 @@ static int ieee80211_stop(struct net_device *dev)
/*
* Stop TX on this interface first.
*/
netif_tx_stop_all_queues(dev);
netif_stop_queue(dev);

/*
* Now delete all active aggregation sessions.
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ static void ieee80211_set_associated(struct ieee80211_sub_if_data *sdata,
ieee80211_recalc_ps(local, -1);
mutex_unlock(&local->iflist_mtx);

netif_tx_start_all_queues(sdata->dev);
netif_start_queue(sdata->dev);
netif_carrier_on(sdata->dev);
}

Expand Down Expand Up @@ -1061,7 +1061,7 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
* time -- we don't want the scan code to enable queues.
*/

netif_tx_stop_all_queues(sdata->dev);
netif_stop_queue(sdata->dev);
netif_carrier_off(sdata->dev);

rcu_read_lock();
Expand Down
10 changes: 5 additions & 5 deletions trunk/net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)
if (sdata->vif.type == NL80211_IFTYPE_STATION) {
if (sdata->u.mgd.associated) {
ieee80211_scan_ps_disable(sdata);
netif_tx_wake_all_queues(sdata->dev);
netif_wake_queue(sdata->dev);
}
} else
netif_tx_wake_all_queues(sdata->dev);
netif_wake_queue(sdata->dev);

/* re-enable beaconing */
if (sdata->vif.type == NL80211_IFTYPE_AP ||
Expand Down Expand Up @@ -364,7 +364,7 @@ static int ieee80211_start_sw_scan(struct ieee80211_local *local)
* are handled in the scan state machine
*/
if (sdata->vif.type != NL80211_IFTYPE_STATION)
netif_tx_stop_all_queues(sdata->dev);
netif_stop_queue(sdata->dev);
}
mutex_unlock(&local->iflist_mtx);

Expand Down Expand Up @@ -523,7 +523,7 @@ static void ieee80211_scan_state_leave_oper_channel(struct ieee80211_local *loca
continue;

if (sdata->vif.type == NL80211_IFTYPE_STATION) {
netif_tx_stop_all_queues(sdata->dev);
netif_stop_queue(sdata->dev);
if (sdata->u.mgd.associated)
ieee80211_scan_ps_enable(sdata);
}
Expand Down Expand Up @@ -558,7 +558,7 @@ static void ieee80211_scan_state_enter_oper_channel(struct ieee80211_local *loca
if (sdata->vif.type == NL80211_IFTYPE_STATION) {
if (sdata->u.mgd.associated)
ieee80211_scan_ps_disable(sdata);
netif_tx_wake_all_queues(sdata->dev);
netif_wake_queue(sdata->dev);
}
}
mutex_unlock(&local->iflist_mtx);
Expand Down

0 comments on commit 6a12f75

Please sign in to comment.