mac80211: Start monitor work on restart
authorPaul Stewart <pstew@chromium.org>
Fri, 10 Jun 2011 15:00:19 +0000 (07:00 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 17 Jun 2011 18:22:16 +0000 (14:22 -0400)
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 <pstew@chromium.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index 0c6e9ef8c7f870b2d6863a902e0b00857978b8fd..faca5033f061cd8d125256d7633781cd437b2666 100644 (file)
@@ -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