We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cfa0f0 commit a7b20f5Copy full SHA for a7b20f5
drivers/net/wireless/st/cw1200/sta.c
@@ -1290,7 +1290,7 @@ static void cw1200_do_join(struct cw1200_common *priv)
1290
rcu_read_lock();
1291
ssidie = ieee80211_bss_get_ie(bss, WLAN_EID_SSID);
1292
if (ssidie) {
1293
- join.ssid_len = ssidie[1];
+ join.ssid_len = min(ssidie[1], IEEE80211_MAX_SSID_LEN);
1294
memcpy(join.ssid, &ssidie[2], join.ssid_len);
1295
}
1296
rcu_read_unlock();
0 commit comments