From owner-freebsd-net@FreeBSD.ORG Fri Oct 8 15:15:53 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 161E2106566C; Fri, 8 Oct 2010 15:15:53 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 484988FC0C; Fri, 8 Oct 2010 15:15:52 +0000 (UTC) Received: by ewy27 with SMTP id 27so499148ewy.13 for ; Fri, 08 Oct 2010 08:15:51 -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=Dt37B/Jw6JW2COR16lMhynvgguUqdxS6nrRVzEcWKYE=; b=xf5nLOBChKzH9rvZVYCtOqtfCtSroFUzgayxRpucAqCqC3rKAZjRJJw6zSnGmgDdJj Ike84EHbg/aRQ1cowjz6hAd214aEkFAUFYraYLuJbQKnZ3EciuouMg4zP7Uo/tKEFCVQ BRiF0CcxPE/o1NwvPSzsr862sHRYRFxhuhN/U= 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=YQMGV7EeTYeJJO2kvVHY5ofInfTUpFSSQo0snkaxa0tvz+FDQw3PAiG4XlzubvJZ8R OFgGwxJ6yIzhpaKD69sZ5ExKcoVZVMlJoEUo60npLGIxZkEPd2nHZU3eSX539k47oUjY rDxAQYAbjdsd3za3advN2gtoiZMSJ6Doc+/xs= MIME-Version: 1.0 Received: by 10.14.119.7 with SMTP id m7mr1596740eeh.8.1286550945947; Fri, 08 Oct 2010 08:15:45 -0700 (PDT) Received: by 10.220.187.194 with HTTP; Fri, 8 Oct 2010 08:15:45 -0700 (PDT) In-Reply-To: <20101008122939.GA52927@FreeBSD.org> References: <4763016D.7060100@janh.de> <20101006100335.GA26843@FreeBSD.org> <20101007094918.GA15399@FreeBSD.org> <20101008091633.GA21612@FreeBSD.org> <20101008122939.GA52927@FreeBSD.org> Date: Fri, 8 Oct 2010 15:15:45 +0000 Message-ID: From: Paul B Mahol To: Alexey Dokuchaev Content-Type: text/plain; charset=ISO-8859-1 Cc: Brandon Gooch , Adrian Chadd , 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 15:15:53 -0000 On 10/8/10, Alexey Dokuchaev wrote: > On Fri, Oct 08, 2010 at 11:48:57AM +0000, Paul B Mahol wrote: >> On 10/8/10, Alexey Dokuchaev wrote: >> > On Thu, Oct 07, 2010 at 12:44:20PM +0000, Paul B Mahol wrote: >> >> Monitor and injection work commpletly different after vap. >> >> >> >> I do not think that kismet and aircrack-ng from ports are patched at >> >> all. >> > >> > This is at least partially true; SVN trunk of aircrack-ng behaves better >> > than 1.1 version from ports (WRT infamous wi_write() problem). I will >> > work out patches for the port after kernel side will get fixed. >> >> Heh, you are wrong, svn trunk of aircrack-ng is broken versus >> wi_write() "problem". >> >> Look at "famous" ticket number 666 > > Oh, that's right, I think I've been testing SVN trunk with this patch > applied (maybe with =| MONITOR hunk, which I found in another version of > similar patch). Without a patch injection test fails immediately, > before wi_write() gets a chance to trigger. > >> Injection on FreeBSD (I forgot exact revision) will work only in AHDEMO >> mode. >> Unlike before you can not inject in MONITOR mode. > > I've seen people say this, but I could not find more elaborative answer. > I am also not sure about AHDEMO mode, since iwi(4) reports this for me: > > $ ifconfig iwi0 list caps > iwi0=25818300 I'm talking about after VAP, not about 7.X, where that does not apply. Support for AHDEMO is somehow similar to MONITOR, look how bwn(4) does it. It is very straightforward.