From: Fabio Rossi Date: Wed, 26 Nov 2008 21:44:23 +0000 (+0100) Subject: mac80211: accept empty strings for hidden SSIDs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb3da8ccc464409e3b947557cdac4cd0b1241c4c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mac80211: accept empty strings for hidden SSIDs Some access points (e.g. Sitecom WL-174) use an empty string as hidden SSID. Signed-off-by: Fabio Rossi Signed-off-by: John W. Linville --- 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, } } - if (hidden_ssid && ifsta->ssid_len == ssid_len) + if (hidden_ssid && (ifsta->ssid_len == ssid_len || ssid_len == 0)) return 1; if (ssid_len == 1 && ssid[0] == ' ')