Issue with receiving psk during WPS over D-BUS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a questions about obtaining psk and connection parameters using
wpa_supplicant d-bus API with WPS. Could you please answer it? Thanks
in advance.

I use wpa_supplicant 2.6. I am calling method Start of
fi.w1.wpa_supplicant1.Interface.WPS with the following parameters:
"Role" -> "enrolee"
"Type"-> "pbc"
"Bssid" -> my AP bssid

After pressing WPS button on my AP I am connected, but unfortunately I
am not receiving psk. I dont know which properties are responsible for
psk and other connection parameters? Could you please advice me how to
obtain AP's psk? Without obtaining psk I am unable to connect to AP
using AddNetwork next time.

On the contrary when I use "wps_cli wps_pbc" then after successfully
connecting to AP I have psk in wpa_cupplicant configuration file in
the "network" structure.

Below is log from my D-BUS call:

Client:connectWPS
Client:onWpsProxyRequested thread:3069894656
onWpsProxyRequested ProcessCredentials properties:1
onWpsProxyRequested ConfigMethods properties:
Received signal: NetworkAdded: (objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/Networks/0', {'Properties':
<{'scan_ssid': <'0'>, 'mem_only_psk': <'0'>, 'bg_scan_period': <'0'>,
'max_oper_chwidth': <'0'>, 'engine': <'0'>, 'engine2': <'0'>,
'eapol_flags': <'0'>, 'sim_num': <'0'>, 'erp': <'0'>, 'wep_tx_keyidx':
<'0'>, 'priority': <'0'>, 'eap_workaround': <'0'>, 'fragment_size':
<'0'>, 'ocsp': <'0'>, 'mode': <'0'>, 'proactive_key_caching': <'0'>,
'disabled': <'0'>, 'peerkey': <'0'>, 'mixed_cell': <'0'>, 'frequency':
<'0'>, 'fixed_freq': <'0'>, 'wpa_ptk_rekey': <'0'>, 'group_rekey':
<'0'>, 'ignore_broadcast_ssid': <'0'>, 'ap_max_inactivity': <'0'>,
'dtim_period': <'0'>, 'beacon_int': <'0'>, 'mac_addr': <'0'>, 'pbss':
<'0'>, 'wps_disabled': <'0'>}>, 'Enabled': <true>})
Client:onDbusCallback thread:3069894656
Client:onWpsStartConfiguration thread:3069894656
************: (@a{sv} {},)
Received signal: PropertiesChanged: ({'State': <'scanning'>,
'Scanning': <true>},)
onWifiIfaceStateChanged WpaSupplicant Status:scanning
Client:onScanDoneSignal thread:3069894656
Received signal: PropertiesChanged: ({'Scanning': <false>},)
Received signal: PropertiesChanged: ({'Scanning': <true>},)
Client:onScanDoneSignal thread:3069894656
Received signal: PropertiesChanged: ({'Scanning': <false>, 'BSSs':
<[objectpath '/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/0',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/1',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/2',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/3',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/4',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/5',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/6',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/7',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/8',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/9',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/10',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/11',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/12',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/13',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/14',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/15',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/16',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/17',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/18',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/19',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/20',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/21',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/22',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/23',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/24',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/25',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/26',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/27',
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/28']>},)
Received signal: PropertiesChanged: ({'Scanning': <true>},)
Client:onScanDoneSignal thread:3069894656
Received signal: PropertiesChanged: ({'State': <'associating'>,
'Scanning': <false>, 'CurrentNetwork': <objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/Networks/0'>},)
onWifiIfaceStateChanged WpaSupplicant Status:associating
Received signal: PropertiesChanged: ({'State': <'associated'>,
'CurrentBSS': <objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/3'>},)
onWifiIfaceStateChanged WpaSupplicant Status:associated
Received signal: EAP: ('started', '')
Received signal: EAP: ('accept proposed method', 'WSC')
Received signal: NetworkAdded: (objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/Networks/1', {'Properties':
<{'scan_ssid': <'0'>, 'mem_only_psk': <'0'>, 'bg_scan_period': <'0'>,
'max_oper_chwidth': <'0'>, 'engine': <'0'>, 'engine2': <'0'>,
'eapol_flags': <'0'>, 'sim_num': <'0'>, 'erp': <'0'>, 'wep_tx_keyidx':
<'0'>, 'priority': <'0'>, 'eap_workaround': <'0'>, 'fragment_size':
<'0'>, 'ocsp': <'0'>, 'mode': <'0'>, 'proactive_key_caching': <'0'>,
'disabled': <'0'>, 'peerkey': <'0'>, 'mixed_cell': <'0'>, 'frequency':
<'0'>, 'fixed_freq': <'0'>, 'wpa_ptk_rekey': <'0'>, 'group_rekey':
<'0'>, 'ignore_broadcast_ssid': <'0'>, 'ap_max_inactivity': <'0'>,
'dtim_period': <'0'>, 'beacon_int': <'0'>, 'mac_addr': <'0'>, 'pbss':
<'0'>, 'wps_disabled': <'0'>}>, 'Enabled': <true>})
Received signal: NetworkRemoved: (objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/Networks/0',)
Received WPS signal: Event: ('success', @a{sv} {})
Client:onWpsEventSignal thread:3069894656
onWpsEventSignallName:success
Received signal: EAP: ('completion', 'failure')
Received signal: PropertiesChanged: ({'DisconnectReason': <-3>},)
Received signal: PropertiesChanged: ({'State': <'disconnected'>,
'CurrentBSS': <objectpath '/'>},)
onWifiIfaceStateChanged WpaSupplicant Status:disconnected
Received signal: PropertiesChanged: ({'State': <'scanning'>,
'Scanning': <true>},)
onWifiIfaceStateChanged WpaSupplicant Status:scanning
Client:onScanDoneSignal thread:3069894656
Received signal: PropertiesChanged: ({'State': <'associating'>,
'Scanning': <false>, 'CurrentNetwork': <objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/Networks/1'>},)
onWifiIfaceStateChanged WpaSupplicant Status:associating
Received signal: PropertiesChanged: ({'State': <'4way_handshake'>,
'CurrentBSS': <objectpath
'/fi/w1/wpa_supplicant1/Interfaces/1/BSSs/3'>},)
onWifiIfaceStateChanged WpaSupplicant Status:4way_handshake
Received signal: PropertiesChanged: ({'State': <'completed'>,
'CurrentAuthMode': <'WPA2-PSK'>},)
onWifiIfaceStateChanged WpaSupplicant Status:completed

BR,

Radek

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux