Revert "wifi: libertas: cap SSID len in lbs_associate()"

This reverts commit 30fc1555c8 which is
commit c786794bd27b0d7a5fd9063695df83206009be59 upstream.

It breaks the Android kernel build and can be brought back in the future
in an safe way if it is really needed.

Bug: 161946584
Change-Id: I508685386f72faba7625c06e5c9098a540fc4f54
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-09-10 08:12:38 +00:00
parent e918b8b0dd
commit f2b7aa090b

View File

@@ -1102,13 +1102,10 @@ static int lbs_associate(struct lbs_private *priv,
/* add SSID TLV */
rcu_read_lock();
ssid_eid = ieee80211_bss_get_ie(bss, WLAN_EID_SSID);
if (ssid_eid) {
u32 ssid_len = min(ssid_eid[1], IEEE80211_MAX_SSID_LEN);
pos += lbs_add_ssid_tlv(pos, ssid_eid + 2, ssid_len);
} else {
if (ssid_eid)
pos += lbs_add_ssid_tlv(pos, ssid_eid + 2, ssid_eid[1]);
else
lbs_deb_assoc("no SSID\n");
}
rcu_read_unlock();
/* add DS param TLV */