Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220017 - bcm4306 with b43legacy is not properly started with initscript net.wlan0; tx-power turned off
Summary: bcm4306 with b43legacy is not properly started with initscript net.wlan0; tx-...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-02 07:15 UTC by Bodo Graumann
Modified: 2009-12-21 18:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my gentoo-sources-2.6.24-r4 config (config,39.44 KB, text/plain)
2008-05-02 07:19 UTC, Bodo Graumann
Details
Don't apply defaults (iwconfig.diff,465 bytes, patch)
2008-06-21 07:58 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bodo Graumann 2008-05-02 07:15:05 UTC
The net.wlan0 (softlink to net.lo) Gentoo-initscript can't properly initialize my BCM4306 using the b43legacy driver. Instead it turnes tx-power off. With iwconfig, ifconfig and route manual initialization works.

Reproducible: Always

Steps to Reproduce:
1./etc/init.d/net.wlan0 start

Actual Results:  
iwconfig has essid off, ap off and tx-power off
but encryption key is set properly

Expected Results:  
with manual instructions
iwconfig wlan0 essid MyEssID key s:MyKey
ifconfig wlan0 192.168.1.1 up
routes add default gw 192.168.1.254 wlan0

iwconfig has essid and txpower ok, but it takes several seconds to associate with the accesspoint

also a little like in Bug #219742, it helps to do
iwconfig wlan0 txpower 27dB
/etc/init.d/net.wlan0 start

after the first net.wlan0 start failed
and this way I don't have to wait as long for association with the ap

I'm not sure whether this is a bug in the ebuild, the driver or both.
On boot tx-power is 0dBM but not off.
Also there's still a speed problem after the connection is up. Not quite so bad like in #188077, but anoying. Anyway I'll discuss that upstream first and do not know how it's related to this problem.

lspci:
01:00.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)

dmesg:
# modprobe b43legacy:
b43legacy-phy0: Broadcom 4306 WLAN found
b43legacy-phy0 debug: Found PHY: Analog 1, Type 2, Revision 1
b43legacy-phy0 debug: Found Radio: Manuf 0x17F, Version 0x2050, Revision 2
b43legacy-phy0 debug: Radio initialized
phy2: Selected rate control algorithm 'simple'

# /etc/init.d/net.wlan0 start [failing]
b43legacy-phy1 debug: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27)
b43legacy-phy1 debug: Chip initialized
b43legacy-phy1 debug: 30-bit DMA initialized
b43legacy-phy1 debug: Wireless interface started
HW CONFIG: channel=11 freq=2462 phymode=2
b43legacy-phy1 debug: Adding Interface type 2
b43legacy-phy1 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff
ADDRCONF(NETDEV_UP): wlan0: link is not ready
HW CONFIG: channel=11 freq=2462 phymode=2
b43legacy-phy1 debug: Radio initialized
b43legacy-phy1: Radio turned off by software
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
b43legacy-phy1 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: authentication with AP 00:01:e3:04:d1:a7 timed out
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
HW CONFIG: channel=11 freq=2462 phymode=2
b43legacy-phy1 debug: Removing Interface type 2
b43legacy-phy1 debug: Wireless interface stopped
b43legacy-phy1 debug: DMA-32 0x0260 (RX) max used slots: 1/64
b43legacy-phy1 debug: DMA-32 0x0200 (RX) max used slots: 0/64
b43legacy-phy1 debug: DMA-32 0x02A0 (TX) max used slots: 0/128
b43legacy-phy1 debug: DMA-32 0x0280 (TX) max used slots: 0/128
b43legacy-phy1 debug: DMA-32 0x0260 (TX) max used slots: 0/128
b43legacy-phy1 debug: DMA-32 0x0240 (TX) max used slots: 0/128
b43legacy-phy1 debug: DMA-32 0x0220 (TX) max used slots: 10/128
b43legacy-phy1 debug: DMA-32 0x0200 (TX) max used slots: 0/128
b43legacy-phy1 debug: Radio initialized
b43legacy-phy1 debug: Radio initialized

