You are not logged in.

#1 2009-01-04 02:38:57

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 458

Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

Hello I have a MacBook (late 2007) with a wireless-card from Broadcam, the card works with WEP and the classic configuration over rc.conf very well. But I can't get the card running with WPA and the net network-profiles.

Here is the link to the driver - http://www.broadcom.com/support/802.11/linux_sta.php
eth2 = wireless-card
eth1 = firewireanything
eth0 = wired-card

rc.conf

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Berlin"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
#MODULES=(sky2 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="macbook"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.1.220 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(!eth0 !eth1 eth2)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(wireless)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network net-profiles netfs alsa crond portmap fam hal)

/etc/network.d/wireless

CONNECTION="wireless"
INTERFACE=eth2
HOSTNAME=macbook
IP="static"
IFOPTS="192.168.1.225 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1
DNS1=192.168.1.1

# Wireless Settings (optional)
ESSID=3Com
#KEY=
IWOPTS="mode managed essid $ESSID channel 11"

#WIFI_INTERFACE=wlan0   # use this if you have a special wireless interface
                        # that is linked to the real $INTERFACE

#WIFI_WAIT=5            # seconds to wait for the wireless card to
                        # associate before bringing the interface up

USEWPA="yes"            # start wpa_supplicant with the profile
WPAOPTS=""        # use "" for normal operation or specify additional
                        # options (eg, "-D ipw")
                        # see /etc/wpa_supplicant.conf for configuration

Can I set here the WPA/WPA2-Key also? Why here ESSID? Do I need still a configuration in wpa_supplicant.conf?
Thats very confusing and not explained.
WPAOPTS? Do I need to add something like "-D wext"?

/etc/wpa_supplicant.conf

# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
    key_mgmt=NONE
    priority=-9999999
}

network={
    ssid="3Com"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="topsecret"
    priority=5
}

# WPA2
# proto=WPA RSN

I need help. Please smile

Last edited by hoschi (2009-01-04 20:21:58)

Offline

#2 2009-01-04 03:49:23

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

/etc/network.d/examples is self explainatory.
rc.conf is only for setting for WEP

Offline

#3 2009-01-04 15:11:25

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 458

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

Yes. I got that.
But I don't know if I should enter the ESSID/WPA2KEY/-D wext in wpa_supplicant.conf and/or /etc/network.d?

Offline

#4 2009-01-04 16:49:34

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

Is either netcfg2 or wpa_supplicant, not both. So you got to edit wireless and set SECURITY="wpa"

Offline

#5 2009-01-04 16:58:59

viga
Member
Registered: 2007-06-12
Posts: 112

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

Offline

#6 2009-01-04 16:59:46

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

archlinuxsagi wrote:

Is either netcfg2 or wpa_supplicant, not both. So you got to edit wireless and set SECURITY="wpa"

You can use netcfg with wpa_supplicant -- you have to set SECURITY to "wpa-config".  Here's my old netcfg configuration for a WPA2 network:

$ cat /etc/network.d/MajorTom 
CONNECTION="wireless"
DESCRIPTION="A wep encrypted wireless connection using static ip"
INTERFACE=ath0
SCAN="no"
SECURITY="wpa-config"
ESSID="MajorTom"
IP="dhcp"
WPA_CONF=/etc/wpa_supplicant.conf

Offline

#7 2009-01-04 17:07:43

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

fwojciec wrote:

WPA_CONF=/etc/wpa_supplicant.conf

That's new to me..
Should this be in the wiki?

Offline

#8 2009-01-04 17:16:45

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

If this info is not in the wiki it might be worth it to add it -- it's all detailed in /etc/network.d/examples/complete.example though.

Offline

#9 2009-01-04 17:22:10

archlinuxsagi
Member
Registered: 2008-09-12
Posts: 259

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

No wonder.
Me was wondering how did hoshi get all the extra variables.
Anyway let's hope hoshi solve his issue with our help...

Offline

#10 2009-01-04 20:18:50

hoschi
Member
From: Ulm (Germany)
Registered: 2008-11-03
Posts: 458

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

fwojciec wrote:

If this info is not in the wiki it might be worth it to add it -- it's all detailed in /etc/network.d/examples/complete.example though.

Thats the reason why I was so confused.

My new and well working configuration:

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Berlin"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
#MODULES=(sky2 snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="macbook"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="eth0 192.168.1.220 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(!eth0 !eth1 !eth2)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
NETWORKS=(3com)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network net-profiles netfs alsa crond portmap fam hal)
CONNECTION="wireless"
DESCRIPTION="Very verbose complete wireless example"

INTERFACE=eth2
HOSTNAME=macbook

# Interface Settings (use IP="dhcp" for DHCP)
IP="static"
IFOPTS="192.168.1.225 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1

# DNS Settings (optional)
DOMAIN=localdomain
DNS1=192.168.1.1
DNS2=
SEARCH=

# Standard Wireless Settings
ESSID=3Com
SECURITY=wpa-config # One of wep, wpa, wpa-config, none
KEY=""

# Scans to see if network is available before connecting (reccomended)
SCAN="YES"

# Time to wait to connect to a network. Default 15.
TIMEOUT=10

# Pass *custom* options to iwconfig. Usually not needed (optional)
IWOPTS="mode managed essid $ESSID channel 6 key restricted $KEY"

# Any extra arguments for wpa_supplicant
WPA_OPTS=

# For SECURITY='wpa-config' only - filename of a wpa-supplicant config
WPA_CONF=/etc/wpa_supplicant.conf
# This is a network block that connects to any unsecured access point.
# We give it a low priority so any defined blocks are preferred.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

network={
    key_mgmt=NONE
    priority=-9999999
}

network={
    ssid="Linksys"
    proto=WPA RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="areulookingatmybreasts"
    priority=5
}

network={
    ssid="3Com"
    proto=WPA
    key_mgmt=WPA-PSK
    pairwise=CCMP TKIP
    group=CCMP TKIP
    psk="nomam"
    priority=5
}

# WPA2
# proto=WPA RSN

There are also profiles for the Linksys-Router and for wired cable.
Thanks for the help!

Last edited by hoschi (2009-01-04 20:21:23)

Offline

#11 2009-01-04 20:25:57

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Wireless-Card doesn't not work with WPA/WPA2 but with WEP [Solved]

I'm glad you got it to work hoschi smile

Offline

Board footer

Powered by FluxBB