LinuxQuestions.org
Review your favorite Linux distribution.
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 09-29-2005, 10:19 AM   #1
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
Connecting with WPA


I am using Ubuntu 5.04 and a Gateway M275. Ubuntu automatically detected all of the hardware except the tablet(no biggie hardly use ti much anyways).

I need to be able to connect to two WPA enabled networks.

My home network is WPA-PSK with TKIP and the SSID is not broadcasted.
At work the network is WPA-PSK with TKIP and the SSID is broadcasted. My work has multiple APs setup for roaming.



When I run wpa_supplicant at home it sees an AP with a hidden SSID but won't associate.
When run it at work the APs are found and association is attempted. It failed because it tries to accociate with to an AP the has a MAC of all zeros.

I followed the guide I found on ubuntu's website but it didn't provide much on diagnosing problems. I've dug around for awhile and have progressed from wpa_supplicant doing nothing to seeing aps to it finally connecting to a bad ap. I need some help. That dark corner is looking nice and cozy right now...

wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant

ap_scan=0

network={
	ssid="myhomefakessid"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	psk="whatsthepassagain"
}

network={
	ssid="lameworkssid"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=TKIP
	psk="ikneedthisonetoo"
}
wpa_supplicant console output
Code:
bb002@OHS100:~$ sudo wpa_supplicant -i eth0 -c /etc/wpa_supplicant.conf -d
Initializing interface 'eth0' conf '/etc/wpa_supplicant.conf' driver 'default'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=0
Line 22: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
   id=0 ssid='myhomefakessid'
   id=1 ssid='lameworkssid'
Initializing interface (2) 'eth0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:12:f0:c3:a4:ba
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth0' added
Already associated with a configured network - generating associated event
Association event - clear replay counter
Associated with 00:00:00:00:00:00
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
BSSID not set when trying to send an EAPOL frame
Using the source address of the last received EAPOL frame 00:00:00:00:00:00 as the EAPOL destination
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Already associated with a configured network - generating associated event
Association event - clear replay counter
Associated with 00:00:00:00:00:00
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
BSSID not set when trying to send an EAPOL frame
Using the source address of the last received EAPOL frame 00:00:00:00:00:00 as the EAPOL destination
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Authentication with 00:00:00:00:00:00 timed out.
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Already associated with a configured network - generating associated event
Association event - clear replay counter
Associated with 00:00:00:00:00:00
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
BSSID not set when trying to send an EAPOL frame
Using the source address of the last received EAPOL frame 00:00:00:00:00:00 as the EAPOL destination
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Signal 2 received - terminating
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
wpa_driver_hostap_set_wpa: enabled=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
wpa_driver_hostap_set_drop_unencrypted: enabled=0
wpa_driver_hostap_set_countermeasures: enabled=0
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)
 
Old 09-29-2005, 03:09 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Try enabling the ESSID broadcast of your AP and then connect to it using WPA. I never had any luck in associating to hidden AP's using WPA.

Eric
 
Old 09-29-2005, 03:38 PM   #3
bb002
Member
 
Registered: Aug 2005
Posts: 80

Original Poster
Rep: Reputation: 15
At work the SSID is broadcasted. And that's where I'm trying to connect, seems I forgot to mention that is where the console log is from. once I can connect at work i'll figure out something for home. I use my laptop at work most of the time anyway. I only mentioned my home network because it's in the wpa_supplicant.conf file, I normally wire-up at home.
 
Old 10-13-2005, 05:53 PM   #4
bb002
Member
 
Registered: Aug 2005
Posts: 80

Original Poster
Rep: Reputation: 15
I finally got wpa working. it appears that the "ipw" driver that comes with ubuntu 5.04 doesn't support wpa. however the current version does. so i manually compiled and updated the "ipw" driver since it wasn't listed. and if it was i missed it.

Now at work it connects and work perfects....almost. Home still has a few issues but i can eventually connect. maybe someone has a pointer or two to help me.

New /etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant

#ap_scan=2

network={
       ssid="fakehomessid"
       scan_ssid=0
       proto=WPA
       key_mgmt=WPA-PSK
       psk="supersecurepass"
}


network={
       ssid="ssidatwork"
       scan_ssid=0
       proto=WPA
       key_mgmt=WPA-PSK
       psk="superinsecurepass"
}
Work connects without a hitch. Home however requires a bit of trickory. Home has a hidden ssid but make scan_ssid=1 doesn't work. inorder to make it work i have to uncomment the ap_scan=2 then run wpa_supplicant, terminate wpa_supplicant, comment ap_scan=2 out again then run wpa_supplicant one more time. Now i can connect at home.

What I want to know is why must I do this to connect at home!? if i enable ssid broadcast it works fine, no trickory, no nothing. It just connects like work. disable ssid broadcast and i have to go through all of that again.
 
  


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
Digikam connecting as root/not connecting as regular user jayhel Slackware 5 09-29-2005 05:57 PM
Wpa Help shinny Linux - Wireless Networking 2 08-28-2005 09:53 AM
WPA and ndiswrapper lordpeter Linux - Wireless Networking 4 02-07-2005 08:25 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 03:21 AM

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

All times are GMT -5. The time now is 12:53 AM.

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