diff options
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 3d01abb2b813..f0d3b483dabd 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -946,6 +946,9 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata, | |||
946 | 946 | ||
947 | mutex_lock(&local->sta_mtx); | 947 | mutex_lock(&local->sta_mtx); |
948 | list_for_each_entry_safe(sta, tmp, &local->sta_list, list) | 948 | list_for_each_entry_safe(sta, tmp, &local->sta_list, list) |
949 | if (sdata != sta->sdata) | ||
950 | continue; | ||
951 | |||
949 | if (time_after(jiffies, sta->last_rx + exp_time)) { | 952 | if (time_after(jiffies, sta->last_rx + exp_time)) { |
950 | #ifdef CONFIG_MAC80211_IBSS_DEBUG | 953 | #ifdef CONFIG_MAC80211_IBSS_DEBUG |
951 | printk(KERN_DEBUG "%s: expiring inactive STA %pM\n", | 954 | printk(KERN_DEBUG "%s: expiring inactive STA %pM\n", |