View previous topic :: View next topic |
Author |
Message |
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Fri May 21, 2010 1:39 pm Post subject: broadcom BCM4312 wifi problems |
|
|
Hello,
I'm trying to setup my Broadcom BCM4312 wifi card on a WPA network.
First I installed the broadcom-sta package and the wpa_supplicant package.
Code: | emerge broadcom-sta wpa_supplicant |
Next I edited /etc/conf.d/net like this:
Code: | modules=("wpa_supplicant")
wpa_supplicant_eth1="-Dbroadcom"
|
When I run net.eth1 start I get:
Unsupported Driver "Broadcom".
After reading the wpa_supplicant manual page I understood the driver is chosen at compile time so I ran emerge -pv wpa_supplicant.
The strange thing is that wpa_supplicant doesn't have a compile use flag for broadcom ? _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
rh1 Guru
Joined: 10 Apr 2010 Posts: 501
|
Posted: Fri May 21, 2010 2:20 pm Post subject: |
|
|
I can't check right now , at work, but i believe the the driver is called "wl" or something like that |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Fri May 21, 2010 2:32 pm Post subject: |
|
|
Quote: | I understood the driver is chosen at compile time |
I suspect you build the driver when building your *kernel*, not
when building wpa_supplicant. The driver in the kernel is either
b43 or b43legacy. _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
3igHankCh0w Tux's lil' helper
Joined: 04 Apr 2007 Posts: 80 Location: Fort Worth, Texas
|
Posted: Fri May 21, 2010 3:32 pm Post subject: |
|
|
The driver command you need is -Dwext I have just enabled the wireless on my HP mini 311 which has the BCM4312 card
like yours if you need more help ask I am using the last mac I'll ever own when I get mousepad on the mini 311 I can post
my config files if you still need them. Note I am using the 2.6.32-gentoo-r7 kernel I had problems with the 2.6.33-gentoo-r2
some of the modules pulled in caused my netbook to freeze during boot but you may not have that problem on your machine _________________ And to think my decision to get a degree in computer science started
because I wanted to build a robot to chase the cats around the house. |
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Sat May 22, 2010 12:49 pm Post subject: |
|
|
Thanks for the advice!
Indeed it seems to work with the -Dwext driver. Which is very odd since the wpa_supplicant manual talks about a specific broadcom driver.
Anyhow not all my problems are out of the way.
The /etc/init.d/net.eth1 service starts without errors but no connection is made.
Contents of my wpa_supplicant.conf file:
Code: |
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="Remus"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="******"
priority=5
}
|
When I run wpa_cli I get the following messages:
Code: |
Trying to associate with 5c:33:8e:17:f3:5c (SSID='Remus' freq=3412 Mhz)
Association request to the driver failed
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
...
|
wpa_cli -> scan_results gives me the following:
Code: |
5c:338e17:f3:5c 2412 198 [WPA-PSK-TKIP] Remus
|
I've setup my router like this:
Security: WPA (I can also choose WPA2 or WPA/WPA2)
WPA Type: Passpharse (I can also select 256 Bit key)
Encription: TKIP (I could also select AES or AES/TKIP)
WPS: disabled _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
3igHankCh0w Tux's lil' helper
Joined: 04 Apr 2007 Posts: 80 Location: Fort Worth, Texas
|
Posted: Sat May 22, 2010 9:25 pm Post subject: |
|
|
Do you have the /etc/conf.d/net file set correctly that is where it tells my wireless device to us dhcp to make the connection
# /etc/conf.d/net
config_eth1=( "dhcp" )
modules=( "wpa_supplicant" )
wpa_supplicant_eth1="-Dwext"
dhcpcd_eth1"-t 10"
# End of /etc/conf.d/net
the last line is to allow the wireless device time to come on before using dhcpcd to make the connection with my
provider
Most of this information is in the installation guide in Chapter 8 Configuring your System
I hope this helps _________________ And to think my decision to get a degree in computer science started
because I wanted to build a robot to chase the cats around the house. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun May 23, 2010 1:28 am Post subject: |
|
|
What happen when you run this :
Code: |
# iwlist scan
# dmesg | tail
|
|
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Sun May 23, 2010 12:41 pm Post subject: |
|
|
dmesg output:
Code: | [ 5.982522] sd 6:0:0:0: Attached scsi generic sg2 type 0
[ 5.982734] usb-storage: device scan complete
[ 5.986045] usb 1-5:1.0: uevent
[ 5.986160] usb 1-5: uevent
[ 5.986882] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[ 5.987519] usb 1-5:1.0: uevent
[ 12.438691] sky2 eth0: enabling interface
[ 12.438867] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 20.236051] eth1: no IPv6 routers present
[ 42.613054] sky2 eth0: disabling interface
|
iwlist output:
Code: |
eth1 Scan completed :
Cell 01 - Address: 5C:33:8E:17:F3:5C
ESSID:"Remus"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:4/5 Signal level:-65 dBm Noise level:-92 dBm
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
|
_________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Sun May 23, 2010 1:00 pm Post subject: |
|
|
Some more information:
I've forgotten to load the lib80211 module.
This improves my problem but doesn't fix it.
The Association request to the driver failed doesn't appear anymore.
But I still get the Disconnect event - remove keys message while running wpa_cli. _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Sun May 23, 2010 1:22 pm Post subject: |
|
|
Thinks I'm going to try to make an insecure connection first, without any authentication.
And see if that works and the work my way up from there.
But I can't find any details on how to setup wpa_supplicant.conf for networks without any authentication ? _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Sun May 23, 2010 10:00 pm Post subject: |
|
|
Thanks!
I've setup my router to only accept connections from specific MAC adresses, using no security method.
It works fine.
Can this be considered as being save ? _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon May 24, 2010 3:02 am Post subject: |
|
|
No way, because I can spoof your MAC adress with ifconfig |
|
Back to top |
|
|
eniac Apprentice
Joined: 11 Aug 2003 Posts: 233 Location: Belgium, Brussels
|
Posted: Mon May 24, 2010 8:52 am Post subject: |
|
|
I know but then you should have had access to my computer to find out my MAC address right ? _________________ Turns out the pony only had one trick. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Mon May 24, 2010 10:59 am Post subject: |
|
|
eniac wrote: | I know but then you should have had access to my computer to find out my MAC address right ? |
nope
I can sit with airodump-ng (and other tools) and see client mac addresses, as well even see which essid they are probing for, and connected to _________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon May 24, 2010 5:08 pm Post subject: |
|
|
Indeed cach0rr0
aircrack-ng has a lot of tools |
|
Back to top |
|
|
|