How start new WPA device from code using any wpa_supplicant interface

A

Aefr123

Guest
Hello,
I need to open new WPA/WPA2 device from linux c code. Now I create it manualy by using wpa_supplicant (wpa_supplicant -iwlan0 -c connfig.conf -B ). How I can to start it from my code (without using system() )?
Maybe, do you have any example ?
Which wpa_supplicant interface is intended for this ?
Thanks in advance
 


system() is a PHP function? What code are you reffering to... terminal code? and if so, you want to start a device (router, printer, PC) from another one through wireless?
 


Top