From owner-freebsd-mobile@FreeBSD.ORG Wed Jan 19 17:55:55 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A1F16A4CE for ; Wed, 19 Jan 2005 17:55:55 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4AD243D49 for ; Wed, 19 Jan 2005 17:55:54 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.91] (sam@[66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j0JHtpWi072643 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Jan 2005 09:55:52 -0800 (PST) (envelope-from sam@errno.com) Message-ID: <41EE9F44.3050308@errno.com> Date: Wed, 19 Jan 2005 09:56:20 -0800 From: Sam Leffler User-Agent: Mozilla Thunderbird 1.0RC1 (X11/20041208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Maglione References: <41ED1FD5.8090401@comcast.net> <20050118144209.GF3054@empiric.icir.org> <41ED3019.9020600@comcast.net> <41ED4652.8040902@errno.com> <41ED568D.8000405@comcast.net> In-Reply-To: <41ED568D.8000405@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-mobile@freebsd.org Subject: Re: ath: a few questions [really kismet and radiotap] X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 17:55:55 -0000 Kris Maglione wrote: > Sam Leffler wrote: > >> Kris Maglione wrote: >> >>> Bruce M Simpson wrote: >>> >>>> On Tue, Jan 18, 2005 at 09:40:21AM -0500, Kris Maglione wrote: >>>> >>>> >>>>> Second, according to CVS, hw.ath.outdoors was made tunable a year >>>>> ago, but sysctl says it's readonly when I try to change it. It's >>>>> stuck at 1, which seems to be a possible explanation for why it's >>>>> indoor use sucks so badly compared to the windows driver, >>>>> especially through walls. >>>>> >>>> >>>> >>>> >>>> >>>> I'm running 5.3-STABLE as of last Wednesday and do not see this sysctl. >>>> >>>> Please give version information (uname -a) when posting this kind of >>>> query, >>>> as it's next to impossible to give useful advice otherwise. >>>> >>>> >>> Sorry about that. No uname -a, but it's the 5-STABLE from about a few >>> days ago. The kernel config file is actually the (minimally modified) >>> FreesBIE config file from a few months ago, but why is a long story. >> >> >> >> The setting is a read-only sysctl because once the module is loaded >> changing it has no effect. Set it before you kldload the module or in >> your hints file if you want it different than the default. >> >>> >>>> You should be able to 'tcpdump -i ath0 -y ieee802_11' to verify that >>>> you >>>> can capture 802.11 packets straight off the card. >>>> >>>> >>> I have done that, and I have used kismet. My problem with kismet >>> turned out to just be a wierd way that kismet reports things. >> >> >> >> kismet has been broken for a while. It used to work but something >> broke it and I've had no time to dig (it's painful to debug as it's a >> multi-process app written in C++ and makes heavy use of STL so >> inspecting data structures is a pain). Against my better judgement I looked at kismet again :) The problem is that kismet is discarding most all packets because it thinks they are corrupt. The reason it thinks this is because the frames are being delivered to kismet with the trailing FCS intact and kismet interprets FCS as information elements and discards the packets when it validates the packet's contents. While you likely don't care about the details, the fix is probably something that must go in kismet. FWIW ethereal deals with this issue by having a checkbox in the UI that you can use to enable acceptance of such packets. The radiotap format should have a flag to indicate FCS is included but it never happened. I will discuss this (again) with the radiotap-meister. Sam