diff --git a/[refs] b/[refs] index 5b3b1eab6aaa..814b5b449455 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 133d40f9a22bdfd2617a446f1e3209537c5415ec +refs/heads/master: 5f5460706e5feaef286aacce37647f7e57d026e4 diff --git a/trunk/net/mac80211/work.c b/trunk/net/mac80211/work.c index 1f74af33901b..b2650a9d45ff 100644 --- a/trunk/net/mac80211/work.c +++ b/trunk/net/mac80211/work.c @@ -122,9 +122,6 @@ static void ieee80211_work_work(struct work_struct *work) enum work_action rma; bool remain_off_channel = false; - if (local->scanning) - return; - /* * ieee80211_queue_work() should have picked up most cases, * here we'll pick the rest. @@ -134,6 +131,11 @@ static void ieee80211_work_work(struct work_struct *work) mutex_lock(&local->mtx); + if (local->scanning) { + mutex_unlock(&local->mtx); + return; + } + ieee80211_recalc_idle(local); list_for_each_entry_safe(wk, tmp, &local->work_list, list) {