cozybit/open80211s — pull request #28 by chunyeow (2013-04-04 10:39:38+00:00)
Title: mac80211: increment the seqnum of PREP whenever PREQ is processed

Mesh STA A [mesh0] <----> [mesh0] Mesh STA B [mesh1] <---> [mesh0] Mesh STA C

In the case, when RANN is generated by Mesh STA A, to Mesh STA B and Mesh STA C,
PREQs are generated by both Mesh STA B and Mesh STA C respectively. Mesh STA A
will receive both PREQ from Mesh STA A and Mesh STA C almost at the same time.
In current implementation, the sequence number is not increment due to purpose
of providing path stability in short term using dot11MeshHWMPnetDiameterTraversalTime
and this has caused Mesh STA C to resend two PREQs whenver receving RANN from Mesh
STA A. This patch is intended to increment the sequence number so that Mesh STA B
not dropping the PREP from Mesh STA A destined to Mesh STA C at first try.

Signed-off-by: Chun-Yeow Yeoh