<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">I am facing an issue while removing the P2P group when we are a P2PGO.<o:p></o:p></p>
<p class="MsoNormal">As a part of a test, we send P2P_GROUP_REMOVE on the&nbsp; interface on which P2P Group is created.<o:p></o:p></p>
<p class="MsoNormal">We can see from supplicant logs is<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517338: wlan1: Control interface command 'P2P_GROUP_REMOVE p2p-wlan1-0'<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517411: P2P-GROUP-REMOVED p2p-wlan1-0 GO reason=REQUESTED<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517461: CTRL_IFACE monitor sent successfully to /tmp/wpa_ctrl_7799-3\x00<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517476: P2P: Remove group interface p2p-wlan1-0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517493: p2p-wlan1-0: Removing interface p2p-wlan1-0<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517521: p2p-wlan1-0: Request to deauthenticate - bssid=02:02:5b:00:30:74 pending_bssid=00:00:00:00:00:00 reason=3 state=COMPLETED<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517535: wpa_driver_nl80211_deauthenticate(addr=02:02:5b:00:30:74 reason_code=3)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-family:&quot;Courier New&quot;">1434015304.517636: p2p-wlan1-0: nl80211: MLME command failed: reason=3 ret=-95 (Operation not supported)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Here I can see that supplciant is calling NL80211_CMD_DEUTHETICATE to nl80211 driver. In cfg80211, it is accepted only if the interface is P2P_CLI or STA. but in our case it is P2PGO hence it fails. The results in we not sending deauth
 before going down as a group owner.<o:p></o:p></p>
<p class="MsoNormal">I could trace the functions and could not find out why it should not call &nbsp;NL80211_CMD_DEUTHETICATE in P2PGO case
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">wpas_p2p_group_remove-&gt; wpas_p2p_disconnect_safely-&gt; wpas_p2p_disconnect-&gt; wpas_p2p_group_delete-&gt; wpa_supplicant_remove_iface-&gt; wpa_supplicant_deinit_iface-&gt; wpa_supplicant_deauthenticate<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Am I missing something? Can somebody help me to understand why wpa_supplicant_deauthenticate is called which will bound to fail?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">atul<o:p></o:p></p>
</div>
<br><br>
<SPAN style="FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 10pt">Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<BR>More information can be found at <A href="http://www.csr.com">www.csr.com</A>. Keep up to date with CSR on our <A href="http://www.csr.com/blog/">technical blog</A> or <A href="http://www.csr.com/people/">CSR people blog</A>, <A href="http://www.youtube.com/user/CSRplc">YouTube</A>, <A href="https://www.facebook.com/pages/CSR/191038434253534?ref=hl">Facebook</A> or follow us on Twitter at <A href="http://www.twitter.com/CSR_plc">twitter.com/CSR_plc</A>.<BR>You can now access the wide range of products powered by <A href="http://www.aptx.com">aptX</A>.
</body>
</html>