Commit 811a37ef authored by Tormod Volden's avatar Tormod Volden Committed by Greg Kroah-Hartman

staging: wlan-ng: Fix clamping of returned SSID length

Commit 2e254212 broke listing of available network names, since it
clamped the length of the returned SSID to WLAN_BSSID_LEN (6) instead of
WLAN_SSID_MAXLEN (32). default avatarTormod Volden <>
Cc: stable <> # 3.4+
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent aec992f2
......@@ -406,7 +406,7 @@ int prism2mgmt_scan_results(wlandevice_t *wlandev, void *msgp)
/* SSID */
req->ssid.status = P80211ENUM_msgitem_status_data_ok;
req-> = le16_to_cpu(item->ssid.len);
req-> = min_t(u16, req->, WLAN_BSSID_LEN);
req-> = min_t(u16, req->, WLAN_SSID_MAXLEN);
memcpy(req->, item->, req->;
/* supported rates */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment