]> asedeno.scripts.mit.edu Git - linux.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)
commitc4de37ee2b55deac7d6aeac33e02e3d6be243898
tree60d27e43a9eb5de6039cf37fc5983ffc3c095338
parentc028c6309a9f9b385ba8c0c984eb2b6c3f368650
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