All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Eliad Peller <eliad@wizery.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>, Jouni Malinen <j@w1.fi>
Subject: Re: [RFC] nl80211/mac80211: support full station state in AP mode
Date: Mon, 09 Apr 2012 20:59:39 +0200	[thread overview]
Message-ID: <1333997979.3432.14.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAB3XZEe1kJ7bB08nm5p8nwJRfrE9Ew+THZN_Q=1KOf1=3QQULA@mail.gmail.com> (sfid-20120408_144939_975323_AEF7B0A3)

On Sun, 2012-04-08 at 15:49 +0300, Eliad Peller wrote:

> > Completely untested so far, just wanted to see what
> > everybody thinks. I'll need to work on the hostapd
> > patch as well, but I think TI had something there to
> > fix a race which I need to look into.
> >
> The patch looks good -- i agree it's better to add the station as soon
> as possible.
> 
> in our internal hostap tree, we use the following patches:
> https://github.com/TI-OpenLink/hostap/commit/44e8fd28f9b2fc8da9c6f58a2731b4ffa65bc396
> (https://github.com/TI-OpenLink/hostap/commit/bf21f3fe7541cd17b7b92aaf6bf06a00e9ec28bb)
> 
> These patches handle the race in which the EAPOL Start from the client
> comes before the association response tx result, causing the EAPOL to
> get dropped.

Ok, cool, thanks for the patches -- I couldn't quite remember what the
race was :)

> The first patch simply adds the station before sending the association
> response. I guess that with the suggested patch we'll just have to set
> the ASSOC state (before sending assoc response) instead of adding the
> station (which will be done before sending auth response, i guess).

Yes, my plan was adding the station before sending the auth response,
which gives better behaviour in case the driver already rejects the
station at that point, and move it to auth for the auth frame ack maybe
or when the assoc frame comes in, etc. Obviously, the driver might also
reject the later state changes, so hostapd still has to deal with errors
at all steps along the way. That might be some added complexity, but I
think it's still going to be worth it.

johannes


      reply	other threads:[~2012-04-09 18:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-06 18:01 [RFC] nl80211/mac80211: support full station state in AP mode Johannes Berg
2012-04-08 12:49 ` Eliad Peller
2012-04-09 18:59   ` Johannes Berg [this message]

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=1333997979.3432.14.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=eliad@wizery.com \
    --cc=j@w1.fi \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.