How to specify WPS authentication mechanism before inviting a member to a P2P group?
<p>I am trying to write an app which first forms a P2P group, and then invites a third member to it. The Android SDK exposes only the WifiP2pManager::connect() call for both these operations. The call translates to p2p_connect for the first peer addition, and to p2p_invite for any subsequent additions to the existing group. However, as per wpa_supplicant documentation, p2p_invite requires the WPS authentication event to be explicitly selected before p2p_invite can be invoked. This can be achieved through the wps_pbc and wps_pin commands in wpa_cli. However, I can't find a way to do the same using the API (simply invoking connect() with a required WpsConfig fails while inviting the third member to the group). Is there a corresponding API call for wps_pbc/wps_pin commands?</p>

<p>Thanks &amp; Regards,
Kaustav</p>
