title: How start new WPA device from code using any wpa_supplicant interface
body: <p>I need to open new WPA/WPA2 device from linux c code.
  Now I create it manualy by using wpa_supplicant</p>
  
  <pre><code>wpa_supplicant -iwlan0 -c connfig.conf -B
  </code></pre>
  
  <ul>
  <li>How I can to start it from my code (without using system() )?</li>
  <li>What wpa_supplicant interface is intended for this ?</li>
  </ul>
  
  <p>Maybe, do you have any example ?
  hanks in advance</p>