LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-23-2012, 06:05 AM   #1
wallamit
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Connection/disconnection problems with wpa_supplicant and hostapd when using WPA2 enc


Dear all,

I am currently doing some tests with wpa_supplicant and hostapd and I am facing a quite strange connection/disconnection problem when using WPA2.
When the WiFi client (using wpa_supplicant) tries to associate to the AP (managed by hostapd) is several times disconnected from the network before finally receiving an IP address and finally being able to transmit data.
Apparently, the client is 1st correctly associated (message “State: ASSOCIATING -> ASSOCIATED” visible in the wpa_supplicant log) but the client is soon after disconnected due to authentication problem with the following error message:
Quote:
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
Authentication with 00:0e:8e:3b:05:6d timed out.
BSSID 00:0e:8e:3b:05:6d blacklist count incremented to 2
wpa_driver_wext_disassociate
No keys have been configured - skip key clearing
State: ASSOCIATED -> DISCONNECTED.
After this the client restarts the association/authentication procedure and after a few tries the authentication succeed. The SSID of the base was well broadcasted during the above described test.
Up to now, I have never seen this problem when connecting without authentication.
I can connect without problem with Windows PC with WPA2 enabled, so I would suspect that the AP is correctly configured.

Would anyone know the reason for this “connection/disconnection” problem?
Would this be a known issue or is it related to incorrect configuration of hostapd or wpa_supplicant (relevant part of the config files are given below)?

Thanks in advance for any help.

Best regards



Wpa_supplicant at error time:
Quote:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
network={
ssid=**********************
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
psk=26ec2d449940baabfedadc640589fb0a1ee5d0ebb9dd8e02f7e2345d1318b244
priority=20
}

Hostapd at error time:
Quote:


##### WPA/IEEE 802.11i configuration
wpa=2 #for WPA2 encryption
wpa_pairwise=CCMP
rsn_pairwise=CCMP

wpa_passphrase=clickshare
wpa_key_mgmt=WPA-PSK
wpa_group_rekey=6000
wpa_strict_rekey=1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Wireless with WPA2 and without WPA_supplicant Walzing Linux - Wireless Networking 6 08-16-2011 08:14 AM
Start wpa_supplicant before hostapd daghenningsorbo Linux - Networking 1 03-13-2009 06:49 PM
WPA2, wpa_supplicant problems... smithersb Linux - Networking 3 01-11-2009 12:22 PM
problems configuring wpa2 connection on slackware 12.1 wheeliee Linux - Wireless Networking 5 12-02-2008 11:54 PM
wpa2 with wpa_supplicant overpencil Linux - Software 1 01-27-2008 03:55 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration