Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202814
b: refs/heads/master
c: 3a4d4aa
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 3, 2010
1 parent 2055dbe commit d5d53f7
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 1f03baad4d0516f4bd3a4728d71ff00b01be930d
refs/heads/master: 3a4d4aa2d38e5305b5e93dffdc9dd2f975129328
14 changes: 11 additions & 3 deletions trunk/net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,15 @@ static void ieee80211_ibss_work(struct work_struct *work)
}
}

static void ieee80211_queue_ibss_work(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_ibss *ifibss = &sdata->u.ibss;
struct ieee80211_local *local = sdata->local;

set_bit(IEEE80211_IBSS_REQ_RUN, &ifibss->request);
ieee80211_queue_work(&local->hw, &ifibss->work);
}

static void ieee80211_ibss_timer(unsigned long data)
{
struct ieee80211_sub_if_data *sdata =
Expand All @@ -810,8 +819,7 @@ static void ieee80211_ibss_timer(unsigned long data)
return;
}

set_bit(IEEE80211_IBSS_REQ_RUN, &ifibss->request);
ieee80211_queue_work(&local->hw, &ifibss->work);
ieee80211_queue_ibss_work(sdata);
}

#ifdef CONFIG_PM
Expand Down Expand Up @@ -859,7 +867,7 @@ void ieee80211_ibss_notify_scan_completed(struct ieee80211_local *local)
if (!sdata->u.ibss.ssid_len)
continue;
sdata->u.ibss.last_scan_completed = jiffies;
mod_timer(&sdata->u.ibss.timer, 0);
ieee80211_queue_ibss_work(sdata);
}
mutex_unlock(&local->iflist_mtx);
}
Expand Down

0 comments on commit d5d53f7

Please sign in to comment.