On May 14, 2012, at 6:27 PM, Grant Erickson wrote:
> Has anyone recently run a regression with connman against full, 64-character 
> "raw" WPA/WPA2 PSKs? I found the following results today:
> 
>       http://pastebin.com/y73zH074
> 
> While the following non-upstreamed wpa_s patch looks relevant
> 
>       
> http://codereview.chromium.org/6783033/diff/1/wpa_supplicant/dbus/dbus_new_handlers.c
> 
> It doesn't appear to make any difference.
> 
> I need to take a look at what's going across the D-Bus wire, but I suspect 
> that connman is handing the "raw" PSK to the supplicant in a format it 
> doesn't understand or isn't parsing correctly.

As far as I can see, this seems to have changed around commit 
0f37827d4eaa59f0c793225c3723adc16941ef40:

        connmand[841]: Skipping disconnect of 472d53706f74_managed_psk, network 
is connecting.
        connmand[841]: --> (0) add_network_security_psk: dict 0xbeecd84c ssid 
0x93c80 passphrase 
ca473586684c60e2d3fb994b7b8f79a2712c130a10fa055d098af6c424fd2d2e
        connmand[841]:  --> (1) is_psk_raw_key: psk 
ca473586684c60e2d3fb994b7b8f79a2712c130a10fa055d098af6c424fd2d2e
        connmand[841]:  <-- (1) is_psk_raw_key: raw 1
        connmand[841]: <-- (0) add_network_security_psk: 
        946689402.007415: dbus: fi.w1.wpa_supplicant1.Interface.AddNetwork 
(/fi/w1/wpa_supplicant1/Interfaces/0)
        946689402.007781: dbus: Register network object 
'/fi/w1/wpa_supplicant1/Interfaces/0/Networks/0'
        946689402.025482: set_network_properties: entry.key scan_ssid 
entry.type 117 entry.array_type 0 entry.array_len 0
        946689402.025817: wpa_config_set: ssid 0x97dc8 var scan_ssid value 1
        946689402.026184: scan_ssid=1 (0x1)
        946689402.026519: set_network_properties: entry.key mode entry.type 117 
entry.array_type 0 entry.array_len 0
        946689402.026672: wpa_config_set: ssid 0x97dc8 var mode value 0
        946689402.026794: mode=0 (0x0)
        946689402.028320: set_network_properties: entry.key psk entry.type 97 
entry.array_type 121 entry.array_len 64
        946689402.028472: entry.bytearray_value - hexdump(len=64): 63 61 34 37 
33 35 38 36 36 38 34 63 36 30 65 32 64 33 66 62 39 39 34 62 37 62 38 66 37 39 
61 32 37 31 32 63 31 33 30 61 31 30 66 61 30 35 35 64 30 39 38 61 66 36 63 34 
32 34 66 64 32 64 32 65
        946689402.034973: set_network_properties: ret 128
        946689402.035125: wpa_config_set: ssid 0x97dc8 var psk value 
63613437333538363638346336306532643366623939346237623866373961323731326331333061313066613035356430393861663663343234666432643265
        946689402.035247: --> wpa_config_parse_psk data 0x5e570 ssid 0x97dc8 
line 0 value 
63613437333538363638346336306532643366623939346237623866373961323731326331333061313066613035356430393861663663343234666432643265
        946689402.035369: --> hexstr2bin hex 
63613437333538363638346336306532643366623939346237623866373961323731326331333061313066613035356430393861663663343234666432643265
 buf 0x97dec len 32
        946689402.035491: <-- hexstr2bin retval 0
        946689402.035552: Line 0: Invalid PSK 
'63613437333538363638346336306532643366623939346237623866373961323731326331333061313066613035356430393861663663343234666432643265'.
        946689402.035736: wpas_dbus_handler_add_network[dbus]:control interface 
couldn't set network properties

-Grant
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to