(First fix)
# iwconfig wlan0 txpower 27dB
HW CONFIG: channel=11 freq=2462 phymode=2

# /etc/init.d/net.wlan0 start [success]
b43legacy-phy1 debug: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27)
b43legacy-phy1 debug: Chip initialized
b43legacy-phy1 debug: 30-bit DMA initialized
b43legacy-phy1 debug: Wireless interface started
HW CONFIG: channel=11 freq=2462 phymode=2
b43legacy-phy1 debug: Adding Interface type 2
b43legacy-phy1 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff
ADDRCONF(NETDEV_UP): wlan0: link is not ready
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: RX authentication from 00:01:e3:04:d1:a7 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:01:e3:04:d1:a7
wlan0: authentication frame received from 00:01:e3:04:d1:a7, but not in authenticate state - ignored
wlan0: RX AssocResp from 00:01:e3:04:d1:a7 (capab=0x411 status=12 aid=0)
wlan0: AP denied association (code=12)
b43legacy-phy1 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: RX authentication from 00:01:e3:04:d1:a7 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:01:e3:04:d1:a7
wlan0: RX AssocResp from 00:01:e3:04:d1:a7 (capab=0x411 status=0 aid=4)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:01:e3:04:d1:a7)
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

(second fix, modprobe like above)
#iwconfig wlan0 essid MyEssID key s:MyKey
b43legacy-phy0 debug: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27)
b43legacy-phy0 debug: Chip initialized
b43legacy-phy0 debug: 30-bit DMA initialized
b43legacy-phy0 debug: Wireless interface started
HW CONFIG: channel=1 freq=2412 phymode=2
b43legacy-phy0 debug: Adding Interface type 2
b43legacy-phy0 debug: Using software based encryption for mac: ff:ff:ff:ff:ff:ff
ADDRCONF(NETDEV_UP): wlan0: link is not ready
HW CONFIG: channel=1 freq=2412 phymode=2
HW CONFIG: channel=2 freq=2417 phymode=2
HW CONFIG: channel=3 freq=2422 phymode=2
HW CONFIG: channel=4 freq=2427 phymode=2
HW CONFIG: channel=5 freq=2432 phymode=2
HW CONFIG: channel=6 freq=2437 phymode=2
HW CONFIG: channel=7 freq=2442 phymode=2
HW CONFIG: channel=8 freq=2447 phymode=2
HW CONFIG: channel=9 freq=2452 phymode=2
HW CONFIG: channel=10 freq=2457 phymode=2
HW CONFIG: channel=11 freq=2462 phymode=2
HW CONFIG: channel=1 freq=2412 phymode=2
HW CONFIG: channel=11 freq=2462 phymode=2
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:01:e3:04:d1:a7
wlan0: RX authentication from 00:01:e3:04:d1:a7 (alg=0 transaction=2 status=0)
wlan0: authenticated
wlan0: associate with AP 00:01:e3:04:d1:a7
wlan0: RX AssocResp from 00:01:e3:04:d1:a7 (capab=0x411 status=0 aid=4)
wlan0: associated
wlan0: switched to short barker preamble (BSSID=00:01:e3:04:d1:a7)
phy0: Added STA 00:01:e3:04:d1:a7
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present
wmaster0: STA 00:01:e3:04:d1:a7 Average rate: 540 (540/1)

If you need more info just ask me. I'll also attach my kernel-config.
Comment 1 Bodo Graumann 2008-05-02 07:19:01 UTC
Created attachment 151582 [details]
my gentoo-sources-2.6.24-r4 config
Comment 2 Roy Marples 2008-06-21 07:58:06 UTC
Created attachment 157865 [details, diff]
Don't apply defaults

You didn't say if you're using baselayout-1 or OpenRC. This patch is for OpenRC and may help you.
Comment 3 William Hubbs gentoo-dev 2009-12-21 18:03:08 UTC
If this is still anissue, please post your emerge --info so we can
determine whether you are using baselayout-1 or openrc.