]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/nl80211.c
cfg80211: provide channel to join_mesh function
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 May 2012 21:50:20 +0000 (23:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:32:18 +0000 (15:32 -0400)
commitcc1d2806bf06ab92268343d26eb3d8d8f00f8bc9
treeb14ffa920d616470715e715df49f990bfdcf12ae
parent685d12a1929f274bd91497e33b4255fe164ac8ec
cfg80211: provide channel to join_mesh function

Just like the AP mode patch, instead of setting
the channel and then joining the mesh network,
provide the channel to join the network on to
the join_mesh() function.

Like in AP mode, you can also give the channel
to the join-mesh nl80211 command now.

Unlike AP mode, it picks a default channel if
none was given.

As libertas uses mesh mode interfaces but has
no join_mesh callback and we can't simply break
it, keep some compatibility code for that case
and configure the channel directly for it.

In the non-libertas case, where we store the
channel until join, allow setting it while the
interface is down.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/cfg80211.h
net/mac80211/cfg.c
net/wireless/core.h
net/wireless/mesh.c
net/wireless/nl80211.c
net/wireless/wext-compat.c