]> Pileus Git - ~andy/linux/blobdiff - net/mac80211/mesh_plink.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
[~andy/linux] / net / mac80211 / mesh_plink.c
index 9d7ad366ef09a37cb9031c0b4eeb754ec7bb1217..3ab34d81689753e0beaf7af4a9c7c806f9da6915 100644 (file)
@@ -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;
        }