LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-06-2006, 11:51 PM   #1
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
Unable to connect to TKIP encrypted network using BCM43xx & wpa_supplicant


While waiting for Pat to finalize Slackware 11.0, I've been playing around with the new bcm4306 driver that is part of the 2.6.17 kernel.

I have it compiled into 2.6.17.11, as a module, along with the IEE80211 network stack and Softmac.

No problem connecting to an unencrypted connection. When I try to connect to my TKIP encrypted network using wpa_supplicant 0.4.9, it won't accept the psk key, so dhcpcd won't give me an IP address.

I use the standard wpa_supplicant.conf file:

ctrl_interface=/var/run/wpa_supplicant

network={
ssid="xxxxxx"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="xxxxxxx"
priority=2
}

This file works fine for my TKIP network when I use ndiswrapper, but not for bcm43xx module.

I am thinking that wpa_supplicant doesn't handle this module. It was compiled with this .config file:

CONFIG_DRIVER_WEXT=y
CONFIG_CTRL_IFACE=y

and here is the script I use to bring up the eth1 interface:

modprobe bcm43xx
ifconfig eth1 up
iwlist eth1 scan
iwconfig eth1 channel 6
iwconfig eth1 essid "xxxxxxx"
/usr/local/sbin/wpa_supplicant -Dwext -Bw -ieth1 -c /etc/wpa_supplicant.conf
/sbin/dhcpcd -N -R -Y -d eth1
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo

All the modules found in the /lib/modules/2.6.17.11/kernel/crypto and /kernel/net folders are loaded.

Has anyone been able to get bcm43xx to work with an encrypted network using softmac and wpa_supplicant? I even tried the 0.5.4 version in testing without success.

When I changed the wpa_supplicant string above to
/usr/local/sbin/wpa_supplicant -Dwext -ieth1 -c -dddd > /etc/wpa.txt

and examined the text file it showed that the 4 way psk handshake was not being negotiated. I think I need to compile wpa_supplicant with more than wext. I tried CONFIG_DRIVER_BROADCOM=y, but it would not compile, so I am at a loss on what else to try :'(

Any suggestions would be most welcome.

Thanks,
Gary
 
Old 09-07-2006, 07:22 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I've been using wpa_supplicant with bcm43xx and not having any real trouble. Most of the networks I'm on are WEP encrypted however, so I don't have a lot of experience on WPA encrypted. Just for comparison, I start wpa_supplicant like this:

wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -ieth0

And my config file looks like this:

network={
ssid="HomeSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP104
wep_key0=HexWEPKey
wep_tx_keyidx=0
priority=5
}
network={
ssid="AnotherSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP40
wep_key0="WEPHexKEy"
wep_tx_keyidx=0
priority=4
}
network={
ssid="AThirdSSID"
key_mgmt=NONE
auth_alg=SHARED
group=WEP40
wep_key0=WEPHexKey
wep_tx_keyidx=0
priority=1
}
network={
ssid="WPA_NETOWRK_SSID"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk="WPA_Passphrase"
priority=1
}

One thing I notice is that you're using iwconfig to partially configure the card prior to calling wpa_supplicant. You probably don't need to do this since wpa_supplicant will configure the card.

Quote:
I think I need to compile wpa_supplicant with more than wext. I tried CONFIG_DRIVER_BROADCOM=y, but it would not compile, so I am at a loss on what else to try :'(
As far as drivers go, no you don't need to use anything besides wext. However, did you compile the various encryption options? And don't use that Broadcom setting. I have no idea what chipset that is meant for, but I think it is actually one fo their wired cards. It certainly isn't for any Broadcom wireless card. At any rate, here is the .config I use:

Code:
#Driver interface for Host AP driver
CONFIG_DRIVER_HOSTAP=y
# Driver interface for ndiswrapper
CONFIG_DRIVER_NDISWRAPPER=y
# Driver interface for generic Linux wireless extensions
CONFIG_DRIVER_WEXT=y
# Driver interface for wired Ethernet drivers
CONFIG_DRIVER_WIRED=y
# Enable IEEE 802.1X Supplicant (automatically included if any EAP method is
# included)
CONFIG_IEEE8021X_EAPOL=y
# EAP-MD5 (automatically included if EAP-TTLS is enabled)
CONFIG_EAP_MD5=y
# EAP-MSCHAPv2 (automatically included if EAP-PEAP is enabled)
CONFIG_EAP_MSCHAPV2=y
# EAP-TLS
CONFIG_EAP_TLS=y
# EAL-PEAP
CONFIG_EAP_PEAP=y
# EAP-TTLS
CONFIG_EAP_TTLS=y
# EAP-GTC
CONFIG_EAP_GTC=y
# EAP-OTP
CONFIG_EAP_OTP=y
# LEAP
CONFIG_EAP_LEAP=y
# PKCS#12 (PFX) support (used to read private key and certificate file from
# a file that usually has extension .p12 or .pfx)
CONFIG_PKCS12=y
# Select configuration backend:
# file = text file (e.g., wpa_supplicant.conf)
CONFIG_BACKEND=file
 
  


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
FC4 + madwifi + wpa_supplicant. Authenticates, but cannot connect to network jspam Linux - Wireless Networking 0 11-05-2005 03:21 AM
How to use xsupplicant, wpa_supplicant for wpa/tkip/peap-mschapv2 weeds84 Linux - Wireless Networking 2 03-13-2005 05:17 AM
Unable to connect to network Printer (CNet 430) chhorn Linux - Hardware 0 11-10-2004 09:29 PM
Unable to connect to Website Once outside the network jc_neo Linux - Networking 17 10-28-2004 08:31 PM
Unable to connect to network vaber Linux - Newbie 4 09-08-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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