Skip to content

Commit

Permalink
mac80211: accept empty strings for hidden SSIDs
Browse files Browse the repository at this point in the history
Some access points (e.g. Sitecom WL-174) use an empty string as hidden SSID.

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Fabio Rossi authored and John W. Linville committed Dec 5, 2008
1 parent e60c774 commit cb3da8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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] == ' ')
Expand Down

0 comments on commit cb3da8c

Please sign in to comment.