]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix erroneous clearing of MESH_PATH_SN_VALID flag
authorJavier Cardona <javier@cozybit.com>
Mon, 8 Aug 2011 23:30:50 +0000 (16:30 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Aug 2011 18:07:43 +0000 (14:07 -0400)
commit871ec16050764d12ed1ff50e125b86274e28db8b
tree7c1addee0db16c2d97d9c3a74a383ef49ff2f7b5
parentf2c9c66a4d43663e64d1d7c7443c9dc3db8fbedf
mac80211: fix erroneous clearing of MESH_PATH_SN_VALID flag

When a PREQ or PREP is received from an intermediate node, it contains
useful information for path selection but it doesn't include the
originator's sequence number.   Therefore, when updating the mesh path
to that intermediate node, we should not set the MESH_PATH_SN_VALID
flag.  BUT, if the flag is set, it should not be unset as we might have
received a valid sequence number for that intermediate node in the past.

This issue was reported, fixed and tested by Ya Bo (游波) and Pedro
Larbig (ASPj).

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_hwmp.c