Bug 52501 - prism2_usb: SIOCGIWSCAN truncates ESSIDs
Summary: prism2_usb: SIOCGIWSCAN truncates ESSIDs
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Staging (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_staging@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-08 21:01 UTC by Tormod Volden
Modified: 2013-01-30 21:03 UTC (History)
1 user (show)

See Also:
Kernel Version: 3.7
Tree: Mainline
Regression: Yes


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.