Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bcm4318 no DHCP with wpa_supplicant WPA-PSK TKIP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
JettLogic
n00b
n00b


Joined: 04 Jan 2006
Posts: 15

PostPosted: Thu Apr 06, 2006 10:06 am    Post subject: bcm4318 no DHCP with wpa_supplicant WPA-PSK TKIP Reply with quote

Hi everyone,

I've tried reading and searching the "Native Airport Extreme Drivers" and "Airport Extreme snapshot ebuilds (out-of-tree)" threads and found people with similar problems to mine but no solutions. So here I go with a new thread in search of solutions.

I have an iBook G4 with bcm4318 (recent Airport Extreme) wireless card. My lab network is WPA-PSK with hidden ESSID on the accesspoint. I haven't tried ad-hoc connection to another laptop, but hear that it doesn't work with softmac. I've edited this since I got it working at the library hotspot (but no luck with wpa_supplicant in lab).

The problems:



  • With 20060329: wpa_supplicant fails to associate: "Custom wireless event: 'associating failed because no suitable network was found'" from wpa_supplicant, even when rate set to 11Mb

  • No DHCP responses under wpa_supplicant even when it did briefly associate under the 20060125 drivers...



Old problems with 20060125 versions:

- wpa_supplicant occasionally associates, but gets messages of "SoftMAC: Authentication response received from 00:0e:9b:a6:fc:2a but no queue item exists." from the accesspoint.

- Kernel freeze / lockup when exiting and restarting wpa_supplicant

Previous responses:

Quote:

Note:
Some people are having problems with dhcp not working (the dhcp server doesn't respond). For now, just set the IP address manually, or try a more recent snapshot. We're working on it, but the problem usually is that the device didn't associate, so try again!

Note:
Support for newer cards (4318 chipset) is still being worked on. Please be patient while we figure out what they changed. It should work at lower rates (11M) for now.


CONFIGURATION

0001:10:12.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)

sys-kernel/gentoo-sources-2.6.16-r1
net-wireless/ieee80211softmac-0.1-r20060329
net-wireless/bcm43xx-0.0.1-r20060329
net-wireless/wireless-tools-28_pre16
net-wireless/wpa_supplicant-0.5.2

Firmware: wl_apsta-3.130.20.0.o

wpa_supplicant.conf for the WPA is

Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=2
network={
  ssid="XXXXXXX"
  mode=0
  proto=WPA
  key_mgmt=WPA-PSK
  auth_alg=OPEN
  pairwise=TKIP
  group=TKIP
  psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}


For the lab I run

Code:

iwconfig eth1 rate 11M  # known not to work with default 54M
wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant.conf
dhcpcd -t 5 eth1


I've gotten it working in the library hotspot using

Code:

ifconfig eth1 up
iwconfig eth1 rate 11M
iwlist eth1 scan # check networks found
iwconfig eth1 essid library
iwconfig eth1 # check you have accesspoint
dhcpcd -t 5 eth1


Main question

Has anyone gotten wireless working in a setup like mine (bcm4318, softmac, wpa_supplicant with a conf like mine, then DHCP)?


Last edited by JettLogic on Fri Apr 07, 2006 1:17 pm; edited 3 times in total
Back to top
View user's profile Send private message
infjms00
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 112
Location: Vigo, SPAIN

PostPosted: Thu Apr 06, 2006 11:49 am    Post subject: Reply with quote

I got it working with DHCP, but without wpa_supplicant, (with the last ebuild upadate and kernel 2.6.16)...

Not yet tried with wpa_supplicant, if i make it work, ill tell you!!
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Thu Apr 06, 2006 12:07 pm    Post subject: Reply with quote

Quote:
For the lab I run

Code:

iwconfig eth1 rate 11M
wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant.conf
dhcpcd -i eth1

My question is: Why are you running both iwconfig modules and wpa_supplicant together? it should be seperated in /etc/conf.d/net in the following way:
Code:
 
#using iwconfig:
modules=( "!wpa_supplicant" )
modules=( "iwconfig" )
# or when using wpa_supplicant, uncomment the next two lines, and comment the above two lines:
#modules=( "wpa_supplicant" )
#modules=( "!iwconfig" )

This should be the case when you emerge both iwconfig and wpa_supplicant. I understood that only one of them can be used at a time. whet is your conf.d/net and /etc/conf.d/wireless (for iwconfig configuration)?

Nadi
Back to top
View user's profile Send private message
JettLogic
n00b
n00b


Joined: 04 Jan 2006
Posts: 15

PostPosted: Thu Apr 06, 2006 1:18 pm    Post subject: Reply with quote

Hi nadi,

AFAIK, iwconfig is the only way to set the rate and other params. It's just an app, not a daemon, so it shouldn't be interfering with wpa_supplicant. The two tools seems to complement each other - wpa_supplicant handles authentication, iwconfig sets basic parameters like channel/rate.

My conf.d/net is nothing special - just wpa_supplicant_eth1="-D wext", and modules =("dhcpcd" "wpa_supplicant"), which makes wpa_supplicant start when running init.d/net.eth1. Nothing in conf.d/wireless. Still doesn't work - the only difference is you don't get the -dd debugging output when you run wpa_supplicant from initscripts.

* Just running wpa_supplicant in the lab with the right options, and then dhcpcd, I should be able to get it associating and DHCP response without using any initscripts, but it doesn't. Well, iwconfig output *does* show the correct ESSID and Access Point MAC after starting wpa_supplicant, but wpa_cli shows status go from ASSOCIATING to SCANNING, and debugging also shows wpa_supplicant thinks it failed. And DHCP gets no response...

* Likewise in the library, just using iwconfig to set essid, rate and channel (without any wpa_supplicant or initscripts) should let me get DHCP, but no response there either.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Apr 07, 2006 4:39 am    Post subject: Reply with quote

While the attached suggestions are really good, you should also know that the 4318 chipsets currently still have signal strength issues. I'm still working on it, hopefully we'll have it fixed soon! :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
JettLogic
n00b
n00b


Joined: 04 Jan 2006
Posts: 15

PostPosted: Fri Apr 07, 2006 12:48 pm    Post subject: Reply with quote

Woo-hoo, library now posting from library hotspot

Must admit I last tried library before upgrading to 20030329 (not on same campus, so not there often)

This works:

Code:

ifconfig eth1 up
iwconfig eth1 rate 11M
iwlist eth1 # check your networks
iwconfig eth1 essid library
iwconfig eth1 # check your ap
dhcpcd -t 5 eth1
firefox # post success story


JoseJX and co, good work so far and good luck ironing out the remaining bcm4318 stuff!

I think with the latest stuff Gentoo is at the out-of-the-box "just emerge bcm43xx and wireless-tools" stage for bcm4318, at least on non-WPA networks.

So... has anyone managed to get wpa_supplicant to work on bcm4318 with a wpa_supplicant.conf like mine (see original post)?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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