From owner-freebsd-net@FreeBSD.ORG Fri Oct 8 16:59:45 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B27F91065679; Fri, 8 Oct 2010 16:59:45 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 813758FC14; Fri, 8 Oct 2010 16:59:45 +0000 (UTC) Received: by pxi17 with SMTP id 17so397666pxi.13 for ; Fri, 08 Oct 2010 09:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=4ejrCp+abNOHFWhSNUXuKH4+dih600PYFfpZPhysbXU=; b=dc9EorAmUxugb0bTydBT9qcP3eFvlfyXdEaDExY5Mp89Un0uJRZceO2how2KNF5NYk 4N6HLxsCtoh4yeBRYP957vd6LYD5JQDFcpsIhj3nwmYRYtsIrfv8buHzVCArGlJzjHl0 i7ZoDXiWVn6W9ELlJGGgwkDL9FtOCJG2Poxqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=s/JXmi1LkN3u6tJm3BzBFa5zKORSGb1jQlYVlC56EeYTmTGwxFvYfUzPH7KfsKLsfz Fv3LwPMOIPRcjZuwvt/BDFsGf5BeIVDnH5YojAi6wHU59j/7tLxi9y3sz87YbO0qFuwk aM5d9dHZhqh0Qv8lkfEuTVnmLNHV3AjO57dp4= MIME-Version: 1.0 Received: by 10.143.160.18 with SMTP id m18mr2231018wfo.325.1286557185038; Fri, 08 Oct 2010 09:59:45 -0700 (PDT) Received: by 10.220.187.194 with HTTP; Fri, 8 Oct 2010 09:59:44 -0700 (PDT) In-Reply-To: <20101008160422.GC81218@FreeBSD.org> References: <4763016D.7060100@janh.de> <20101006100335.GA26843@FreeBSD.org> <20101008131849.GA54860@FreeBSD.org> <20101008160422.GC81218@FreeBSD.org> Date: Fri, 8 Oct 2010 16:59:44 +0000 Message-ID: From: Paul B Mahol To: Alexey Dokuchaev Content-Type: text/plain; charset=ISO-8859-1 Cc: Bernhard Schmidt , net@freebsd.org Subject: Re: Monitor mode not working for iwi(4) on 7.X X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 16:59:45 -0000 On 10/8/10, Alexey Dokuchaev wrote: > On Fri, Oct 08, 2010 at 03:20:08PM +0000, Paul B Mahol wrote: >> On 10/8/10, Alexey Dokuchaev wrote: >> > On Thu, Oct 07, 2010 at 08:43:37PM +0200, Bernhard Schmidt wrote: >> >> Try the attached patch, this is basically the code from stable/6 >> >> ported to head and stable/7. I did only some basic tests but monitor >> >> mode seems to work and it is still possible to use the card in STA >> >> mode. >> > >> > Unfortunately, I am getting instant panic when trying any of aircrack-ng >> > suite utilities ("ifconfig iwi0 scan/list scan" works though): >> > >> > Fatal trap 12: page fault while in kernel mode >> > processor eflags = interrupt enabled, resume, IOPL = 0 >> > current process = 35 (iwi0 taskq) >> > >> > Any suggestions? >> >> 7.X is buggy regarding taskqueue, I think (maybe it is net80211 bug >> and not iwi fault). > > That's a sad thing to hear about stable branch. > >> Does it panic with tcpdump too? > > Bernhard's tests indicate it's not. However, me doing "ifconfig iwi0 > mediaopt monitor" here resulted in immediate panic (did not catch the > core this time, but I'm positive it's the same as with aircrack-ng). > Looks like SMP issue. Let me look if it is something obvious.