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
 
LinkBack Search this Thread
Old 03-01-2006, 02:26 PM   #1
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 169

Rep: Reputation: 30
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.

Please help...
 
Old 03-03-2006, 06:16 AM   #2
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: Fedora
Posts: 483

Rep: Reputation: 30
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.
 
Old 03-03-2006, 03:30 PM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Slack 10.2, Slack 12, Suse 10.0, DSL 2.2, Xubuntu 7.04
Posts: 920

Rep: Reputation: 30
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
 
Old 03-03-2006, 05:29 PM   #4
JunctaJuvant
Member
 
Registered: May 2003
Location: Wageningen, the Netherlands
Distribution: Fedora
Posts: 483

Rep: Reputation: 30
Quote:
Originally Posted by rose_bud4201
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 ;-)
 
Old 03-04-2006, 07:06 AM   #5
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 169

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by JunctaJuvant
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.
An update on my problem in this thread... :-(
http://www.linuxquestions.org/questi...d.php?t=419236
 
Old 03-18-2006, 01:14 PM   #6
ublaq
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
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?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA Supplicant Question mikeCanada Suse/Novell 5 12-21-2005 09:43 PM
2.6.13 and WPA supplicant not playing with each other andy_lee Linux - Wireless Networking 3 09-23-2005 02:35 PM
WPA-PSK and WEP Kenji Miyamoto Linux - Wireless Networking 4 08-21-2005 05:38 PM
WPA Supplicant Question brokenflea Slackware 7 07-28-2005 09:18 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM


All times are GMT -5. The time now is 10:10 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
Open Source Consulting | Domain Registration