mac80211: factor out plink event gathering

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: consolidate rcu unlocks in plink frame rx

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: assign sta plid early

If we store the peer link ID right after initializing a
new neighbor, there is no need to do it later in the
peering FSM.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: initialize llid

If the peer doesn't have an llid for us, the event
gathering function won't use it anyway (based on
frametype), but initialize it so gcc and coverity don't
complain.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: factor out peering FSM

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: consolidate calls to plink_frame_tx

sta->reason is always accurate, since it is really only
the close reason. Once the holding timer expires this
resets to 0.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
mac80211: peering fsm formatting

Clean up whitespace.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>