]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a0da0dc520ce608df872fce31d6809c12839797
tree419fe4d27f6b24f8c9979f0c2717b8339fc656bb
parent729e06d1c3fd3e3273d9f78e82cee3c6a93a4cf0
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