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 12-12-2007, 10:50 AM   #1
MakeItWork
LQ Newbie
 
Registered: Dec 2007
Location: Utah
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
wpa_supplicant problem - ndiswrapper, router's dhcp all working without encryption


I'm using ndiswrapper version 1.50. I'm on kernel 2.6.23.8-63-fc8 in fedora 8. It's a fresh install (laptop used to be dual boot - now just F8).

I have ndiswrapper working, lights on, full connection when the encryption on the router is turned off. I feel like this is confirmation that ndiswrapper is not my problem with the security on. Is this a faulty assumption?

When I run 'wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -d' I don't get any magic anywhere (yes, I enabled it in the config before making wpa_supplicant).

When I run 'wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -d' I get an endless cycle that doesn't output any obvious errors:

Code:
0: 00:18:e7:13:2a:0b ssid='XXXXXXX' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
   selected WPA AP XX:XX:XX:XX:XX:XX ssid='XXXXXXXX'
Try to find non-WPA AP
Trying to associate with XX:XX:XX:XX:XX:XX (SSID='XXXXXXXX' freq=2447 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2 proto 1
WPA: set AP WPA IE - hexdump(len=24): XX XX XX XX XX XX
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): XX XX XX XX XX XX XX XX
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b1a len=26
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c07 len=86
AssocReq IE wireless event - hexdump(len=70): XX XX XX XX XX XX XX XX XX
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c08 len=32
AssocResp IE wireless event - hexdump(len=16): XX XX XX XX XX XX XX XX
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: XX:XX:XX:XX:XX
Association info event
req_ies - hexdump(len=70): XX XX XX XX XX XX XX XX
resp_ies - hexdump(len=16): XX XX XX XX XX XX XX XX
WPA: set own WPA/RSN IE - hexdump(len=26): XX XX XX XX XX XX XX XX XX
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=XX:XX:XX:XX:XX:XX
No keys have been configured - skip key clearing
Associated with XX:XX:XX:XX:XX:XX
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RX EAPOL from XX:XX:XX:XX:XX:XX
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): XX XX XX XX XX XX XX XX
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from XX:XX:XX:XX:XX:XX (ver=1)
WPA: Renewed SNonce - hexdump(len=32): XX XX XX XX XX XX XX XX 
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=26): XX XX XX XX XX XX XX XX XX 
WPA: Sending EAPOL-Key 2/4
RX EAPOL from XX:XX:XX:XX:XX:XX
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): XX XX XX XX XX XX XX XX XX XX XX
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): XX XX XX XX XX XX XX XX XX XX XX
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from XX:XX:XX:XX:XX:XX (ver=1)
WPA: IE KeyData - hexdump(len=24): XX XX XX XX XX XX XX XX XX XX XX
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c07 len=86
AssocReq IE wireless event - hexdump(len=70): XX XX XX XX XX XX XX XX XX XX XX
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8c08 len=32
AssocResp IE wireless event - hexdump(len=16): XX XX XX XX XX XX XX XX XX XX XX
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: XX:XX:XX:XX:XX:XX
Association info event
req_ies - hexdump(len=70): XX XX XX XX XX XX XX XX XX XX XX
resp_ies - hexdump(len=16): XX XX XX XX XX XX XX XX XX XX XX
WPA: set own WPA/RSN IE - hexdump(len=26): XX XX XX XX XX XX XX XX XX XX XX
State: GROUP_HANDSHAKE -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Associated with XX:XX:XX:XX:XX:XX
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
Cancelling scan request
RX EAPOL from XX:XX:XX:XX:XX:XX
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
  key_info 0x89 (ver=1 keyidx=0 rsvd=0 Pairwise Ack)
  key_length=32 key_data_length=0
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
  key_nonce - hexdump(len=32): XX XX XX XX XX XX XX XX XX XX XX
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 0XX:XX:XX:XX:XX:XX (ver=1)
WPA: Renewed SNonce - hexdump(len=32): XX XX XX XX XX XX XX XX XX XX XX
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=26): XX XX XX XX XX XX XX XX XX XX XX
WPA: Sending EAPOL-Key 2/4
RX EAPOL from XX:XX:XX:XX:XX:XX
IEEE 802.1X RX: version=1 type=3 length=119
  EAPOL-Key type=254
  key_info 0x1c9 (ver=1 keyidx=0 rsvd=0 Pairwise Install Ack MIC)
  key_length=32 key_data_length=24
  replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
  key_nonce - hexdump(len=32): XX XX XX XX XX XX XX XX XX XX XX
  key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
  key_mic - hexdump(len=16): XX XX XX XX XX XX XX XX XX XX XX
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 0XX:XX:XX:XX:XX:XX (ver=1)
WPA: IE KeyData - hexdump(len=24): XX XX XX XX XX XX XX XX XX XX XX
WPA: Sending EAPOL-Key 4/4
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_wext_set_key: alg=2 key_idx=0 set_tx=1 seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: GROUP_HANDSHAKE -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_deauthenticate
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6
[root@localhost ~]#
My wpa_supplicant.conf looks like this:

