提交 cb3da8cc 编写于 作者: F Fabio Rossi 提交者: 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: NFabio Rossi <rossi.f@inwind.it>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e60c7744
......@@ -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] == ' ')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册