Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Tomas Winkler <tomasw@gmail.com>
Cc: linville@tuxdriver.com, yi.zhu@intel.com,
	linux-wireless@vger.kernel.org,
	Ron Rindjunsky <ron.rindjunsky@intel.com>
Subject: Re: [PATCH 2/2 V2] mac80211: add direct probe before association
Date: Sun, 07 Sep 2008 15:49:00 +0200	[thread overview]
Message-ID: <1220795340.31304.10.camel@johannes.berg> (raw)
In-Reply-To: <1ba2fa240809061721k2082d038j63c272f5b29a66c6@mail.gmail.com> (sfid-20080907_022142_614088_FF8C10FE)

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

On Sun, 2008-09-07 at 03:21 +0300, Tomas Winkler wrote:
> On Sun, Sep 7, 2008 at 2:44 AM, Johannes Berg <johannes@sipsolutions.net> wrote:
> > Hi,
> >
> > I was just pondering rewriting parts of the state machine (and you've
> > already seen the other cleanups I did today) and found this:
> >
> >> +     /* Direct probe is sent to broadcast address as some APs
> >> +      * will not answer to direct packet in unassociated state.
> >> +      */
> >> +     ieee80211_send_probe_req(dev, NULL,
> >> +                              ifsta->ssid, ifsta->ssid_len);
> >
> >> +     /* direct probe may be part of the association flow */
> >> +     if (test_and_clear_bit(IEEE80211_STA_REQ_DIRECT_PROBE,
> >> +                                                     &ifsta->request)) {
> >> +             printk(KERN_DEBUG "%s direct probe responded\n", dev->name);
> >> +             ieee80211_authenticate(dev, ifsta);
> >
> > Doesn't the latter code have to check that the sender is the correct
> > one? First we broadcast the probe request, and then we may be getting
> > one from a different AP but still clear our direct probe association
> > flow step, no?
> 
> Yep, this is not covered. Don't remember why it wasn't straight
> forward to implement...will look at it again after sunrise.

Actually, don't bother, I'm fixing it, was just trying to see if I was
missing anything and it was correct already.

johannes

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

      reply	other threads:[~2008-09-07 13:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-09  0:02 [PATCH 2/2 V2] mac80211: add direct probe before association Tomas Winkler
2008-09-06 23:44 ` Johannes Berg
2008-09-07  0:21   ` Tomas Winkler
2008-09-07 13:49     ` 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=1220795340.31304.10.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=ron.rindjunsky@intel.com \
    --cc=tomasw@gmail.com \
    --cc=yi.zhu@intel.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