mac80211: station state transition error handling
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jan 2012 08:31:10 +0000 (09:31 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Jan 2012 20:41:25 +0000 (15:41 -0500)
commit83d5cc012441531ab0bf6f99881958e964e9cf11
treeb36a127cd4d735f5b4a0b7fbfbdd3714bceca44f
parentc037b8367c7e2b775a99d74037f5df014d2fbf06
mac80211: station state transition error handling

In the future, when we start notifying drivers,
state transitions could potentially fail. To make
it easier to distinguish between programming bugs
and driver failures:
 * rename sta_info_move_state() to
   sta_info_pre_move_state() which can only be
   called before the station is inserted (and
   check this with a new station flag).
 * rename sta_info_move_state_checked() to just
   plain sta_info_move_state(), as it will be
   the regular function that can fail for more
   than just one reason (bad transition or an
   error from the driver)

This makes the programming model easier -- one of
the functions can only be called before insertion
and can't fail, the other can fail.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/debugfs_sta.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
This page took 0.026602 seconds and 5 git commands to generate.