Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90101
b: refs/heads/master
c: 69d3b6f
h: refs/heads/master
i:
  90099: 80032ab
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 6, 2008
1 parent aa124b4 commit a7e3656
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 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: 2a8ca29a88e3858685c463ffd19e11c20d14c73a
refs/heads/master: 69d3b6f491545d326135a1def4e290cd577c9a36
25 changes: 18 additions & 7 deletions trunk/net/mac80211/ieee80211_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -3576,6 +3576,13 @@ static void ieee80211_send_nullfunc(struct ieee80211_local *local,
}


static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata)
{
if (sdata->vif.type == IEEE80211_IF_TYPE_STA ||
ieee80211_vif_is_mesh(&sdata->vif))
ieee80211_sta_timer((unsigned long)sdata);
}

void ieee80211_scan_completed(struct ieee80211_hw *hw)
{
struct ieee80211_local *local = hw_to_local(hw);
Expand All @@ -3589,6 +3596,12 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw)

if (local->sta_hw_scanning) {
local->sta_hw_scanning = 0;
/* Restart STA timer for HW scan case */
rcu_read_lock();
list_for_each_entry_rcu(sdata, &local->interfaces, list)
ieee80211_restart_sta_timer(sdata);
rcu_read_unlock();

goto done;
}

Expand All @@ -3615,14 +3628,12 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw)
if (sdata->dev == local->mdev)
continue;

if (sdata->vif.type == IEEE80211_IF_TYPE_STA) {
if (sdata->u.sta.flags & IEEE80211_STA_ASSOCIATED)
ieee80211_send_nullfunc(local, sdata, 0);
ieee80211_sta_timer((unsigned long)sdata);
}
/* Tell AP we're back */
if (sdata->vif.type == IEEE80211_IF_TYPE_STA &&
sdata->u.sta.flags & IEEE80211_STA_ASSOCIATED)
ieee80211_send_nullfunc(local, sdata, 0);

if (sdata->vif.type == IEEE80211_IF_TYPE_MESH_POINT)
ieee80211_sta_timer((unsigned long)sdata);
ieee80211_restart_sta_timer(sdata);

netif_wake_queue(sdata->dev);
}
Expand Down

0 comments on commit a7e3656

Please sign in to comment.