Joined: 17 Dec 2013
|Posted: Tue Dec 17, 2013 10:31 pm Post subject: UNKNOWN COMMAND as reply from wpa_ctrl_request(ctrl, "S
I am new to WIFI and linix. I am trying to open interface for wpa_supplicant and SCAN for APs in.
I am able to open interface with wpa supplicant through wpa_ctrl_open("/var/run/wpa_supplicant") successfully.
I sent "PING" command to WPA supplicant using wpa_ctrl_request() I got PONG as reply(I assume WPA supplicant is up and parsing commands).
But when I sent SCAN command wpa_ctrl_request(ctrl, "SCAN", os_strlen(cmd), buf, &len,wpa_cli_msg_cb); reply was "UNKNOWN COMMAND".
Can any one suggest what might be the problem?
Thanks in advance