<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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.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;}
/* List Definitions */
@list l0
{mso-list-id:1689715476;
mso-list-type:hybrid;
mso-list-template-ids:-1441898274 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.25in;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:1.25in;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:1.75in;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.25in;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:2.75in;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.25in;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:3.75in;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:4.25in;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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="MsoPlainText">On Fri, Aug 28, 2015 at 10:06:50AM +0000, Atul Joshi wrote:<o:p></o:p></p>
<p class="MsoPlainText">> Wpa supplicant has a CLI command SET config_methods to set WPS config methods but the config methods within P2P device info attribute are taken from p2p_supplicant.conf this can lead to discrepancy in config method advertisement.<o:p></o:p></p>
<p class="MsoPlainText">> Is there a CLI command to set config method in P2P device info attribute?<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Could you please provide more details on which field in which frame does not get updated? I verified that "SET config_methods <methods>" command updates P2P Device Info attribute and the config_methods P2P peer value did report the updated
value in device discovery. I have executed following commands<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoPlainText">Excerpts of the supplicant logs (I am using wpa_supplicant 2.4)<o:p></o:p></p>
<p class="MsoPlainText">1441633762.090168: wlan3: Control interface command 'SET device_type 10-0050F204-4'<o:p></o:p></p>
<p class="MsoPlainText">1441633762.090200: CTRL_IFACE SET 'device_type'='10-0050F204-4'<o:p></o:p></p>
<p class="MsoPlainText">1441633762.090289: wlan3: Control interface command 'SET config_methods pbc'<o:p></o:p></p>
<p class="MsoPlainText">1441633762.090304: CTRL_IFACE SET 'config_methods'='pbc'<o:p></o:p></p>
<p class="MsoPlainText">1441633762.090312: config_methods='pbc'<o:p></o:p></p>
<p class="MsoPlainText">.<o:p></o:p></p>
<p class="MsoPlainText">.<o:p></o:p></p>
<p class="MsoPlainText">.<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138872: wlan3: Control interface command 'P2P_GROUP_ADD freq=2412'<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138886: P2P: Stop any on-going P2P FIND<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138895: P2P: Stopping find<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138913: P2P: Clear timeout (state=SEARCH)<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138917: P2P-FIND-STOPPED <o:p></o:p></p>
<p class="MsoPlainText">1441633801.138929: CTRL_IFACE monitor sent successfully to /tmp/wpa_ctrl_5749-3\x00<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138935: P2P: State SEARCH -> IDLE<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138940: P2P: Clear timeout (state=IDLE)<o:p></o:p></p>
<p class="MsoPlainText">1441633801.138945: P2P: Clear drv_in_listen (2412)<o:p></o:p></p>
<p class="MsoPlainText"><o:p> </o:p></p>
<p class="MsoNormal">beacon_ies - hexdump(len=77): 7f 08 04 00 00 00 00 00 00 40 dd 2d 00 50 f2 04 10 4a 00 01 10 10 44 00 01 02 10 49 00 06 00 37 2a 00 01 20 10 11 00 05 43 53 52 47 4f 10 54 00 08 00 0a 00 50 f2 04 00 04 dd 12 50 6f 9a 09 02 02 00 25 89 03
06 00 00 02 5b 03 12 50<o:p></o:p></p>
<p class="MsoNormal">1441633801.223853: nl80211: proberesp_ies - hexdump(len=160): 7f 08 04 00 00 00 00 00 00 40 dd 6c 00 50 f2 04 10 4a 00 01 10 10 44 00 01 02 10 3b 00 01 03 10 47 00 10 00 50 f2 12 34 56 78 90 12 34 56 78 90 12 34 56 10 21 00 01 20 10 23
00 09 4d 6f 72 70 68 65 75 73 32 10 24 00 01 20 10 42 00 05 31 32 33 34 35 10 54 00 08 00 0a 00 50 f2 04 00 04 10 11 00 05 43 53 52 47 4f 10 08 00 02 00 00 10 49 00 06 00 37 2a 00 01 20 dd 26 50 6f 9a 09 02 02 00 25 89 0d 1a 00 00 02 5b 03 12 50 11 88 00 0a
00 50 f2 04 00 04 00 10 11 00 05 43 53 52 47 4f<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here we can see that 0d 1a 00 00 02 5b 03 12 50 11 88 last 2 octets are config methods.<o:p></o:p></p>
<p class="MsoNormal">Also I can see that irrespective of which methods are configured, we process Provision Discovery Request from peer, by comparing with hardcoded config methods<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In file p2p_pd.c in function p2p_process_prov_disc_req we compare<o:p></o:p></p>
<p class="MsoNormal"> if (!(msg.wps_config_methods &<o:p></o:p></p>
<p class="MsoNormal"> (WPS_CONFIG_DISPLAY | WPS_CONFIG_KEYPAD |<o:p></o:p></p>
<p class="MsoNormal"> WPS_CONFIG_PUSHBUTTON | WPS_CONFIG_P2PS))) {<o:p></o:p></p>
<p class="MsoNormal"> p2p_dbg(p2p, "Unsupported Config Methods in Provision Discovery Request");<o:p></o:p></p>
<p class="MsoNormal"> goto out;<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thus for P2P case, we always consider all P2P config methods supported.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">atul<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>