Skip to content

Commit

Permalink
mac80211: remove useless work starting
Browse files Browse the repository at this point in the history
Ever since we use only cfg80211 for configuration,
there is no configuration that could be pending at
this point, cfg80211 will have the configuration
that is pending and apply it afterwards.

Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
jmberg authored and linvjw committed Jun 3, 2010
1 parent 761ab47 commit e0961f1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,15 +321,6 @@ static int ieee80211_open(struct net_device *dev)

ieee80211_recalc_ps(local, -1);

/*
* ieee80211_sta_work is disabled while network interface
* is down. Therefore, some configuration changes may not
* yet be effective. Trigger execution of ieee80211_sta_work
* to fix this.
*/
if (sdata->vif.type == NL80211_IFTYPE_STATION)
ieee80211_queue_work(&local->hw, &sdata->u.mgd.work);

netif_tx_start_all_queues(dev);

return 0;
Expand Down

0 comments on commit e0961f1

Please sign in to comment.