From patchwork Fri Jun 10 15:00:19 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 869902 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5AF2wVL001690 for ; Fri, 10 Jun 2011 15:02:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756956Ab1FJPC5 (ORCPT ); Fri, 10 Jun 2011 11:02:57 -0400 Received: from smtp-out.google.com ([216.239.44.51]:10687 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755421Ab1FJPC4 (ORCPT ); Fri, 10 Jun 2011 11:02:56 -0400 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id p5AF2oGW016079; Fri, 10 Jun 2011 08:02:51 -0700 Received: from glenhelen.mtv.corp.google.com (glenhelen.mtv.corp.google.com [172.22.72.223]) by kpbe15.cbf.corp.google.com with ESMTP id p5AF2nDx014664; Fri, 10 Jun 2011 08:02:49 -0700 Received: by glenhelen.mtv.corp.google.com (Postfix, from userid 110058) id 1483C204D2; Fri, 10 Jun 2011 08:02:48 -0700 (PDT) From: Paul Stewart Date: Fri, 10 Jun 2011 07:00:19 -0800 Subject: [PATCH/Resend] mac80211: Start monitor work on restart To: linux-wireless@vger.kernel.org Cc: nbd@nbd.name, johannes@sipsolutions.net Message-Id: <20110610150249.1483C204D2@glenhelen.mtv.corp.google.com> X-System-Of-Record: true Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Jun 2011 15:02:59 +0000 (UTC) Trigger connection monitor on resume from suspend. Since we have been sleeping, there is reason to suspect that we might not still be associated. The speed of detecting loss of {connection,authentication} is worth the cost of the small additional traffic at resume. Signed-off-by: Paul Stewart Acked-by: Johannes Berg --- net/mac80211/mlme.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index d595265..c188238 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2206,6 +2206,7 @@ void ieee80211_sta_restart(struct ieee80211_sub_if_data *sdata) add_timer(&ifmgd->chswitch_timer); ieee80211_sta_reset_beacon_monitor(sdata); ieee80211_restart_sta_timer(sdata); + ieee80211_queue_work(&sdata->local->hw, &sdata->u.mgd.monitor_work); } #endif