title: WiFi Direct disconnects after some time
body: <p>I am using an android api 15 device and an api 23 device to send message using WiFi Direct. Initially, everything goes well and I am able to send and receive messages. After some time the app doesn't receive messages and when I go and check the WiFi direct settings, I can see that the connection has been disconnected. This occurs randomly and can't be predicted when the connection will go off.</p>
  
  <p>This is really affecting my testing as suddenly the app doesn't respond to messages sent. I saw this post <a href="https://stackoverflow.com/questions/38544601/can-wi-fi-direct-work-permanently">Can wi fi direct work permanently?</a> , but I cannot find the mentioned settings in my device.</p>
  
  <p>Is there any other way to tackle this issue? How can I make sure that the connection is not disconnected? Also is there a way, I can set that whenever there is a disconnection, the devices must connect immediately?</p>