mac80211: allow re-open the blocked peer link in mesh
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Fri, 14 Sep 2012 06:18:31 +0000 (14:18 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 14 Sep 2012 12:25:16 +0000 (14:25 +0200)
commit9385d04f2872057a2029901190391fe192b18693
tree6da5ee5fa8dc2831dd6e91acb77bbd9f848e7967
parent5d8e4237d2dc73b51ac66dc612c5c42dd7424479
mac80211: allow re-open the blocked peer link in mesh

Peer link which is blocked using the "iw mesh0 station
set <MAC addr> plink_action block" is previously not able
to re-open using "iw mesh0 station set <MAC addr>
plink_action open". This patch is intended to solve this.

If the station plink state remains at OPN_SNT once open,
try block and open again should solve this problem.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c