Skip to contentSkip to conversation

mac80211: accept empty strings for hidden SSIDs

PATCH New Fabio Rossi 1 participant 1 message Nov 26, 2008 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: accept empty strings for hidden SSIDs

Some access points (e.g. Sitecom WL-174) use an empty string as hidden SSID.

---

net/mac80211/mlme.c +1 -1
index 88b0b4d..dc59f76 100644
@@ -2023,7 +2023,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] == ' ')