cfg80211/mac80211: add mesh join/leave commands
authorJohannes Berg <johannes.berg@intel.com>
Fri, 3 Dec 2010 08:20:44 +0000 (09:20 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Dec 2010 21:01:29 +0000 (16:01 -0500)
commit29cbe68c516a48a9a88b3226878570c6cbd83c02
tree4774f8a3a244236234a521baa4d1ae5b3e1494ba
parentbd90fdcc5fbd99a2a778999610420cf793bd1be2
cfg80211/mac80211: add mesh join/leave commands

Instead of tying mesh activity to interface up,
add join and leave commands for mesh. Since we
must be backward compatible, let cfg80211 handle
joining a mesh if a mesh ID was pre-configured
when the device goes up.

Note that this therefore must modify mac80211 as
well since mac80211 needs to lose the logic to
start the mesh on interface up.

We now allow querying mesh parameters before the
mesh is connected, which simply returns defaults.
Setting them (internally renamed to "update") is
only allowed while connected. Specify them with
the new mesh join command instead where needed.

In mac80211, beaconing must now also follow the
mesh enabled/not enabled state, which is done
by testing the mesh ID.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
14 files changed:
include/linux/nl80211.h
include/net/cfg80211.h
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/main.c
net/mac80211/mesh.c
net/mac80211/mesh.h
net/wireless/Makefile
net/wireless/core.c
net/wireless/core.h
net/wireless/mesh.c [new file with mode: 0644]
net/wireless/nl80211.c
net/wireless/util.c