&gt;&gt; I would prefer to add this into wpas_notify_state_changed() instead of<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">
&gt;&gt; here. Do you want this to show up in debug log, too, or would<br>
&gt;&gt; wpa_msg_ctrl() be more appropriate here? In addition, I&#39;m not completely<br>
&gt;&gt; sure about the use of pending_bssid here.. What is that BSSID value used<br>
&gt;&gt; for? Please note that pending_bssid may not be the current BSSID.<br>
&gt;&gt;<br>
&gt;<br>
&gt; You are right, it fits much better to wpas_notify_state_changed().<br>
&gt; And yes, I realize that pending_bssid is not the current one, but<br>
&gt; Network manager is using<br>
&gt; it sometimes. I am pretty sure we can use your message.<br>
<br>
</div>We do need pending_bssid. It has a correct value when state is changed<br>
to COMPLETED<br>
and network manager is tracking it for its purposes.<br></blockquote><div><br>Actually, it is useful when the state is WPA_ASSOCIATING. CTRL-EVENT-CONNECTED does report<br>the BSSID<br></div></div>