mac80211: implement the proactive PREQ generation
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Wed, 13 Jun 2012 18:06:07 +0000 (02:06 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jun 2012 07:08:56 +0000 (09:08 +0200)
commita69cc44fe9ebb806c5f3f8bd83fb4a50ca63647b
tree47ff88c0dacb8144719a4b6939ed49a5549b52b8
parentac1073a61d73b6277794d2efc872eb7e1b706b5c
mac80211: implement the proactive PREQ generation

Generate the proactive PREQ element as defined in
Sec. 13.10.9.3 (Case C) of IEEE Std. 802.11-2012
based on the selection of dot11MeshHWMPRootMode as follow:
dot11MeshHWMPRootMode (2) is proactivePREQnoPREP
dot11MeshHWMPRootMode (3) is proactivePREQwithPREP

The proactive PREQ is generated based on the interval
defined by dot11MeshHWMProotInterval.

With this change, proactive RANN element is now generated
if the dot11MeshHWMPRootMode is set to (4) instead of (1).

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
[line-break commit log]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h
net/mac80211/mesh.c
net/mac80211/mesh_hwmp.c