Bugzilla – Bug 12230
D-Link dir655 fails WPS Push Button setup
Last modified: 2009-09-08 09:24:17 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
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
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.
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 } ------------------------------------------------------------------------
James to try different type/length passwords for push button to determine the failure
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.
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.
Works for me with r5995. I'll test again with 5996 or later when it's being pushed.