linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefano Brivio <stefano.brivio@polimi.it>
To: Kalle Valo <Kalle.Valo@nokia.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	Li YanBo <dreamfly281@gmail.com>, Ben Gamari <ben@mw0.ath.cx>,
	linux-wireless@vger.kernel.org,
	Jose Ignacio Naranjo Hernandez <joseignacio.naranjo@gmail.com>,
	Michael Wu <flamingice@sourmilk.net>, Jouni Malinen <j@w1.fi>
Subject: Re: Suspend/Resume support
Date: Fri, 16 Nov 2007 15:49:02 +0100	[thread overview]
Message-ID: <20071116154902.16b7866c@morte> (raw)
In-Reply-To: <87ir42z5kq.fsf@nokia.com>

On Fri, 16 Nov 2007 15:24:21 +0200
Kalle Valo <Kalle.Valo@nokia.com> wrote:

> Johannes Berg <johannes@sipsolutions.net> writes:
> 
> > If it is, we need to determine whether we were suspended long enough
> > for it to kick us off. It might be possible to do this by sending a
> > null function frame to the AP and see if it replies with a deauth
> > notification, I think it should if we're not associated [3].
> 
> I think that at least most (if not all) of the APs do send a deauth
> frame in that case. I have seen this happening when debugging some
> bugs. But I don't know if the standard specifies that.

Yes, it does - implicitly. Please see 802.11, 7.3.1.7, Table 18, reason
codes of deauthentication frames are 6 for "Class 2 [1] frame received from
nonauthenticated station" and 7 for "Class 3 [1] frame received from
nonassociated station". But IIRC hostapd doesn't do that, some APs in my
neighborhood and mine don't either - I'd say this isn't strongly required
by the standard. I'd suggest that, in case we don't get a reply for some
time, we should retry association. The problem here is that some userspace
tools like wpa_supplicant retry association by themselves, and there could
be issues with roaming. On the other side, if we don't want to break
wireless extensions compatibility, we should ensure that, once we set an
ESSID with - say - iwconfig, we stay associated and - in case - reassociate.


[1] 802.11, 5.5


-- 
Ciao
Stefano

  parent reply	other threads:[~2007-11-16 14:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-15  0:51 Suspend/Resume support Ben Gamari
2007-11-15  3:37 ` Li YanBo
2007-11-16  0:11   ` Johannes Berg
2007-11-16 13:24     ` Kalle Valo
2007-11-16 14:41       ` Johannes Berg
2007-11-19  3:59         ` Jouni Malinen
2007-11-19 14:44           ` Johannes Berg
2007-11-16 14:49       ` Stefano Brivio [this message]
2007-11-19  4:08     ` Jouni Malinen

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=20071116154902.16b7866c@morte \
    --to=stefano.brivio@polimi.it \
    --cc=Kalle.Valo@nokia.com \
    --cc=ben@mw0.ath.cx \
    --cc=dreamfly281@gmail.com \
    --cc=flamingice@sourmilk.net \
    --cc=j@w1.fi \
    --cc=johannes@sipsolutions.net \
    --cc=joseignacio.naranjo@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).