[Android - NEXUS4 lollipop] wpa_supplicant and wpa_cli impossible to connect with p2p_connect
Stefano Cappa
stefano.cappa
Wed Dec 10 13:12:32 PST 2014
Ok, i solved the problem in the previous question, thank u Peer Ilan XD. I'm not sure if i can reply to the previous email and continue the discussion or not.
But now i've another strange problem only with Nexus4 (Lollipop)
If i want to connect with "p2p_connect address pin keypad" one nexus 4 and one Nexus 5 with Lollipop, i can use this procedure:
-> Change the SELinux context for wpa_supplicant with che command "chcon u:object_r:system_file:s0 wpa_supplicant", because if i call directly wpa_cli i get this error: "Warning: Failed to attach to wpa_supplicant.".
-> Dev 1 - Nexus4) p2p_find
-> Dev 2 - Nexus5) p2p_find
-> Dev 2 - Nexus5) p2p_connect address pin keypad
-> Dev 1 - Nexus4) p2p_connect address 213...3 keypad
With two nexus 5 with kitkat no problem, but with nexus 5 and 4 with lollipop i have this problem:
NEXUS 4 TERMINAL VIA ADB:
> p2p_find
OK?
> p2p_peers
"nexus 5 address"
> p2p_connect "nexus 5 address" 80391784 keypad
OK
> 'PING' command timed out.
Connection to wpa_supplicant lost - trying to reconnect
Connection to wpa_supplicant re-established
>
NEXUS 5 TERMINAL VIA ADB:
> p2p_find
OK
<3>P2P: Reject scan trigger since one is already pending
<3>CTRL-EVENT-SCAN-STARTED
<3>P2P-DEVICE-FOUND "Nexus 4 address" p2p_dev_addr="Nexus 4 address" pri_dev_type=10-0050F204-5 name='occam' config_methods=0x88 dev_capab=0x25 group_capab=0x0
<3>CTRL-EVENT-SCAN-STARTED
....
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-STARTED
> p2p_connect "Nexus 4 address" pin keypad
80391784
<3>P2P-FIND-STOPPED
<3>P2P-GO-NEG-SUCCESS role=client freq=2412 ht40=0 peer_dev="Nexus 4 address" peer_iface=12:68:3f:43:12:ab wps_method=Display
<3>CTRL-EVENT-SCAN-RESULTS ?
...
<3>CTRL-EVENT-SCAN-RESULTS
<3>P2P-GROUP-FORMATION-FAILURE
<3>P2P-GROUP-REMOVED p2p-p2p0-0 client reason=FORMATION_FAILED
<3>P2P-DEVICE-LOST p2p_dev_addr="Nexus 4 address"
>
LOGCAT:
logcat says exactly the same things of wpa_cli with this new information (probably because i changed the SEContext of wpa_supplicant):
12-10 21:44:16.800: W/wpa_supplicant(709): type=1400 audit(0.0:7): avc: denied { create } for scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=packet_socket
12-10 21:44:16.800: W/wpa_supplicant(709): type=1400 audit(0.0:8): avc: denied { ioctl } for path="socket:[6959]" dev="sockfs" ino=6959 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=packet_socket
12-10 21:44:16.800: W/wpa_supplicant(709): type=1400 audit(0.0:9): avc: denied { bind } for scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=packet_socket
12-10 21:44:16.808: I/wpa_supplicant(709): rfkill: Cannot open RFKILL control device
12-10 21:44:16.917: I/wpa_supplicant(709): rfkill: Cannot open RFKILL control device
The questions are:
1) Why with Nexus 4 with wpa_cli in interactive mode i can't see all the informations like with nexus 5?
2) Why the p2p_connect command doesn't work?
Thank u very much for the support,
Stefano Cappa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20141210/4e803ffe/attachment.htm>
More information about the Hostap
mailing list