]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: fix wrong mesh TTL offset calculation
authorPeter Oh <peter.oh@bowerswilkins.com>
Fri, 26 Jan 2018 22:02:37 +0000 (14:02 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jan 2018 11:39:10 +0000 (12:39 +0100)
commit0ff39edcf00dd69de886f947e4fab3cf49113dd6
tree60d27e43a9eb5de6039cf37fc5983ffc3c095338
parent793e8b0e992ea308ce32b979c8d425ea6fee64d5
mac80211: mesh: fix wrong mesh TTL offset calculation

mesh TTL offset in Mesh Channel Switch Parameters element depends on
not only Secondary Channel Offset element, but also affected by
HT Control field and Wide Bandwidth Channel Switch element.
So use element structure to manipulate mesh channel swich param IE
after removing its constant attribution to correct the miscalculation.

Signed-off-by: Peter Oh <peter.oh@bowerswilkins.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c