diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index c1f889270484d44bb4a41446c70a63011e285638..bd3d55eb21d4f8fb5d4cf7a0da75a506ecdf00eb 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c @@ -686,6 +686,9 @@ static bool llid_in_use(struct ieee80211_sub_if_data *sdata, rcu_read_lock(); list_for_each_entry_rcu(sta, &local->sta_list, list) { + if (sdata != sta->sdata) + continue; + if (!memcmp(&sta->mesh->llid, &llid, sizeof(llid))) { in_use = true; break;