Commit cb3da8cc authored by Fabio Rossi's avatar Fabio Rossi Committed by John W. Linville

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: default avatarFabio Rossi <rossi.f@inwind.it>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e60c7744
...@@ -2012,7 +2012,7 @@ static int ieee80211_sta_match_ssid(struct ieee80211_if_sta *ifsta, ...@@ -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; return 1;
if (ssid_len == 1 && ssid[0] == ' ') if (ssid_len == 1 && ssid[0] == ' ')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment