Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jan 2011 09:37:12 +0100
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        Alexander Zagrebin <alex@zagrebin.ru>
Cc:        freebsd-net@freebsd.org
Subject:   Re: if_run and wlan_amrr: kernel panics on 8.2-PRERELEASE amd64
Message-ID:  <201101190937.13015.bschmidt@freebsd.org>
In-Reply-To: <20110119053550.GA13844@gw.zagrebin.ru>
References:  <20110118102658.GA3211@gw.zagrebin.ru> <201101181231.20381.bschmidt@freebsd.org> <20110119053550.GA13844@gw.zagrebin.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, January 19, 2011 06:35:51 Alexander Zagrebin wrote:
> Hi!
> 
> On 18.01.2011 12:31:20 +0100, Bernhard Schmidt wrote:
> > > I'm trying to use the RT2872-based USB adapter in the hostap mode
> > > on the latest RELENG_8 (8.2-PRERELEASE) for amd64.
> > > [..]
> > 
> > Pull that
> > http://svn.freebsd.org/viewvc/base?view=revision&revision=217511
> > and let me know if that fixes the issue.
> 
> I've retrieved the ieee80211_node.c and if_run.c and recompiled
> wlan.ko and if_run.ko.
> 
> Here results:
> 
> Case 1: both if_run.ko and wlan_amrr.ko are loaded via loader.conf
> 
>   stable/8:  panic
>   rev217511: panic
> 
> Case 2: wlan_amrr.ko loaded manually _after_ if_run.ko but before
> creation of the wlan interface
> 
>   stable/8:  panic on rate control
>   rev217511: no panic, but rate control doesn't work; tx rate is
> fixed on 1 Mbit/s
> 
> Case 3: wlan_amrr.ko loaded _before_ if_run.ko
> 
>   stable/8:  panic on rate control
>   rev217511: no panic, rate control works as expected
> 
> So rev217511 partially fixes the issue.

That sounds rather weird to me, I can't imagine how the module loading 
order should make any difference. Well, at least, before creating the 
VAP, because that is the point where that stuff gets initialized/used.

Do you have anything configured in rc.conf maybe? That would create the 
VAP right after loading if_run.ko even before you are able to load 
wlan_amrr.ko.

I'll have look at that again..

-- 
Bernhard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101190937.13015.bschmidt>