linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Assertion failed in ieee80211softmac_wx_get_rate
@ 2007-03-02  6:26 Pavel Roskin
  2007-03-02 13:57 ` John W. Linville
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Roskin @ 2007-03-02  6:26 UTC (permalink / raw)
  To: linux-wireless; +Cc: bcm43xx-dev

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.

-- 
Regards,
Pavel Roskin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Assertion failed in ieee80211softmac_wx_get_rate
  2007-03-02  6:26 Assertion failed in ieee80211softmac_wx_get_rate Pavel Roskin
@ 2007-03-02 13:57 ` John W. Linville
  2007-03-02 16:28   ` Pavel Roskin
  2007-03-02 17:23   ` Larry Finger
  0 siblings, 2 replies; 4+ messages in thread
From: John W. Linville @ 2007-03-02 13:57 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless, bcm43xx-dev

On Fri, Mar 02, 2007 at 01:26:59AM -0500, Pavel Roskin wrote:
> 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.

Does the tree you are using have this commit?

commit 6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0
Author: John W. Linville <linville@tuxdriver.com>
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.

    Signed-off-by: John W. Linville <linville@tuxdriver.com>

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
-- 
John W. Linville
linville@tuxdriver.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Assertion failed in ieee80211softmac_wx_get_rate
  2007-03-02 13:57 ` John W. Linville
@ 2007-03-02 16:28   ` Pavel Roskin
  2007-03-02 17:23   ` Larry Finger
  1 sibling, 0 replies; 4+ messages in thread
From: Pavel Roskin @ 2007-03-02 16:28 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, bcm43xx-dev

On Fri, 2007-03-02 at 08:57 -0500, John W. Linville wrote:
> Does the tree you are using have this commit?
> 
> commit 6bbdce5ac755e3b3cdcf9bb9fdbcc2af78ad34d0

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

-- 
Regards,
Pavel Roskin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Assertion failed in ieee80211softmac_wx_get_rate
  2007-03-02 13:57 ` John W. Linville
  2007-03-02 16:28   ` Pavel Roskin
@ 2007-03-02 17:23   ` Larry Finger
  1 sibling, 0 replies; 4+ messages in thread
From: Larry Finger @ 2007-03-02 17:23 UTC (permalink / raw)
  To: John W. Linville; +Cc: Pavel Roskin, linux-wireless, bcm43xx-dev

John W. Linville wrote:
> 
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-02 17:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-02  6:26 Assertion failed in ieee80211softmac_wx_get_rate Pavel Roskin
2007-03-02 13:57 ` John W. Linville
2007-03-02 16:28   ` Pavel Roskin
2007-03-02 17:23   ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).