Code:
ctrl_inteface=/var/run/wpa_supplicant

network={
     ssid="MYSSID"
     #psk="ASCII"
     psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     key_mgmt=WPA-PSK
     proto=WPA
     pairwise=TKIP
     group=TKIP
}
I had it all up in Fedora 7 and I kept my wpa_supplicant.conf and I know I didn't change anything on the router's side. I know dhcp on the router is working because it works fine wired and wireless without security.

Also, when I run 'dhclient wlan0', I get:

Code:
[root@localhost ~]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.6-Fedora
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit <their site>
Listening on LPF/wlan0/XX:XX:XX:XX:XX:XX
Sending on   LPF/wlan0/XX:XX:XX:XX:XX:XX
Sending on   Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
Trying recorded lease 192.168.42.101
PING 192.168.42.2 (192.168.42.2) from 192.168.42.101 wlan0: 56(84) bytes of data.

--- 192.168.42.2 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
No working leases in persistent database - sleeping.
[root@localhost ~]#
When I run 'iwlist wlan0 scan' it picks up the three networks near my house so I know the card is up.

Please help.

Last edited by MakeItWork; 12-12-2007 at 04:08 PM. Reason: Left command out of third paragraph.
 
Old 12-12-2007, 12:51 PM   #2
MoreCoffee
LQ Newbie
 
Registered: Jan 2004
Distribution: Fedora 8 with multiple virtual machines
Posts: 24

Rep: Reputation: 15
I had problems getting ndiswrapper on Fedora8 to work with wpa_supplicant, I ended up just scratching wpa_supplicant and using network manager, which is working great. Good luck -Dave
 
Old 12-12-2007, 01:39 PM   #3
MakeItWork
LQ Newbie
 
Registered: Dec 2007
Location: Utah
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Dave:

Did the network manager handle the WPA security? I didn't think it would. I guess I'll have to give it a shot.

Thanks for the pointer.
 
Old 12-26-2007, 01:00 PM   #4
MakeItWork
LQ Newbie
 
Registered: Dec 2007
Location: Utah
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Not Worth the Trouble

I finally broke down and paid $30 for an intel 2200 to replace the broadcom piece of junk. Worked right out of the box and I'm done. Knowing how easy and relatively inexpensive that was, I recommend that solution to anyone fighting with the broadcom chips in linux!
 
  


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
Ndiswrapper + NetworkManager + wpa_supplicant lonelydreamer Linux - Wireless Networking 5 06-13-2006 07:45 AM
wpa_supplicant and ndiswrapper rabidus Linux - Wireless Networking 2 10-20-2005 10:02 AM
Do I need WPA_supplicant for WEP encryption? irena56 Linux - Software 2 09-29-2005 09:00 AM
wpa_supplicant/ndiswrapper seifenblasen Linux - Laptop and Netbook 3 03-24-2005 12:40 PM
Wireless DHCP and encryption not working on RedHat 9.0 asadhussain Linux - Wireless Networking 0 10-13-2003 10:54 AM

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

All times are GMT -5. The time now is 11:06 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