mac80211: fix and improve mesh RANN processing
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Fri, 15 Jun 2012 02:20:02 +0000 (10:20 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Jun 2012 17:18:55 +0000 (19:18 +0200)
commit7ebfa46973aa239f79fbd4651ddeed5c92df45b2
tree48869c5bb2d00d9aab2008eca8bb8021bd5f379b
parentd6a4ed6fe0a0d4790941e7f13e56630b8b9b053d
mac80211: fix and improve mesh RANN processing

This patch fixes the problem of dropping RANN element if the TTL
is 1. If the received RANN element TTL is 1 or greater than 1, the
RANN is processed. However, forwarding of received RANN element
with TTL 1 or less is prohibited according to the standard. This
is previously reported by Monthadar Al Jaberi.

Besides, this patch also avoid the processing of unicast PREQ
generation if the RANN element does not meet the acceptance
criteria mentioned in Sec. 13.10.12.4.2 of IEEE Std. 802.11-2012.

Reported-by: Monthadar Al Jaberi <monthadar@gmail.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_hwmp.c