Bug 12230 - D-Link dir655 fails WPS Push Button setup
: D-Link dir655 fails WPS Push Button setup
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: Networking
: unspecified
: PC Windows XP
: -- normal (vote)
: MP
Assigned To: Felix Mueller
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-01 15:52 UTC by James Richardson
Modified: 2009-09-08 09:24 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
serial capture (71.85 KB, text/plain)
2009-06-01 15:52 UTC, James Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Richardson 2009-06-01 15:52:42 UTC
Created attachment 5296 [details]
serial capture

See attached log from Serial Capture.

Using MP(2) r5818, the Push button setup will fail, then time out and Fab4 goes back 1 step to Try Again

Using r5940, factory reset, push button will fail and Fab4 will be stuck on spiny till button (ir) or touch event
Comment 1 James Richardson 2009-06-01 15:54:43 UTC
Here is the Log file from the Router (reverse order):
-----------------------------------
[INFO] Sat Jan 31 10:56:22 2004 Wireless system with MAC address 00042022009E disconnected for reason: Received Deauthentication. 
[INFO] Sat Jan 31 10:56:22 2004 Unset Selected Registrar 
[INFO] Sat Jan 31 10:56:22 2004 WPS Internal Registrar successfully added station Marvell-Embedded-Client, 00042022009E. 
[INFO] Sat Jan 31 10:56:22 2004 STA with MAC (00042022009E) WPS process closed 
[INFO] Sat Jan 31 10:56:22 2004 STA with MAC (00042022009E) registered in successfully 
[INFO] Sat Jan 31 10:56:16 2004 STA with MAC (00042022009E) requested for WPS registration 
[INFO] Sat Jan 31 10:56:15 2004 Wireless system with MAC address 00042022009E associated 
[INFO] Sat Jan 31 10:56:11 2004 WPS Internal Registrar started PBC registration 
[INFO] Sat Jan 31 10:56:11 2004 Set Selected Registrar
Comment 2 Felix Mueller 2009-06-02 03:57:40 UTC
This is the error line from the log causing the failure:

035422:92017 WARN (Task.lua:74) - task error networkSelect: /usr/share/jive/jive/net/Networking.lua:745: attempt to concatenate field 'psk' (a nil value)

James: After it fails, could you check the content of this file:

/usr/sbin/wps/wps.conf

and post it to this bug, thanks.
Comment 3 James Richardson 2009-06-03 08:59:20 UTC
Here is the data requested
------------------------------------------------------------------------
# cd wps
# ls
config  wpsapp
<<start push button install>>
# ioctl[SIOCSIWPMKSA]: Invalid argument
<<Failure on Fab4>>
# ls
1         config    wps.conf  wpsapp
# more wps.conf
network={
ssid="dlink655"
proto=WPA
key_mgmt=WPA-PSK
psk=4cc177b2176525a927087ffad74295ad47d6207de9a91a1e23f5596f24040d5f
}
------------------------------------------------------------------------
Comment 4 James Richardson 2009-06-03 09:50:00 UTC
James to try different type/length passwords for push button to determine the failure
Comment 5 Felix Mueller 2009-06-03 10:07:10 UTC
I think I found what goes wrong: I expect the psk being enclosed by quotes in wps.conf when I copy it over, but the first sample (with the long pw) doesn't use quotes. I need to fix the pattern to cover for that case.
Comment 6 Felix Mueller 2009-06-04 07:40:57 UTC
The problem was the pre-shared key (psk). It can be either an ASCII passphrase (8 - 63 chars) or 64 hex-digits (32 bytes). In the wpa_supplicant.conf file these two not only differ in length, but the ASCII passphrase needs to be quoted whereas for the 64 hex-digits no quotes are allowed.

From the wpa_supplicant.conf sample file:

# psk: WPA preshared key; 256-bit pre-shared key
# The key used in WPA-PSK mode can be entered either as 64 hex-digits, i.e.,
# 32 bytes or as an ASCII passphrase (in which case, the real PSK will be
# generated using the passphrase and SSID). ASCII passphrase must be between
# 8 and 63 characters (inclusive).

Fixed in r5996.
Comment 7 Ross Levine 2009-06-05 12:07:46 UTC
Works for me with r5995. I'll test again with 5996 or later when it's being pushed.