I am working on WiFi Direct in android Jelly bean 4.1 with samsung(google) nexus device. I am able to discover the peer and connect with it when I am purely on wifi direct and when the devices are not connected to any other external interfaces.
But as a test I connected both devices to my Router, then started wifi direct on one device and created a group. After that I started next device and when I call discover peers its a success.
Immedialtely I call requestPeers and its returning an empty list of peers. But the same is working when both devices are not connected to any other interface.
How can I do this properly? Thanks