64bit WEP works - what next for WPA-PSK with supplicant?
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
64bit WEP works - what next for WPA-PSK with supplicant?
Using ndiwsrapper 1.10 with the bcmwl5.inf WinXP driver I can get 64bit WEP. I have also installed wpa_supplicant-0.4.8 but do not know how to gert this working properly - I have configured the files (see below) but I am missing something...
lspci:
00:00.0 Host bridge: ATI Technologies Inc AGP Bridge [IGP 320M] (rev 13)
00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 320M] (rev 01)
00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
00:09.0 Modem: ALi Corporation Intel 537 [M5457 AC-Link Modem]
00:0a.0 CardBus bridge: Texas Instruments PCI4410 PC card Cardbus Controller (rev 02)
00:0a.1 FireWire (IEEE 1394): Texas Instruments PCI4410 FireWire Controller (rev 02)
00:0c.0 Network controller: Broadcom Corporation BCM94306 802.11g (rev 03)
00:0d.0 USB Controller: NEC Corporation USB (rev 43)
00:0d.1 USB Controller: NEC Corporation USB (rev 43)
00:0d.2 USB Controller: NEC Corporation USB 2.0 (rev 04)
00:0e.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
00:11.0 Bridge: ALi Corporation M7101 PMU
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility U1
Here is the relevant bit from etc/rc.d/rc.wireless:
00:90:96:*)
INFO="Broadcom WLAN 802.11g on Laptop"
# ESSID = "sn55ge" <- Doesn't work on the WLAN card
CHANNEL="1"
MODE="Managed"
KEY="xxxxxxxxxx" <- my 10 digit 64 bit HEX WEP key
;;
Here is the relevant bit from dmesg:
ndiswrapper version 1.10 loaded (preempt=no,smp=no)
ndiswrapper: driver bcmwl5 (WLAN,07/17/2003, 3.30.15.0) loaded
ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNK2] -> GSI 10 (level, low) -> IRQ 10
ndiswrapper: using irq 10
wlan0: vendor: ''
wlan0: ndiswrapper ethernet device 00:90:96:bb:b5:c2 using driver bcmwl5, 14E4:4320:144F:7050.5.conf
wlan0: encryption modes supported: WEP; TKIP with WPA; AES/CCMP with WPA
Moving to try and set up WPA using wpa_supplicant, here is /etc/wpa_supplicant.conf:
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
bash-3.00# more wpa_supplicant.conf
# See /usr/doc/wpa_supplicant-0.4.8/wpa_supplicant.conf.sample
# for many more options that you can use in this file.
# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="sn55ge"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
#ssid="sn55ge"
#psk="xxxxxxxxxxxxx" <- my 13 digit ASCII WPA pass-phrase
psk=caf3247875e3d58105849cc02f3a6bdfa25eXXXXX47381228745ea192813e56f <- the generated key (XXXXX added )
}
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
# You'll need a recent version of wireless-tools for this!
network={
ssid="any"
key_mgmt=NONE
priority=2
}
When I set my AP to WPA with the pass-phrase, then run wpa_supplicant in debug with:
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d
I get a load of errors and no connection - something about passphrase mismatch.
What should I be doing next. Do I need to remove the rc.wireless.conf file? Remove the (WEP) KEY line from it? Maybe remove rc.wireless entirely?
I am sure that WPA should work (see dmesg) but I am at a loss on how I move from WEP to WPA using wpa_supplicant.
You seem to have a passphrase mismatch (the encryption keys) and you are apparantly using two different encryption keys (the WEP key and the WPA key). So you seem to have suggested a possible solution yourself: Why not try commenting out that WEP key?
Hope that helps.
Last edited by JunctaJuvant; 03-03-2006 at 12:11 PM.
I'm still trying to get this setup for myself as well, but from what I've been reading in the wpa_supplicant's README, you should only need the WPA-related lines in your wpa_supplicant.conf.
i.e.
# Base WPA configuration
# home network; allow all valid ciphers
network={
ssid="home"
scan_ssid=1
key_mgmt=WPA-PSK
psk="very secret passphrase"
}
I'd guess that if you want to switch between the WEP and WPA configurations, you may be able to add the WEP version in a separate config file, and set yourself up a shell script which alternates between them, renaming them and restarting wpa_supplicant. Purely a guess, off the top of my head. Take it for what it's worth
I'd guess that if you want to switch between the WEP and WPA configurations, you may be able to add the WEP version in a separate config file, and set yourself up a shell script which alternates between them, renaming them and restarting wpa_supplicant. Purely a guess, off the top of my head. Take it for what it's worth
The great thing about wpa_supplicant is that it also supports WEP ;-)
You seem to have a passphrase mismatch (the encryption keys) and you are apparantly using two different encryption keys (the WEP key and the WPA key). So you seem to have suggested a possible solution yourself: Why not try commenting out that WEP key?
Hope that helps.
I've a USR5410 802.11g Wireless Turbo PC Card which works okay under RHEL AS 4 with ndiswrapper and windows xp drivers. The trouble is I cannot get neither wpa_supplicant-0.4.7 or -0.5.1 to work. wpa_supplicant recognises the AP. But it outputs a message saying "driver does not support WPA". What does this mean?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.