mac80211: refactor mesh peer initialization
authorThomas Pedersen <thomas@cozybit.com>
Thu, 19 Apr 2012 02:23:42 +0000 (19:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:34:07 +0000 (15:34 -0400)
commit54ab1ffb6cd94e5c013d61c192e78e30fdf25f8a
tree4ec8399914d37eb20d2231bb16cf5e7bdfc80eab
parent75acd5a82afda30fb615335ff6c8e5f3a1ca5e83
mac80211: refactor mesh peer initialization

This patch unifies the previous two paths toward mesh peer creation a
bit. It also fixes a bug where a peer's changing rates or HT mode
wouldn't register on leaving and then returning to the mesh with a sta
entry still present.

Also clean up locking and clear possibly stale ht cap.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_plink.c