Date: Thu, 31 Mar 2011 08:20:33 -0400 From: Adam Stylinski <kungfujesus06@gmail.com> To: Bernhard Schmidt <bschmidt@freebsd.org> Cc: freebsd-net@freebsd.org Subject: Re: net80211 and interface requests Message-ID: <20110331122033.GA66992@freebsdbox.adamsnet> In-Reply-To: <201103310902.46236.bschmidt@freebsd.org> References: <AANLkTimQJBJwNaa3VW1HVONAx2zrBu2Un2=S7PVJ5xLS@mail.gmail.com> <201103310902.46236.bschmidt@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 31, 2011 at 09:02:45AM +0200, Bernhard Schmidt wrote: > On Wednesday, March 30, 2011 23:17:53 Adam Stylinski wrote: > > Hello, > >=20 > > This list has helped me before so I'll email again with the hopes that > > somebody has an answer. All is working well with my project, however f= or > > the life of me I cannot get the interface to inject the raw frames fast= er > > than 11mbps. I'm following the example given in > > /usr/src/tools/tools/net80211/wlaninject.c, and manually specifying > > parameters such as ucastrate, mcastrate, and mgmtrate within ifconfig. = I'm > > putting the card into pureg mode, and yet I still can't inject any fast= er. > > I've even gone so far as to specify an ieee802211_txparam struct giving > > values of 255 both mcast and ucast rates within the struct (and of cour= se > > anding them by 0xff). I then used the ioctl call to set the flags with= in > > the interface request. Any help would be greatly appreciated. >=20 > You've set the ibp_rate0 parameter right? This one is in half-mbps, so > a value of 108 should give you 54m. The only thing I can think of right > now is that the device (or channel) is actually configured for 11b not > 11g mode. Can we rule that out? Which device are you using? >=20 > > I am doing nanosleeps in between transmissions as if I don't the bpf cl= one > > can't inject due to the buffer being too full. There's probably a bett= er > > way of doing this, but I doubt the nanosleeps are the issue (afterall, = I get > > almost exactly 11mbps). I should probably note I'm not doing any ACKs,= this > > is pure transmits. > >=20 > > If anybody cares enough to look at my unpolished code to get a better i= dea, > > look here: > >=20 > > http://projhinternet.svn.sourceforge.net/ > >=20 > > The idea is to allow unidirectional traffic so that with an FCC amateur > > license (yes I know I'm not currently broadcasting the call sign as of = yet) > > you can broadcast unencrypted transmissions for miles (with a linear > > amplifier spec'd to 2.4ghz). With the license FCC part15 no longer app= lies > > and you can operate just like in any other amateur band. > > _______________________________________________ > > freebsd-net@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-net > > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >=20 >=20 > --=20 > Bernhard I'm using an atheros AR2413 chipset, running in pure g mode, with also the = card put into "mode 11g" and ucast, mcast, and mgmt rates set to 54. I thi= nk the parameter for ibp_rate0 is just for setting it in the header (but I = could be wrong). Regardless I am doing this, let me give you the exact sou= rce files I'm doing this in. Line 38 in this file: http://projhinternet.svn.sourceforge.net/viewvc/projhinternet/src/callbacks= =2Ec?revision=3D69&view=3Dmarkup=20 And the setup_if function in this: http://projhinternet.svn.sourceforge.net/viewvc/projhinternet/src/libinject= =2Ec?revision=3D69&view=3Dmarkup --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iQIcBAEBAgAGBQJNlHGRAAoJED6sRHE6Tvmn3/gQAKKD4JJs3wK5gbqEKO4DHZbg b1OMKfw3vx5w1nggBmfA0ENEF1Wpw7hfomCTNln9i8pzOML0DFJGAH3QCBVr3zAB 5ABMWyi9TkSXhGrnls1MWI8rw+5O/jP/46MLoIQiq/YHT8GfofilrvWXwj01O5HE IFBC6wR22humlmnmdMzI29QoLewTHkf8V6lNEU0pWTbAnaVnhfCOJxe65dN077gc eQ0recYdOlv5oK1w1DBGJb/q3bTqMHBALn+fnXjCdPH5m4f3muPJJi5yuoCJg7U4 i5jjtME6XVMPZxLl/tSuo6er5AlRkMioSnLKZQTZch8ru98h+sy/IPGw8JkIMlQK eYvSsd5ncheT+cEChn+cndibz1sFk3GZepIJz7g9CzX3eiwZTBKEM5auyr2KmMED VDfZkZEj28y5QTUlPHghTSI5FG+aG6u4qQZ2m+1DqMKFEe0TMLnu3Xv+cEcOeO6Q 8uzV7Ke/QoRKmRyWiYEVzdcGzWcScoNzNJrtidOGbEu9LLm0wlY1jaUy7t3CWAiv k3SetMiuLkWNuGt6WbVigC8hQTmNPXOp5ijhfJ5wVhW/zYiQddHSUCArv7FsITCd CSXpw+fJGJNcY/etfOSUvN1ETldU7E8yGy0Pgi7+Fp6hnRQZejUtUG49qUrblSed 32ArZ1FPnVpUN/0cVEzY =l/RJ -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110331122033.GA66992>