<div dir="ltr">Hello All,<div><br></div><div>I guess it will be ok not to scan and determine bssid from ssid instead one could use &#39;any&#39; in the above call. <br></div><div><br></div><div>I do not think that is going to cause any conflict as either user would be providing PIN or supplicant will randomly generate it and that will easily resolve which AP we wish to connect.</div>
<div><br></div><div>This however raises another question </div><div>Why is there a provision to provide bssid at all?</div><div> </div><div>regards</div><div>Abhishek</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Sep 19, 2013 at 4:58 PM, Abbhishek Misra <span dir="ltr">&lt;<a href="mailto:abhishekfishy2000@gmail.com" target="_blank">abhishekfishy2000@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>Hello All,</div><div><br></div><div>I&#39;m new to this list please don&#39;t mind my ignorance, will soon catch up with acceptable standards.</div><pre style="white-space:pre-wrap;word-wrap:break-word">
I wish to understand following </pre><pre style="white-space:pre-wrap;word-wrap:break-word">Why the control interface for pin method expects used to provide BSSID?</pre><pre style="white-space:pre-wrap;word-wrap:break-word">
<br></pre><pre style="word-wrap:break-word"><font color="#000000"><span style="white-space:pre-wrap">static int wpa_cli_cmd_wps_pin(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
        if (argc == 0) {
                printf(&quot;Invalid WPS_PIN command: need one or two arguments:\n&quot;
                       &quot;- BSSID: use &#39;any&#39; to select any\n&quot;
                       &quot;- PIN: optional, used only with devices that have no &quot;
                       &quot;display\n&quot;);
                return -1;
        }

        return wpa_cli_cmd(ctrl, &quot;WPS_PIN&quot;, 1, argc, argv);
}<br></span></font></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><br></pre><pre style="white-space:pre-wrap;word-wrap:break-word">I was expecting that user would be providing SSID and associated PIN.</pre>

<pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial">Please help me understand why bssid is needed, here. </font></pre><pre style="white-space:pre-wrap;word-wrap:break-word"><font face="arial">I&#39;m working on user interface that requests human user to provide ssid, do you recommend that one should do a scan and determine bssid for the provided ssid and then use this interface.</font></pre>
<span class="HOEnZb"><font color="#888888">
<pre style="white-space:pre-wrap;word-wrap:break-word"><br></pre>-- <br>Regards<div>Abhishek Misra</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards<div>Abhishek Misra</div>
</div>