diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a8755df0cf74..0ece151659c0 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2722,9 +2722,8 @@ void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local) | |||
2722 | 2722 | ||
2723 | if (sdata && sdata->vif.type == NL80211_IFTYPE_ADHOC) { | 2723 | if (sdata && sdata->vif.type == NL80211_IFTYPE_ADHOC) { |
2724 | ifsta = &sdata->u.sta; | 2724 | ifsta = &sdata->u.sta; |
2725 | if (!(ifsta->flags & IEEE80211_STA_BSSID_SET) || | 2725 | if ((!(ifsta->flags & IEEE80211_STA_PREV_BSSID_SET)) || |
2726 | (!(ifsta->state == IEEE80211_STA_MLME_IBSS_JOINED) && | 2726 | !ieee80211_sta_active_ibss(sdata)) |
2727 | !ieee80211_sta_active_ibss(sdata))) | ||
2728 | ieee80211_sta_find_ibss(sdata, ifsta); | 2727 | ieee80211_sta_find_ibss(sdata, ifsta); |
2729 | } | 2728 | } |
2730 | 2729 | ||