]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: refactor station state transitions
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Dec 2011 11:35:30 +0000 (12:35 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:34 +0000 (14:46 -0500)
commitc4a3dc7db23966a72f4500b0796f51550b53f32b
tree3de3213e7e79a64254ea778374aeaaffa61b5bab
parentfeb4a16fcc7ed40c544ea72dd7e3516347165c9c
mac80211: refactor station state transitions

Station entries can have various states, the most
important ones being auth, assoc and authorized.
This patch prepares us for telling the driver about
these states, we don't want to confuse drivers with
strange transitions, so with this we enforce that
they move in the right order between them (back and
forth); some transitions might happen before the
driver even knows about the station, but at least
runtime transitions will be ordered correctly.

As a consequence, IBSS and MESH stations will now
have the ASSOC flag set (so they can transition to
AUTHORIZED), and we can get rid of a special case
in TX processing.

When freeing a station, unwind the state so that
other parts of the code (or drivers later) can rely
on the transitions.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/ibss.c
net/mac80211/iface.c
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h
net/mac80211/tx.c