<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Thanks all,</div><div><br></div>So, there is only a way to set go_intent on a device and it is through interactive mode, otherwise automatically the default intent is used, right?<div>No way to set it through android method, a part when a device wants to start a connection, right?<br><br><br><br><br><div>&gt; Date: Tue, 20 May 2014 09:38:44 +0200<br>&gt; From: arend@broadcom.com<br>&gt; To: andrea.chittano@hotmail.it<br>&gt; CC: ilan.peer@intel.com; hostap@lists.shmoo.com<br>&gt; Subject: Re: wpa_supplicant Go Negotiation<br>&gt; <br>&gt; On 05/19/14 22:08, Peer, Ilan wrote:<br>&gt; &gt; Hi Andrea,<br>&gt; &gt;<br>&gt; &gt; The wpa_supplicant allows to set the GO intent in the configuration file<br>&gt; &gt; or by using the control interface commands that support it:<br>&gt; &gt;<br>&gt; &gt; ·The default intent in 7<br>&gt; &gt;<br>&gt; &gt; ·In configuration file u can set it by: p2p_go_intent=&lt;0..15&gt;<br>&gt; &gt;<br>&gt; &gt; ·From the control interface the intent can be changed as follows (also<br>&gt; &gt; see here<br>&gt; &gt; &lt;http://hostap.epitest.fi/gitweb/gitweb.cgi?p=hostap-1.git;a=blob;f=wpa_supplicant/README-P2P;hb=HEAD&gt;)<br>&gt; &gt;<br>&gt; &gt; oP2p_connect … go_intent=&lt;val&gt;<br>&gt; &gt;<br>&gt; &gt; oSet p2p_go_intent &lt;val&gt;<br>&gt; <br>&gt; However, there is no android application level api to set this before <br>&gt; doing a P2P connect attempt. Indeed wpa_supplicant has interface support <br>&gt; in place so probably it would be better to have this discussion on <br>&gt; android developers group [1].<br>&gt; <br>&gt; Regards,<br>&gt; Arend<br>&gt; <br>&gt; [1] https://groups.google.com/forum/#!forum/android-developers<br>&gt; <br>&gt; &gt; Regards,<br>&gt; &gt;<br>&gt; &gt; Ilan.<br>&gt; &gt;<br>&gt; &gt; *From:*Andrea Chittano [mailto:andrea.chittano@hotmail.it]<br>&gt; &gt; *Sent:* Monday, May 19, 2014 15:55<br>&gt; &gt; *To:* Peer, Ilan<br>&gt; &gt; *Subject:* wpa_supplicant Go Negotiation<br>&gt; &gt;<br>&gt; &gt; Hi Ilan, I'm a member of HostAP.<br>&gt; &gt;<br>&gt; &gt; I've seen that you are working on wpa_supplicant, so may be you can<br>&gt; &gt; clarify some doubts regarding it.<br>&gt; &gt;<br>&gt; &gt; I'm interested in GO negotiation procedure between 2 devices which want<br>&gt; &gt; to perform a p2p wifi direct connection.<br>&gt; &gt;<br>&gt; &gt; Let's suppose that device 1 (D1) starts a connection with device 2 (D2).<br>&gt; &gt;<br>&gt; &gt; So GO negotiation must be performed. D1 sends a GO negotiation request<br>&gt; &gt; containing its own GO Intent to D2.<br>&gt; &gt;<br>&gt; &gt; Now, D2 after receiving the request, should compare its own GO intent<br>&gt; &gt; (local GO intent) with which one received from D1, in order to build a<br>&gt; &gt; response containing device info of which one with the highest GO intent.<br>&gt; &gt;<br>&gt; &gt; I wish to know where devices set their GO intent before starting any action.<br>&gt; &gt;<br>&gt; &gt; I've found only a point where GO intent is setted and it happens when<br>&gt; &gt; the wpa_supplincant on the device starting a connection calls the<br>&gt; &gt; function p2p_connect().<br>&gt; &gt;<br>&gt; &gt; I get the impression that the whole GO negotiation is done between<br>&gt; &gt; wpa_supplicants on D1 and D2.<br>&gt; &gt;<br>&gt; &gt; My question is:<br>&gt; &gt;<br>&gt; &gt; how does the device receiving the request acquire its local GO intent?<br>&gt; &gt;<br>&gt; &gt; Thanks for your help,<br>&gt; &gt;<br>&gt; &gt; Andrea<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; HostAP mailing list<br>&gt; &gt; HostAP@lists.shmoo.com<br>&gt; &gt; http://lists.shmoo.com/mailman/listinfo/hostap<br>&gt; <br></div></div>                                               </div></body>
</html>