Bug 52501

Summary: prism2_usb: SIOCGIWSCAN truncates ESSIDs
Product: Drivers Reporter: Tormod Volden (bugz.kernel.tormod)
Component: StagingAssignee: drivers_staging (drivers_staging)
Status: RESOLVED CODE_FIX    
Severity: normal CC: florian
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.7 Subsystem:
Regression: Yes Bisected commit-id:

Description Tormod Volden 2013-01-08 21:01:03 UTC
Running iwlist wlan0 scan lists the available networks, but I only see the 6 first characters of each ESSID. Studying the data returned from the SIOCGIWSCAN ioctl I can see that each ESSID is preceded by 6 which I guess is the reported length although I am not sure about this structure format.

I am using wireless-tools 30~pre9-5ubuntu2 and the 3.7.0-7.15-generic Linux kernel from Ubuntu.
Comment 1 Tormod Volden 2013-01-10 21:53:13 UTC
Patch submitted at http://driverdev.linuxdriverproject.org/pipermail/devel/2013-January/034468.html
Comment 2 Florian Mickler 2013-01-26 10:49:14 UTC
A patch referencing this bug report has been merged in Linux v3.8-rc5:

commit 811a37effdb11e54e1ff1ddaa944286c88f58487
Author: Tormod Volden <debian.tormod@gmail.com>
Date:   Wed Jan 9 22:23:32 2013 +0100

    staging: wlan-ng: Fix clamping of returned SSID length
Comment 3 Tormod Volden 2013-01-30 21:03:44 UTC
Tested and verified on 3.4.27, 3.7.4, 3.8-rc5.