mac80211: mesh: factor out common plink close/estab code
authorBob Copeland <me@bobcopeland.com>
Tue, 5 Nov 2013 19:16:52 +0000 (11:16 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:49:55 +0000 (20:49 +0100)
commite76d67f035649f1cc40603ab06ebcc1d2eb49253
tree6885335ad85ebacd6e52916804673ad9b97a16e3
parent0f5ffd24fb732fb4d653a8ee97faea767a0e7172
mac80211: mesh: factor out common plink close/estab code

Reject and accepted close events always put the host in the
holding state and compute a reason code based only on the
current state.  Likewise on establish we always do the same
setup.  Put these in functions to save some duplicated code.

Signed-off-by: Bob Copeland <bob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c