All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: linux-wireless@vger.kernel.org
Subject: [RFC 0/4] refactor station state management
Date: Tue, 13 Dec 2011 21:07:17 +0100	[thread overview]
Message-ID: <20111213200717.465896579@sipsolutions.net> (raw)

Here's a first step towards something I talked to some
of you about -- making drivers more aware of station
state.

Because experience tells me that drivers will be written
for the common case, and forget about uncommon sequences,
this first step enforces proper ordering of states, now
a station can move only between these states like this:
 NONE  <--> AUTHENTICATED <--> ASSOCIATED <--> AUTHORIZED

As a consequence, IBSS stations and WDS peers need to
go through ASSOCIATED state (and get ASSOC flag set),
but this doesn't seem to be an issue, in fact it makes
at least one place in the code simpler.

This patchset still has two issues:
 * secure mesh is broken right now I think, its state
   change possibilities are rather confusing
   (need help to fix this, at least explanations)
 * TLDS isn't handled (maybe not an issue?)


My further plan is the following:
 1) figure out the issues above
 2) notify drivers of these state changes
 3) refactor auth/assoc process as described before
  a) don't track multiple authentications
  b) don't try to keep an existing authentication/association
  c) set channel first etc.
 4) remove dummy station code
  a) add regular station entry before auth
  b) notify to AUTH state when auth succeeds
  c) notify to ASSOC state when assoc succeeds

This patchset is but the first step on this journey, at the
end of which we will hopefully find multi-channel support :-)

johannes

             reply	other threads:[~2011-12-13 20:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-13 20:07 Johannes Berg [this message]
2011-12-13 20:07 ` [RFC 1/4] mac80211: use station mutex in configuration Johannes Berg
2011-12-13 20:07 ` [RFC 2/4] mac80211: refactor station state transitions Johannes Berg
2011-12-14  0:29   ` Thomas Pedersen
2011-12-14  8:22     ` Johannes Berg
2011-12-13 20:07 ` [RFC 3/4] mac80211: unwind station state on destroy Johannes Berg
2011-12-13 20:07 ` [RFC 4/4] mac80211: count authorized stations per BSS Johannes Berg

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=20111213200717.465896579@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --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.