Skip to contentSkip to conversation

Assertion failed in ieee80211softmac_wx_get_rate

DISCUSSION Pavel Roskin 3 participants 4 messages Mar 2, 2007

lore
Share & tools
lore
#0 lore raw

Hello!

If I load bcm43xx and run iwconfig without bringing the interface up, I'm getting this in the kernel log:

SoftMAC: ASSERTION FAILED (0)
at: /home/proski/src/linux-2.6/net/ieee80211/softmac/ieee80211softmac_wx.c:306:ieee80211softmac_wx_get_rate()

It's an x86 system with the 2.6.20 kernel (actually, it's the master branch from the mb repository, which is wireless-dev before the 2.6.21 switchover plus broadcom fixes).

The assert assures that the interface has a valid tx rate. But since the interface has never been up, the rate has not been assigned.

Either softmac should tolerate rate 0, at least when the interface is down, or it should initialize the rate much earlier, perhaps in alloc_ieee80211softmac().

I can test another tree, e.g. wireless-2.6, if there are chances that the problem has been fixed.

Signature · 2 lines
Regards,
Pavel Roskin
#1 lore raw
Quoted 15 lines · Pavel Roskin

Hello!

If I load bcm43xx and run iwconfig without bringing the interface up, I'm getting this in the kernel log:

SoftMAC: ASSERTION FAILED (0)
at: /home/proski/src/linux-2.6/net/ieee80211/softmac/ieee80211softmac_wx.c:306:ieee80211softmac_wx_get_rate()

It's an x86 system with the 2.6.20 kernel (actually, it's the master branch from the mb repository, which is wireless-dev before the 2.6.21 switchover plus broadcom fixes).

The assert assures that the interface has a valid tx rate. But since the interface has never been up, the rate has not been assigned.

Quoted 6 lines

Either softmac should tolerate rate 0, at least when the interface is down, or it should initialize the rate much earlier, perhaps in alloc_ieee80211softmac().

I can test another tree, e.g. wireless-2.6, if there are chances that the problem has been fixed.

Does the tree you are using have this commit?

commit 6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0

Author: John W. Linville <[email protected]>
Date:   Tue Jan 2 21:22:05 2007 -0500

[PATCH] softmac: avoid assert in ieee80211softmac_wx_get_rate

Unconfigured bcm43xx device can hit an assert() during wx_get_rate queries. This is because bcm43xx calls ieee80211softmac_start late (i.e. during open instead of probe).

bcm43xx_net_open ->
bcm43xx_init_board ->
bcm43xx_select_wireless_core ->
ieee80211softmac_start

Fix is to check that device is running before completing ieee80211softmac_wx_get_rate.

It is in linux-2.6, wireless-2.6, and wireless-dev. If you don't want to use those trees, you should be able to apply the patch to the tree you are using.

Hth!

John

Signature · 2 lines
John W. Linville
[email protected]
#2 lore raw
Quoted 3 lines · John W. Linville

Does the tree you are using have this commit?

commit 6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0

Now it has :)
Thanks and sorry for the noise.

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw
In reply to John W. Linville
Quoted 4 lines · John W. Linville

It is in linux-2.6, wireless-2.6, and wireless-dev. If you don't want to use those trees, you should be able to apply the patch to the tree you are using.

If you wish to run bcm43xx-softmac from either the mb (Michael Buesch) or the wireless-dev trees, you can get a patch to update them to the current state of my code at ftp://lwfinger.dynalias.org/patches/update_mb_0302.patch. This patch not only includes the things that are in the wireless-2.6 tree, but changes that are in progress.

FYI, I have compile-, but not yet run-tested this tree with these changes.

Larry