mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
5d8e4237d2
commit
9385d04f28
1 changed files with 2 additions and 1 deletions
|
|
@ -537,7 +537,8 @@ int mesh_plink_open(struct sta_info *sta)
|
|||
spin_lock_bh(&sta->lock);
|
||||
get_random_bytes(&llid, 2);
|
||||
sta->llid = llid;
|
||||
if (sta->plink_state != NL80211_PLINK_LISTEN) {
|
||||
if (sta->plink_state != NL80211_PLINK_LISTEN &&
|
||||
sta->plink_state != NL80211_PLINK_BLOCKED) {
|
||||
spin_unlock_bh(&sta->lock);
|
||||
return -EBUSY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue