title: WiFi P2P with Android using wpa_cli in linux
body: <p>I am trying to establish connection between my laptop and Android device using wpa_cli.
  I tried differen combinations of wpa_cli commands to connect but coud not do so.
  The commands I am running on my laptop are as follows:</p>
  
  <p>First combination:</p>
  
  <ol>
  <li><p>p2p_find 10 </p>
  
  <p><em>Output:P2P-DEVICE-FOUND -------</em></p></li>
  <li><p>p2p_peers</p>
  
  <p><em>Output: Android device addr -------</em></p></li>
  <li><p>p2p_prov_disc  pbc</p>
  
  <p><em>Output: My laptop is visible on android peer devices list -------</em></p></li>
  <li><p>p2p_group_add</p>
  
  <p><em>Output: AP-ENABLED  -------</em></p></li>
  <li><p>wps_pbc</p>
  
  <p><em>Output: WPS-PBC-ACTIVE -------</em></p></li>
  </ol>
  
  <p>After running these commands, I am getting following error:</p>
  
  <pre><code>*"P2P-DEVICE-LOST p2p_dev_addr=-----
   WPS-TIMEOUT"*
  </code></pre>
  
  <p>Second combination:</p>
  
  <ol>
  <li><p>p2p_find 10</p>
  
  <p><em>Output:P2P-DEVICE-FOUND -------</em></p></li>
  <li><p>p2p_prov_disc  pbc auto</p>
  
  <p><em>Output: My laptop is visible on android peer devices list -------</em></p></li>
  <li><p>p2p_connect  pbc go_intent=15</p>
  
  <p><em>Output: On Android device the connection state changes to INVITED -------</em></p></li>
  </ol>
  
  <p>I am not sure, if I am missing something.</p>
  
  <p>Any help ??</p>
  
  <p>Thanks.</p>