LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-28-2008, 03:42 AM   #1
sa_riyaskhan
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Unhappy Enabled WPA2 but connot use wpa_cli commands....


hi all,

I have enabled WPA2 in our small boards..which is running linux.

here is the configuration files...
/tmp/my_psk.conf

ctrl_interface=/var/run/my_psk
ctrl_interface_group=0
eapol_version=1
ap_scan=1
network={
ssid="any"
scan_ssid=1
key_mgmt=WPA-PSK
psk=701459761a3d17c5ddead0deafbeeffeedbadf00dc659db31e2e3d36f00a12b1
}

and my hostapd file looks like..

interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=--1
logger_stdout_level=2
debug=0
ctrl_interface_group=0
macaddr_acl=0
#deny_mac_file=/etc/hostapd.deny
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
dump_file=/tmp/hostapd.dump
ssid=any
wpa=1
wpa_psk=701459761a3d17c5ddead0deafbeeffeedbadf00dc659db31e2e3d36f00a12b1
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP



I am glad that the encryption is done properly..at both the ap and station...
But i need the encryption to stop after a while and start again....
for that i have seen wpa_cli commands but i couldn't make work it properly ..its showing some error...

i tried
wpa_cli terminate:
failed to connect to wpa_supplicant - wpa_ctrl_open:no such file or directory.

If any of you have any experience in this WPA2 please help me.....
Thanks
Riyaskhan
Meshcity
 
Old 08-04-2008, 07:55 PM   #2
wheelsg
Member
 
Registered: Feb 2004
Location: Westchester, NY
Distribution: slackware
Posts: 63

Rep: Reputation: 15
You have to run wpa_supplicant before the command line tool can access it. If you run it with the '-d' switch you can watch its progress as it associates (if you add a 'K' to that switch it'll show you what gives with the key exchange). If you run it with '-Bw' instead of '-dK,' it will run as a daemon and you can interrogate it with wpa_cli.

Don't forget the other switches (especially in your case, the -c switch) along with '-D<wifidriver>' and '-i<iface>.' And you should move your .conf file to /etc for protection.

That should do it,
Geoff.

Last edited by wheelsg; 08-04-2008 at 07:57 PM.
 
Old 08-09-2008, 01:39 AM   #3
sa_riyaskhan
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you very much for your response.....i have made it working...
very much appreciated for your kindness...

cheers Riyas

Last edited by sa_riyaskhan; 08-09-2008 at 01:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
http 404 , the page connot be found alsaaf Linux - General 3 12-11-2006 06:34 AM
php5 connot find big libxml2? xjtdy888 Linux - Networking 1 05-29-2006 02:03 AM
help:connot install kingstorm on FC5t2.why? adsl9999 Linux - Software 0 02-22-2006 05:43 PM
bash connot find the command Dunadan1821 Linux - Software 9 08-30-2004 08:04 AM
Installing Linux-2.4.20: Make menuconfig, connot find ncurses SparceMatrix Linux From Scratch 3 06-12-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration