No subject

bogus at does.not.exist.com bogus at does.not.exist.com
Sun Jun 2 21:10:54 PDT 2013


This callback is used to notify that a P2P Device is requesting group owner=
 negotiation with us=2C but we do not have all the necessary information to=
 start GO Negotiation. This indicates that the local user has not authorize=
d the connection yet by providing a  PIN or PBC button press. This informat=
ion can be provided with a call to p2p_connect().
Therefore I'm expecting a new call to p2p_connect(). But the p2p_connect() =
doesn't contain a callback to any function which performs the p2p_build_go_=
neg_resp().I'm gonna try to show you what I should expect:
DEVICE A-->connect-->wpa_supplicant(A)-->go_neg_request-->wpa_supplicant(B)=
-->go_neg_req_rx()-->DEVICE BOnce DEVICE B receives the notification=2C it =
uses p2p_connect to provide the authorizationDEVICE B-->connect-->wpa_suppl=
icant(B)-->go_neg_response-->wpa_supplicant(A)Once wpa_supplicant(A) receiv=
es the response it sends the confirmation.		wpa_supplicant(A)-->go_neg_conf=
irmation-->wpa_supplicant(B)

Can you know what is the flow (induding the respective function callbacks) =
from the wpa_supplicant layer up to control interface ?

Thanks in advance for your time.Best regards=2CAndrea 		 	   		  =

--_5871c14f-6110-4f41-a075-865b9f5dd30c_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'><div style=3D"color: rgb(34=2C 3=
4=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B backgrou=
nd-color: rgb(255=2C 255=2C 255)=3B">Hi all=2C</div><div style=3D"color: rg=
b(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B=
 background-color: rgb(255=2C 255=2C 255)=3B"><br></div><div style=3D"color=
: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13p=
x=3B background-color: rgb(255=2C 255=2C 255)=3B">I'm Andrea and I'm workin=
g on an app that implement WiFi Direct and I'm facing with wpa_supplicant b=
ehaviour=2C so &nbsp=3BI hope you can help me.</div><div style=3D"color: rg=
b(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B=
 background-color: rgb(255=2C 255=2C 255)=3B">So far as I know wpa_supplica=
nt implements a control interface to get event notifications.</div><div sty=
le=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B fon=
t-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B">I'm trying to =
understand how a device manages a group owner negotiation request coming fr=
om another device which wants to start a connection with it.</div><div styl=
e=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font=
-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B"><br></div><div =
style=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B =
font-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B">So far as I=
 know when a device receives a group owner negotiation request it notifies =
the upper layer (the control interface) through a call to:</div><div style=
=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-=
size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B"><br></div><div s=
tyle=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B f=
ont-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B">void (*go_ne=
g_req_rx)(void *ctx=2C const u8 *src=2C u16 dev_passwd_id)</div><div style=
=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-=
size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B"><br></div><div s=
tyle=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B f=
ont-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B">From wpa_sup=
lpicant specifications:</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B fo=
nt-family: arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(=
255=2C 255=2C 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C 34)=
=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B background-color=
: rgb(255=2C 255=2C 255)=3B">This callback is used to notify that a P2P Dev=
ice is requesting group owner negotiation with us=2C but we do not have all=
 the necessary information to start GO Negotiation. This indicates that the=
 local user has not authorized the connection yet by providing a &nbsp=3BPI=
N or PBC button press. This information can be provided with a call to p2p_=
connect().</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family: ar=
ial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(255=2C 255=2C=
 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family=
: arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(255=2C 25=
5=2C 255)=3B">Therefore I'm expecting a new call to p2p_connect(). But the =
p2p_connect() doesn't contain a callback to any function which performs the=
 p2p_build_go_neg_resp().</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B =
font-family: arial=2C sans-serif=3B font-size: 13px=3B background-color: rg=
b(255=2C 255=2C 255)=3B">I'm gonna try to show you what I should expect:</d=
iv><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-s=
erif=3B font-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B"><br=
></div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C sa=
ns-serif=3B font-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B"=
>DEVICE A--&gt=3Bconnect--&gt=3Bwpa_supplicant(<wbr>A)--&gt=3Bgo_neg_reques=
t--&gt=3Bwpa_<wbr>supplicant(B)--&gt=3Bgo_neg_req_rx(<wbr>)--&gt=3BDEVICE B=
</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family: arial=2C san=
s-serif=3B font-size: 13px=3B background-color: rgb(255=2C 255=2C 255)=3B">=
Once DEVICE B receives the notification=2C it uses p2p_connect to provide t=
he authorization</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-fami=
ly: arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(255=2C =
255=2C 255)=3B">DEVICE B--&gt=3Bconnect--&gt=3Bwpa_supplicant(<wbr>B)--&gt=
=3Bgo_neg_response--&gt=3Bwpa_<wbr>supplicant(A)</div><div style=3D"color: =
rgb(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=
=3B background-color: rgb(255=2C 255=2C 255)=3B">Once wpa_supplicant(A) rec=
eives the response it sends the confirmation.</div><div style=3D"color: rgb=
(34=2C 34=2C 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B =
background-color: rgb(255=2C 255=2C 255)=3B"><span style=3D"white-space: pr=
e-wrap=3B">		</span>wpa_supplicant(A)--&gt=3Bgo_neg_<wbr>confirmation--&gt=
=3Bwpa_supplicant(<wbr>B)</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B =
font-family: arial=2C sans-serif=3B font-size: 13px=3B background-color: rg=
b(255=2C 255=2C 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C 34)=
=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B background-color=
: rgb(255=2C 255=2C 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C=
 34)=3B font-family: arial=2C sans-serif=3B font-size: 13px=3B background-c=
olor: rgb(255=2C 255=2C 255)=3B">Can you know what is the flow (induding th=
e respective function callbacks) from the wpa_supplicant layer up to contro=
l interface ?</div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-family:=
 arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(255=2C 255=
=2C 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font-fam=
ily: arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(255=2C=
 255=2C 255)=3B"><br></div><div style=3D"color: rgb(34=2C 34=2C 34)=3B font=
-family: arial=2C sans-serif=3B font-size: 13px=3B background-color: rgb(25=
5=2C 255=2C 255)=3B"><div>Thanks in advance for your time.</div><div>Best r=
egards=2C</div><div>Andrea</div></div> 		 	   		  </div></body>
</html>=

--_5871c14f-6110-4f41-a075-865b9f5dd30c_--



More information about the Hostap mailing list