mac80211: mesh: don't use global channel type
authorJohannes Berg <johannes.berg@intel.com>
Wed, 25 Jul 2012 11:51:49 +0000 (13:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Aug 2012 12:13:38 +0000 (14:13 +0200)
commit466f310d100ff54f346c1be481af9935c42467b3
tree419fe4d27f6b24f8c9979f0c2717b8339fc656bb
parentd348f69f59af769c405c2f43a2d326d7123ef75a
mac80211: mesh: don't use global channel type

Using local->_oper_channel_type in the mesh code is
completely wrong as this value is the combination
of the various interface channel types and can be
a different value from the mesh interface in case
there are multiple virtual interfaces.

Use sdata->vif.bss_conf.channel_type instead as it
tracks the per-vif channel type.

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