diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index fcaef38d5df9..351b3f6e5664 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -596,8 +596,8 @@ static int lbs_process_bss(struct bss_descriptor *bss, | |||
596 | 596 | ||
597 | switch (elem->id) { | 597 | switch (elem->id) { |
598 | case MFIE_TYPE_SSID: | 598 | case MFIE_TYPE_SSID: |
599 | bss->ssid_len = elem->len; | 599 | bss->ssid_len = min_t(int, 32, elem->len); |
600 | memcpy(bss->ssid, elem->data, elem->len); | 600 | memcpy(bss->ssid, elem->data, bss->ssid_len); |
601 | lbs_deb_scan("got SSID IE: '%s', len %u\n", | 601 | lbs_deb_scan("got SSID IE: '%s', len %u\n", |
602 | escape_essid(bss->ssid, bss->ssid_len), | 602 | escape_essid(bss->ssid, bss->ssid_len), |
603 | bss->ssid_len); | 603 | bss->ssid_len); |