aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 806d3ded98bd..87b2ac85d911 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -2012,7 +2012,7 @@ static int ieee80211_sta_match_ssid(struct ieee80211_if_sta *ifsta,
2012 } 2012 }
2013 } 2013 }
2014 2014
2015 if (hidden_ssid && ifsta->ssid_len == ssid_len) 2015 if (hidden_ssid && (ifsta->ssid_len == ssid_len || ssid_len == 0))
2016 return 1; 2016 return 1;
2017 2017
2018 if (ssid_len == 1 && ssid[0] == ' ') 2018 if (ssid_len == 1 && ssid[0] == ' ')