]> 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)
commit0fd3a514b51010ae7b9645af0b6e7e8c3bcaedc2
tree9eafed51548165087bd7c490e72cd30ccf39bdfb
parentd2b06ed657673bdfaab6139542138e2df5986486
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