#5574 NORM Never A: WPA keys must be 10 characters or less in length
Zarro Boogs per Child
bugtracker at laptop.org
Thu Dec 20 04:42:07 EST 2007
#5574: WPA keys must be 10 characters or less in length
-----------------------+----------------------------------------------------
Reporter: midiwall | Owner: mbletsas
Type: defect | Status: new
Priority: normal | Milestone: Never Assigned
Component: wireless | Version: Build 650
Resolution: | Keywords: wpa passphrase
Verified: 0 |
-----------------------+----------------------------------------------------
Comment(by tomeu):
Mark, it's not completely clear to me if you tried to configure the
connection in the command line or only by using Sugar. Can you please
confirm?
By glancing at the Sugar code, I cannot see a reason why a key of length
>10 would stop working.
For reference, I think this is the only code involved in that:
{{{
# passphrase
import commands
(s, o) = commands.getstatusoutput("/usr/sbin/wpa_passphrase '%s' '%s'" %
(ssid, key))
if s != 0:
raise RuntimeError("Error hashing passphrase: %s" % o)
lines = o.split("\n")
for line in lines:
if line.strip().startswith("psk="):
real_key = line.strip()[4:]
if real_key and len(real_key) != 64:
real_key = None
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/5574#comment:4>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list