]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make mpath path fixing more robust
authorPedersen, Thomas <twp@qca.qualcomm.com>
Tue, 6 Sep 2016 18:59:00 +0000 (11:59 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 12 Sep 2016 10:27:14 +0000 (12:27 +0200)
commitccc9f8dae57a5c2e99fec5f4b53890de7a6b6b3f
tree9eafed51548165087bd7c490e72cd30ccf39bdfb
parente3c7e9557f9d6e251bbf6d8dfaecc427ed2d013b
mac80211: make mpath path fixing more robust

A fixed mpath was not quite being treated as such:

1) if a PERR frame was received, a fixed mpath was
   deactivated.

2) queued path discovery for fixed mpath was potentially
   being considered, changing mpath state.

3) other mpath flags were potentially being inherited when
   fixing the mpath. Just assign PATH_FIXED and SN_VALID.

This solves several issues when fixing a mesh path in one
direction. The reverse direction mpath should probably
also be fixed, or root announcements at least be enabled.

Signed-off-by: Thomas Pedersen <twp@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c
net/mac80211/mesh_pathtbl.c