public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Kalle Valo <kalle.valo@iki.fi>
Cc: "John W.Linville" <linville@tuxdriver.com>,
	Jaswinder Singh Rajput <jaswinder@kernel.org>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v2] mac80211: fix beacon loss detection after scan
Date: Sun, 19 Apr 2009 10:11:42 +0200	[thread overview]
Message-ID: <1240128702.25826.3.camel@johannes.local> (raw)
In-Reply-To: <20090419054719.16621.48938.stgit@tikku>

[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]

On Sun, 2009-04-19 at 08:47 +0300, Kalle Valo wrote:
> Currently beacon loss detection triggers after a scan. A probe request
> is sent and a message like this is printed to the log:
> 
> wlan0: beacon loss from AP 00:12:17:e7:98:de - sending probe request
> 
> But in fact there is no beacon loss, the beacons are just not received
> because of the ongoing scan. Fix it by updating last_beacon after
> the scan has finished.
> 
> Reported-by: Jaswinder Singh Rajput <jaswinder@kernel.org>
> Signed-off-by: Kalle Valo <kalle.valo@iki.fi>

Thanks.
Acked-by: Johannes Berg <johannes@sipsolutions.net>

> ---
> 
>  net/mac80211/mlme.c |   10 +++++++++-
>  1 files changed, 9 insertions(+), 1 deletions(-)
> 
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index c0f91d5..1b8509d 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -2005,9 +2005,17 @@ static void ieee80211_sta_work(struct work_struct *work)
>  
>  static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata)
>  {
> -	if (sdata->vif.type == NL80211_IFTYPE_STATION)
> +	if (sdata->vif.type == NL80211_IFTYPE_STATION) {
> +		/*
> +		 * Need to update last_beacon to avoid beacon loss
> +		 * test to trigger.
> +		 */
> +		sdata->u.mgd.last_beacon = jiffies;
> +
> +
>  		queue_work(sdata->local->hw.workqueue,
>  			   &sdata->u.mgd.work);
> +	}
>  }
>  
>  /* interface setup */
> 
> 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

           reply	other threads:[~2009-04-19  8:11 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20090419054719.16621.48938.stgit@tikku>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1240128702.25826.3.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=jaswinder@kernel.org \
    --cc=kalle.valo@iki.fi \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox