linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/4] refactor station state management
@ 2011-12-13 20:07 Johannes Berg
  2011-12-13 20:07 ` [RFC 1/4] mac80211: use station mutex in configuration Johannes Berg
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Johannes Berg @ 2011-12-13 20:07 UTC (permalink / raw)
  To: linux-wireless

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-12-14  8:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 20:07 [RFC 0/4] refactor station state management Johannes Berg
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

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).