View previous topic :: View next topic |
Author |
Message |
Quadaptor n00b
Joined: 02 May 2006 Posts: 9 Location: Frankfurt/Main
|
Posted: Sat Jul 22, 2006 10:11 pm Post subject: WPA Supplicant: WEP-Key removed. |
|
|
Hi Guys,
my notebook have a integrated WLAN card, an Intel PRO/Wireless 3945ABG (ipw3945). I try to connect to my WLAN router with WPA Supplicant. While connecting the WEP-Key will be removed (or is not used?), so the login failed.
Here are all my installed packages, configuration and result:
installed packages: | * net-wireless/ipw3945
Latest version available: 1.1.0_pre2
Latest version installed: 1.1.0_pre2
Size of files: 192 kB
Homepage: http://ipw3945.sourceforge.net/
Description: Driver for the Intel PRO/Wireless 3945ABG miniPCI express adapter
License: GPL-2
* net-wireless/ipw3945-ucode
Latest version available: 1.13
Latest version installed: 1.13
Size of files: 59 kB
Homepage: http://www.bughost.org/ipw3945/
Description: Microcode for the Intel PRO/Wireless 3945ABG miniPCI express adapter
License: ipw3945
* net-wireless/ipw3945d
Latest version available: 1.7.22
Latest version installed: 1.7.22
Size of files: 58 kB
Homepage: http://www.bughost.org/ipw3945/
Description: Regulatory daemon for the Intel PRO/Wireless 3945ABG miniPCI express adapter
License: ipw3945
* net-wireless/ieee80211
Latest version available: 1.1.13-r1
Latest version installed: 1.1.13-r1
Size of files: 65 kB
Homepage: http://ieee80211.sourceforge.net
Description: Generic IEEE 802.11 network subsystem for Linux
License: GPL-2
* net-wireless/wireless-tools
Latest version available: 29_pre10
Latest version installed: 29_pre10
Size of files: 268 kB
Homepage: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
Description: A collection of tools to configure IEEE 802.11 wireless LAN cards
License: GPL-2
* net-wireless/wpa_supplicant
Latest version available: 0.5.4
Latest version installed: 0.5.4
Size of files: 615 kB
Homepage: http://hostap.epitest.fi/wpa_supplicant/
Description: IEEE 802.1X/WPA supplicant for secure wireless transfers
License: || ( GPL-2 BSD ) |
/etc/conf.d/net: | config_eth2=( "dhcp" )
modules=( "wpa_supplicant" )
wpa_supplicant_eth2="-Dwext -dd" |
/etc/wpa_supplicant.conf: | ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="wilster"
key_mgmt=NONE
wep_key0="abcdefghijklm"
wep_tx_keyidx=0
}
|
connection process: | localhost dennis # /etc/init.d/net.eth2 start
* Starting eth2
* Starting wpa_supplicant on eth2 ...
Initializing interface 'eth2' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
ap_scan=1
Line: 5 - start of a new network block
ssid - hexdump_ascii(len=7):
77 69 6c 73 74 65 72 wilster
key_mgmt: 0x4
wep_key0 - hexdump(len=13): [REMOVED]
wep_tx_keyidx=0 (0x0)
Priority group 0
id=0 ssid='wilster'
Initializing interface (2) 'eth2'
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
SIOCGIWRANGE: WE(compiled)=20 WE(source)=16 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:13:02:1e:0b:ae
wpa_driver_wext_set_wpa
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_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface eth2
Daemonize.. [ ok ]
* Starting wpa_cli on eth2 ... [ ok ]
* Backgrounding ...
localhost dennis # |
result: | localhost dennis # iwconfig eth2
eth2 unassociated ESSID:off/any
Mode:Managed Frequency=nan kHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:16 dBm
Retry limit:15 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:1836 Missed beacon:0
|
I hope, anybody have an idea? |
|
Back to top |
|
|
bytesniper n00b
Joined: 12 Mar 2006 Posts: 33 Location: Abq, NM
|
Posted: Sat Jul 22, 2006 10:23 pm Post subject: |
|
|
maybe im confused... why would you use wpa_supplicant to connent to a WEP secured wireless network? as far as i know wpa_supplicant only works with WPA secured access points. all you should need is the module for the card itself and wireless_tools.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4#doc_chap3
also, if you have control over the access point i would change it over to wpa, as wep is incredibly easy to compromise.
joseph |
|
Back to top |
|
|
Quadaptor n00b
Joined: 02 May 2006 Posts: 9 Location: Frankfurt/Main
|
Posted: Sun Jul 23, 2006 8:23 pm Post subject: |
|
|
Hi Joseph,
thanks for your answer. I would use WPA because networks (out of my home) requires WPA authentication. The configuration of my home network is only the beginning.
The wireless tools aren't running, too:
/etc/conf.d/net: | modules=( "iwconfig" )
key_wilster="[1] s:abcdefghijklm key [1] enc open"
preferred_aps=( "wilster" )
config_wilster=( "dhcp" ) |
connection process: | * Starting eth2
* Configuring wireless network for eth2
* WEP key is not set for "<hidden>" - not connecting
* Couldn't associate with any access points on eth2
* Failed to configure wireless for eth2 [ !! ]
|
iwconfig via bash is running without problems:
iwconfig: | localhost dennis # iwconfig eth2 essid wilster
localhost dennis # iwconfig eth2 key s:abcdefghijklm
localhost dennis # dhcpcd eth2 |
result: | localhost dennis # iwconfig eth2
eth2 IEEE 802.11g ESSID:"wilster"
Mode:Managed Frequency:2.437 GHz Access Point: 00:13:49:4B:54:72
Bit Rate:54 Mb/s Tx-Power:15 dBm
Retry limit:15 RTS thr:off Fragment thr:off
Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX Security mode:open
Power Management:off
Link Quality=94/100 Signal level=-35 dBm Noise level=-36 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:6083 Missed beacon:0 |
|
|
Back to top |
|
|
Zarhan Veteran
Joined: 27 Feb 2004 Posts: 1016
|
Posted: Sun Jul 23, 2006 10:54 pm Post subject: Re: WPA Supplicant: WEP-Key removed. |
|
|
[quote="Quadaptor"]
/etc/wpa_supplicant.conf: | ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="wilster"
key_mgmt=NONE
wep_key0="abcdefghijklm"
wep_tx_keyidx=0
}
|
Umm, did you just modify that key so you did not have to announce it publicly to us or something, because "abcdefghijklm" is not a valid key - altough some basestations may be providing some sort of passphrase => key algorithm. Wpa_supplicant expects just valid hex..
Anyway, I would try to use wpa_gui to configure the settings - then you at least cannot make any typos
I have used wpa_supplicant to connect to lots of different networks, WPA, 802.11i, WEP, unencrypted, and it works ok. Compared to my config, I don't have the quotes around wep_key0 and I don't have wep_tx_keyidx at all, but not sure if it makes any difference.
Oh, and do you need to use auth_alg=SHARED in your network? Some WEP networks are configured for shared auth instead of open.. |
|
Back to top |
|
|
|
|
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
|
|