Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UNKNOWN COMMAND as reply from wpa_ctrl_request(ctrl, "SCAN"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
darshanchivate
n00b
n00b


Joined: 17 Dec 2013
Posts: 1
Location: Bangalore

PostPosted: Tue Dec 17, 2013 10:31 pm    Post subject: UNKNOWN COMMAND as reply from wpa_ctrl_request(ctrl, "S Reply with quote

Hi All,

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum