From owner-freebsd-wireless@FreeBSD.ORG Sun Aug 10 08:42:15 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E07791F1; Sun, 10 Aug 2014 08:42:14 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95110289D; Sun, 10 Aug 2014 08:42:14 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 315536A6005; Sun, 10 Aug 2014 10:42:11 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id s7A8gBj8050615; Sun, 10 Aug 2014 10:42:11 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id s7A8gA76050233; Sun, 10 Aug 2014 10:42:10 +0200 (CEST) (envelope-from lars) Date: Sun, 10 Aug 2014 10:42:10 +0200 From: Lars Engels To: Adrian Chadd Subject: Re: [rfc] INJECT mode for net80211 Message-ID: <20140810084210.GA56043@e-new.0x20.net> References: <80DB3DCF-496E-4596-B9F3-4D86AC82DEC5@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p4 User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-wireless@freebsd.org" , Rui Paulo , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2014 08:42:15 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 10, 2014 at 01:28:22AM -0700, Adrian Chadd wrote: > ... interesting. Ok, so: >=20 > * if I just "remove" sam's patch there, monitor mode works to inject; > * I've patched kismet so it reads the radiotap data using the example > parser and added XCHANNEL support - so now it actually works nicely; > * aircrack-ng from ports doensn't send - it's triggering on this in net80= 211: >=20 > wh =3D mtod(m, struct ieee80211_frame *); > if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) !=3D > IEEE80211_FC0_VERSION_0) > senderr(EIO); /* XXX */ >=20 > .. I haven't looked into why yet. >=20 > * but, aircrack-ng built from source works, save for when it tries to > transmit too quickly after changing channels. >=20 > Ok, so I'm going to just revert that change for now and see about > figuring out some other way to enforce regulatory concerns on monitor > mode transmit. (Likely by allowing receive, but failing transmit on > non-regulatory channels.) >=20 > I'll speak to the Kismet author here tomorrow and see about getting > this replacement radiotap parser in so it works correctly again in > FreeBSD. >=20 > And as for aircrack-ng - guess I'll poke the port maintainer. >=20 Which is me. :) Thanks a lot for working on this, let me know if you need any assistance for the aircrack-ng port. BTW the aircrack-ng developers are very helpful and FreeBSD-friendly, so we should get patches upstream. --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQF8BAEBCgBmBQJT5zBiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1tPCoIAK8aQcJYSRSwIFlx5mahl7Lq lR3saWlYyhOTeCVOjwKAoQJiV1z7NbKYRlEPC9nCiC892T62pmcW47YLnTla70Rq EAJ3meeUnGxopSAIfq9VUF9K6Sc92XU99FDHD8k4FA6FokSPJ8MSgYrR6oUxCwyE iQW+GW5u5R0Qo0Ltl7Mx12xWr4OWd7yDSJ9u8DP25aK3xonvQc6aPN465+dtoxAJ GKm89ezD548vdOCqUHqaARr23Xos7R3+ZNWsNo9A3yl4fhbio7sP5MwAUCBQw7eW j9jEIAqnbJiaCvsghv3hDT2GQlFbjM4Xo7V9IZvPk3NFjE99PnZDcmge/DRbKmY= =E3Af -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--