Patchwork [3.5.y.z,extended,stable] Patch "staging: wlan-ng: Fix clamping of returned SSID length" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Jan. 30, 2013, 9:57 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/217033/
State New
Headers show


Herton Ronaldo Krzesinski - Jan. 30, 2013, 9:57 p.m.
This is a note to let you know that I have just added a patch titled

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

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 9e60d532838865af52472a598f60fa79e1feaceb Mon Sep 17 00:00:00 2001
From: Tormod Volden <>
Date: Wed, 9 Jan 2013 22:23:32 +0100
Subject: [PATCH] staging: wlan-ng: Fix clamping of returned SSID length

commit 811a37effdb11e54e1ff1ddaa944286c88f58487 upstream.

Commit 2e254212 broke listing of available network names, since it
clamped the length of the returned SSID to WLAN_BSSID_LEN (6) instead of

Signed-off-by: Tormod Volden <>
Signed-off-by: Greg Kroah-Hartman <>
Signed-off-by: Herton Ronaldo Krzesinski <>
 drivers/staging/wlan-ng/prism2mgmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index 4efa9bc..89bfd85 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -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 */