From patchwork Wed May 11 21:38:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Stewart X-Patchwork-Id: 848562 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p53L8kfS008106 for ; Fri, 3 Jun 2011 21:08:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932092Ab1FCVIg (ORCPT ); Fri, 3 Jun 2011 17:08:36 -0400 Received: from smtp-out.google.com ([216.239.44.51]:43541 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932087Ab1FCVIf (ORCPT ); Fri, 3 Jun 2011 17:08:35 -0400 Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id p53L8TB9007929; Fri, 3 Jun 2011 14:08:29 -0700 Received: from glenhelen.mtv.corp.google.com (glenhelen.mtv.corp.google.com [172.22.72.223]) by hpaq12.eem.corp.google.com with ESMTP id p53L8RXB007573; Fri, 3 Jun 2011 14:08:27 -0700 Received: by glenhelen.mtv.corp.google.com (Postfix, from userid 110058) id EA010203BB; Fri, 3 Jun 2011 14:08:26 -0700 (PDT) From: Paul Stewart Date: Wed, 11 May 2011 14:38:34 -0700 Subject: [PATCH] mac80211: Start monitor work on restart To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, nbd@openwrt.org Message-Id: <20110603210826.EA010203BB@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 (demeter2.kernel.org [140.211.167.43]); Fri, 03 Jun 2011 21:08:46 +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 --- 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 456cccf..41b9809 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2212,6 +2212,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