diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 9e20a0c20a46..19c7f21e49d1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2530,7 +2530,7 @@ void ieee80211_mlme_notify_scan_completed(struct ieee80211_local *local) | |||
2530 | struct ieee80211_sub_if_data *sdata = local->scan_sdata; | 2530 | struct ieee80211_sub_if_data *sdata = local->scan_sdata; |
2531 | struct ieee80211_if_sta *ifsta; | 2531 | struct ieee80211_if_sta *ifsta; |
2532 | 2532 | ||
2533 | if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS) { | 2533 | if (sdata && sdata->vif.type == IEEE80211_IF_TYPE_IBSS) { |
2534 | ifsta = &sdata->u.sta; | 2534 | ifsta = &sdata->u.sta; |
2535 | if (!(ifsta->flags & IEEE80211_STA_BSSID_SET) || | 2535 | if (!(ifsta->flags & IEEE80211_STA_BSSID_SET) || |
2536 | (!(ifsta->state == IEEE80211_STA_MLME_IBSS_JOINED) && | 2536 | (!(ifsta->state == IEEE80211_STA_MLME_IBSS_JOINED) && |