[Sony Xperia P, U, Sola, Go] lengas:
im testing the use of wifi direct services in the official "wifi direct service discovery" sample within the Android SDK API 16 and later.

I have an xperia u with Android 4.1.2 and a nexus 7 with official 4.4

If I try to connect (through wifi direct settings system menu) with xperia u through nexus 7 menu, it will never connect. Get stuck, and after popup dialog on xperia u, it never connects. If I do the same through xperia u, both devices connect fine without any problem.

Same problem at any wifi p2p demo. Because of this I saw the logcat of xperia u and found an interesting thing

wlan0: P2P: Driver is still in Listen state - wait for it to end before continuing

For some reason the xperia u wifi direct stuck and never leave of this state to conect with the other peer. Also happens with xperia u on 4.0.4

Any solution? it's a bug?

Can you try with your tablets/smartphones connect with your xperia u?

PD: I can't post it into dev forum yet.

EDIT: this is a portion of the logcat of the nexus 7 trying to connect with xperia u:

02-01 23:25:22.219: I/wpa_supplicant(2679): P2P-DEVICE-FOUND 5c:xx:xx:xx:xx:xx p2p_dev_addr=5c:xx:xx:xx:xx:xx pri_dev_type=10-0050F204-5 name='Android_xxxx' config_methods=0x188 dev_capab=0x21 group_capab=0x0
02-01 23:25:32.059: I/wpa_supplicant(2679): P2P-FIND-STOPPED
02-01 23:25:32.679: I/wpa_supplicant(2679): P2P-PROV-DISC-PBC-RESP 5c:xx:xx:xx:xx:xx
02-01 23:25:38.169: I/wpa_supplicant(2679): [B]P2P-GO-NEG-FAILURE status=-1[/B]
02-01 23:25:38.219: W/Netd(120): No subsystem found in netlink event
02-01 23:25:38.219: D/NetlinkEvent(120): [B]Unexpected netlink message. type=0x11[/B]
02-01 23:25:42.859: I/wpa_supplicant(2679): P2P-DEVICE-FOUND 5c:xx:xx:xx:xx:xx p2p_dev_addr=5c:xx:xx:xx:xx:xx pri_dev_type=10-0050F204-5 name='Android_xxxx' config_methods=0x188 dev_capab=0x31 group_capab=0x49
02-01 23:26:05.679: I/wpa_supplicant(2679): P2P-FIND-STOPPED
02-01 23:26:05.679: E/WifiP2pService(507): target device reaches the device limit.
02-01 23:26:15.319: I/wpa_supplicant(2679): P2P-PROV-DISC-PBC-RESP 5c:xx:xx:xx:xx:xx
02-01 23:26:17.459: I/wpa_supplicant(2679): P2P-GO-NEG-FAILURE status=-1
02-01 23:26:17.499: W/Netd(120): No subsystem found in netlink event
02-01 23:26:17.499: D/NetlinkEvent(120): Unexpected netlink message. type=0x11
02-01 23:26:17.599: D/dalvikvm(2207): GC_CONCURRENT freed 294K, 7% free 9526K/10168K, paused 3ms+4ms, total 45ms
02-01 23:26:21.809: I/wpa_supplicant(2679): P2P-DEVICE-FOUND 5c:xx:xx:xx:xx:xx p2p_dev_addr=5c:xx:xx:xx:xx:xx pri_dev_type=10-0050F204-5 name='Android_xxxx' config_methods=0x188 dev_capab=0x31 group_capab=0x49
02-01 23:26:44.469: I/wpa_supplicant(2679): P2P-FIND-STOPPED
02-01 23:26:44.469: E/WifiP2pService(507): target device reaches the device limit.
02-01 23:26:45.229: I/wpa_supplicant(2679): P2P-PROV-DISC-PBC-RESP 5c:xx:xx:xx:xx:xx
02-01 23:26:48.279: I/wpa_supplicant(2679): P2P-GO-NEG-FAILURE status=-1
02-01 23:26:48.309: W/Netd(120): No subsystem found in netlink event
02-01 23:26:48.309: D/NetlinkEvent(120): Unexpected netlink message. type=0x11
02-01 23:26:53.049: I/wpa_supplicant(2679): P2P-DEVICE-FOUND 5c:xx:xx:xx:xx:xx p2p_dev_addr=5c:xx:xx:xx:xx:xx pri_dev_type=10-0050F204-5 name='Android_xxxx' config_methods=0x188 dev_capab=0x31 group_capab=0x49