I'm working on a project where I need to be able to control the wireless network connections on a Pi via a web interface and I've found that wpa_supplicant is taking care of that on the Rapsbian distro. I've researched a bit on some blogs and in wpa_cli's manual and found out that adding a basic network configuration should be executed as follows:
Code: Select all
wpa_cli add_network wpa_cli set_network 0 ssid "MyNetwork" wpa_cli set_network 0 psk "MyPassword"
When I try and do it in wpa_cli's interactive mode it returns OK, but whenever I try to config on the command line it returns me a FAIL.
Would there be someone having an idea why is this happening?