From owner-freebsd-net@FreeBSD.ORG Wed Jan 19 08:37:17 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D0821065674 for ; Wed, 19 Jan 2011 08:37:17 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id F097E8FC13 for ; Wed, 19 Jan 2011 08:37:16 +0000 (UTC) Received: by bwz12 with SMTP id 12so548836bwz.13 for ; Wed, 19 Jan 2011 00:37:15 -0800 (PST) Received: by 10.204.60.14 with SMTP id n14mr322876bkh.118.1295426235559; Wed, 19 Jan 2011 00:37:15 -0800 (PST) Received: from jessie.localnet (p5B2EDB5E.dip0.t-ipconnect.de [91.46.219.94]) by mx.google.com with ESMTPS id j11sm3132235bka.12.2011.01.19.00.37.13 (version=SSLv3 cipher=RC4-MD5); Wed, 19 Jan 2011 00:37:14 -0800 (PST) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Alexander Zagrebin Date: Wed, 19 Jan 2011 09:37:12 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.32-27-generic; KDE/4.4.5; i686; ; ) References: <20110118102658.GA3211@gw.zagrebin.ru> <201101181231.20381.bschmidt@freebsd.org> <20110119053550.GA13844@gw.zagrebin.ru> In-Reply-To: <20110119053550.GA13844@gw.zagrebin.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101190937.13015.bschmidt@freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: if_run and wlan_amrr: kernel panics on 8.2-PRERELEASE amd64 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bschmidt@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 08:37:17 -0000 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