Merge branch 'docs-next' of git://git.lwn.net/linux-2.6
[linux-2.6-block.git] / net / mac80211 / sta_info.c
index a360bceeba59461d8d83e20220a60aba06fe693d..eec001491e66f6bfba75ca7bf41d22d9563c6788 100644 (file)
@@ -349,6 +349,7 @@ int sta_info_insert(struct sta_info *sta)
                goto out_free;
        }
        list_add(&sta->list, &local->sta_list);
+       local->sta_generation++;
        local->num_sta++;
        sta_info_hash_add(local, sta);
 
@@ -485,6 +486,7 @@ static void __sta_info_unlink(struct sta_info **sta)
        }
 
        local->num_sta--;
+       local->sta_generation++;
 
        if (local->ops->sta_notify) {
                if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN)