Re: 11n support for athn(4)

2017-03-07 Thread Stuart Henderson
On 2017/03/07 10:40, Stefan Sperling wrote: > On Tue, Mar 07, 2017 at 07:12:43AM +0200, Timo Myyrä wrote: > > Can OpenBSD AP work on both frequencies at the same time or is that > > something > > not yet supported? > > No, that won't work. The hardware can do 'multi-BSS' which we don't > yet

Re: 11n support for athn(4)

2017-03-07 Thread Stefan Sperling
On Tue, Mar 07, 2017 at 07:12:43AM +0200, Timo Myyrä wrote: > I didn't think it would improve things yet but I had the antenna so I'd figure > I'd stick it in the AP while I'm tweaking it anyway. > > Speaking of 5Ghz, my AP uses athn chipset AR9280 which seems to support 2.4Ghz > and 5Ghz. Can I

Re: 11n support for athn(4)

2017-03-06 Thread Timo Myyrä
Stefan Sperling writes: > On Mon, Mar 06, 2017 at 07:36:21AM +0200, Timo Myyrä wrote: > >> Did some tcpbench testing and got following results: >> Each test run with: tcpbench -s || tcpbench -t 15 commands. >> Host AP: apu 2b4 with athn, client = thinkpad t430s with iwn

Re: 11n support for athn(4)

2017-03-06 Thread Stefan Sperling
On Mon, Mar 06, 2017 at 07:36:21AM +0200, Timo Myyrä wrote: > Did some tcpbench testing and got following results: > Each test run with: tcpbench -s || tcpbench -t 15 commands. > Host AP: apu 2b4 with athn, client = thinkpad t430s with iwn (OpenBSD) > > channel 9 running old snapshot etc: > 11n

Re: 11n support for athn(4)

2017-03-05 Thread Timo Myyrä
Stefan Sperling writes: > On Tue, Jan 31, 2017 at 07:10:04AM +0200, Timo Myyrä wrote: >> 11g: Client->AP: ~15Mbps, AP->Client: ~5Mbps >> 11n: Client->AP: ~3Mbps, AP->Client: ~5Mbps > > I just committed a change which makes RTS optional in 11n mode. > The AP starts out with RTS

Re: 11n support for athn(4)

2017-03-04 Thread Stefan Sperling
On Tue, Jan 31, 2017 at 07:10:04AM +0200, Timo Myyrä wrote: > 11g: Client->AP: ~15Mbps, AP->Client: ~5Mbps > 11n: Client->AP: ~3Mbps, AP->Client: ~5Mbps I just committed a change which makes RTS optional in 11n mode. The AP starts out with RTS enabled. Every 30 seconds the AP checks for the

Re: mira sfer overflow panic (was: Re: 11n support for athn(4))

2017-02-11 Thread Theo Buehler
On Sat, Feb 11, 2017 at 10:31:39AM +, Peter Kay wrote: > > > On Thu, Jan 26, 2017 at 10:38:44AM +0100, Stefan Sperling wrote: > > On Thu, Jan 26, 2017 at 06:36:06AM +, Peter Kay wrote: > > > sfer overflow > > > > Interesting. This is the first time I've ever seen this panic trigger. > >

Re: mira sfer overflow panic (was: Re: 11n support for athn(4))

2017-02-11 Thread Peter Kay
On Thu, Jan 26, 2017 at 10:38:44AM +0100, Stefan Sperling wrote: > On Thu, Jan 26, 2017 at 06:36:06AM +, Peter Kay wrote: > > sfer overflow > > Interesting. This is the first time I've ever seen this panic trigger. > > Can you apply this patch and try to trigger it again? I've been running

Re: 11n support for athn(4)

2017-02-03 Thread Peter Faiman
> On Jan 18, 2017, at 2:02 AM, Stefan Sperling wrote: > > On Wed, Jan 18, 2017 at 09:19:28AM +0100, Uwe Werler wrote: >> On 16. Jan 17:46:48, Uwe Werler wrote: >>> >>> Unfortunately the throughput is very low, only ~7 MBit. With mode 11g I get >>> ~16 MBit. >>> >>> >>>

Re: 11n support for athn(4)

2017-01-30 Thread Timo Myyrä
Stefan Sperling writes: > On Sun, Jan 29, 2017 at 07:49:56AM +0200, Timo Myyrä wrote: >> Hmm, I've been running the 11n for a while and it seems to be a lot slower >> than >> 11g for me. Just did quick benchmark using tcpbench between OpenBSD hostAP >> (athn) and >> laptop

Re: 11n support for athn(4)

2017-01-29 Thread Stefan Sperling
On Sun, Jan 29, 2017 at 07:49:56AM +0200, Timo Myyrä wrote: > Hmm, I've been running the 11n for a while and it seems to be a lot slower > than > 11g for me. Just did quick benchmark using tcpbench between OpenBSD hostAP > (athn) and > laptop (iwn). It looks when my athn is in 11n mode I get

Re: 11n support for athn(4)

2017-01-28 Thread Timo Myyrä
Stefan Sperling <s...@stsp.name> writes: > This diff adds 11n support to the athn(4) driver. > Requires -current net80211 code from today. > > Tested in hostap mode and client mode with: > athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16 &g

Re: mira sfer overflow panic (was: Re: 11n support for athn(4))

2017-01-28 Thread Stefan Sperling
On Thu, Jan 26, 2017 at 10:38:44AM +0100, Stefan Sperling wrote: > On Thu, Jan 26, 2017 at 06:36:06AM +, Peter Kay wrote: > > sfer overflow > > Interesting. This is the first time I've ever seen this panic trigger. > > Can you apply this patch and try to trigger it again? Peter, you can

mira sfer overflow panic (was: Re: 11n support for athn(4))

2017-01-26 Thread Stefan Sperling
On Thu, Jan 26, 2017 at 06:36:06AM +, Peter Kay wrote: > sfer overflow Interesting. This is the first time I've ever seen this panic trigger. Can you apply this patch and try to trigger it again? Index: ieee80211_mira.c === RCS

Re: 11n support for athn(4)

2017-01-25 Thread Peter Kay
On 17 January 2017 at 12:25, Stefan Sperling wrote: > On Tue, Jan 17, 2017 at 11:56:09AM +0100, Stefan Sperling wrote: >> Without more details, all I can do is guess. >> I made one guess already (antennas) and sadly I guessed wrong. > > Another thing where your setup differs from

Re: 11n support for athn(4)

2017-01-18 Thread Stefan Sperling
On Wed, Jan 18, 2017 at 09:19:28AM +0100, Uwe Werler wrote: > On 16. Jan 17:46:48, Uwe Werler wrote: > > > > Unfortunately the throughput is very low, only ~7 MBit. With mode 11g I get > > ~16 MBit. > > > > > > zarathustra:~# tcpbench apu01 > > elapsed_ms bytes mbps bwidth

Re: 11n support for athn(4)

2017-01-18 Thread Uwe Werler
On 16. Jan 17:46:48, Uwe Werler wrote: > > Unfortunately the throughput is very low, only ~7 MBit. With mode 11g I get > ~16 MBit. > > > zarathustra:~# tcpbench apu01 > elapsed_ms bytes mbps bwidth > 1004 7482725.962 100.00% > Conn: 1 Mbps:

Re: 11n support for athn(4)

2017-01-17 Thread Peter Kay
  Original Message   From: s...@stsp.name Sent: 17 January 2017 12:25 p.m. To: syllops...@syllopsium.co.uk; tech@openbsd.org Subject: Re: 11n support for athn(4) On Tue, Jan 17, 2017 at 11:56:09AM +0100, Stefan Sperling wrote: >> Without more details, all I can do is guess. >> I ma

Re: 11n support for athn(4)

2017-01-17 Thread Stefan Sperling
On Tue, Jan 17, 2017 at 11:56:09AM +0100, Stefan Sperling wrote: > Without more details, all I can do is guess. > I made one guess already (antennas) and sadly I guessed wrong. Another thing where your setup differs from mine is that you are using a device with 3 antennas, whereas my devices only

Re: 11n support for athn(4)

2017-01-17 Thread Stefan Sperling
On Tue, Jan 17, 2017 at 10:19:39AM +, Peter Kay wrote: > From: s...@stsp.name > Sent: 17 January 2017 10:00 a.m. > To: syllops...@syllopsium.co.uk > Cc: tech@openbsd.org > Subject: Re: 11n support for athn(4) > > On Mon, Jan 16, 2017 at 11:58:51PM +, Peter Kay wrote:

Re: 11n support for athn(4)

2017-01-17 Thread Peter Kay
  Original Message   From: s...@stsp.name Sent: 17 January 2017 10:00 a.m. To: syllops...@syllopsium.co.uk Cc: tech@openbsd.org Subject: Re: 11n support for athn(4) On Mon, Jan 16, 2017 at 11:58:51PM +, Peter Kay wrote: >> >> Three, yes, but note that unless the antenn

Re: 11n support for athn(4)

2017-01-17 Thread Stefan Sperling
On Mon, Jan 16, 2017 at 11:58:51PM +, Peter Kay wrote: > On 16 January 2017 at 23:30, Stefan Sperling wrote: > > Do you have 2 antennas properly connected to the athn card? > > Three, yes, but note that unless the antennas have been unreasonably > disturbed during the

Re: 11n support for athn(4)

2017-01-16 Thread Peter Kay
On 16 January 2017 at 23:30, Stefan Sperling wrote: > On Mon, Jan 16, 2017 at 07:18:04PM +, Peter Kay wrote: >> I'm still having issues with this. >> >> When the access p64 bytes from 192.168.1.251: icmp_seq=678 ttl=255 >> time=4.502 ms oint wedges, it seems to affect my

Re: 11n support for athn(4)

2017-01-16 Thread Stefan Sperling
On Mon, Jan 16, 2017 at 07:18:04PM +, Peter Kay wrote: > I'm still having issues with this. > > When the access point wedges, it seems to affect my Android phone more > than the iwn laptop. ifconfig athn0 down up does resolve the problem > in the short term. Do you have 2 antennas properly

Re: 11n support for athn(4)

2017-01-16 Thread Peter Kay
I'm still having issues with this. When the access point wedges, it seems to affect my Android phone more than the iwn laptop. ifconfig athn0 down up does resolve the problem in the short term. I see the changes have already been committed, so it's no longer necessary to patch recent snapshots

Re: 11n support for athn(4)

2017-01-16 Thread Uwe Werler
fan Sperling: > This diff adds 11n support to the athn(4) driver. > Requires -current net80211 code from today. > > Tested in hostap mode and client mode with: > athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16 > athn0: AR9280 rev 2 (2T2R), ROM

Re: 11n support for athn(4)

2017-01-15 Thread Stefan Sperling
On Sun, Jan 15, 2017 at 10:31:29PM +, Olivier Cherrier wrote: > On Mon, Jan 09, 2017 at 01:54:55PM +0100, s...@stsp.name wrote: > > Date: Mon, 9 Jan 2017 13:54:55 +0100 > > From: Stefan Sperling <s...@stsp.name> > > To: tech@openbsd.org > > Subject: 11n support

Re: 11n support for athn(4)

2017-01-15 Thread Olivier Cherrier
On Mon, Jan 09, 2017 at 01:54:55PM +0100, s...@stsp.name wrote: > Date: Mon, 9 Jan 2017 13:54:55 +0100 > From: Stefan Sperling <s...@stsp.name> > To: tech@openbsd.org > Subject: 11n support for athn(4) Hi Stefan, Thank you for this extended work ! I just tested today t

Re: 11n support for athn(4)

2017-01-15 Thread Tom Murphy
Hi Stefan, Thanks very much for the 11n support in athn(4)! Here's mine: athn0 at pci5 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16 athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 04:f0:21:24:c8:4f I did some netperf tests between OpenBSD athn(4) in hostap

Re: 11n support for athn(4)

2017-01-14 Thread Stefan Sperling
On Sat, Jan 14, 2017 at 12:42:09PM +, Peter Kay wrote: > On 14 January 2017 at 12:02, Stefan Sperling wrote: > > On Sat, Jan 14, 2017 at 11:31:00AM +, Peter Kay wrote: > >> On 14 January 2017 at 11:23, Stefan Sperling wrote: > > > If one of your clients

Re: 11n support for athn(4)

2017-01-14 Thread Stefan Sperling
On Sat, Jan 14, 2017 at 11:31:00AM +, Peter Kay wrote: > On 14 January 2017 at 11:23, Stefan Sperling wrote: > > On Sat, Jan 14, 2017 at 11:03:24AM +, Peter Kay wrote: > >> On 12 January 2017 at 15:06, Stefan Sperling wrote: > > > So your first test might

Re: 11n support for athn(4)

2017-01-14 Thread Peter Kay
On 14 January 2017 at 11:23, Stefan Sperling wrote: > On Sat, Jan 14, 2017 at 11:03:24AM +, Peter Kay wrote: >> On 12 January 2017 at 15:06, Stefan Sperling wrote: > So your first test might not have had 11n enabled since the first two > versions of my patch

Re: 11n support for athn(4)

2017-01-14 Thread Stefan Sperling
gt; >> > This diff adds 11n support to the athn(4) driver. > >> > Requires -current net80211 code from today. > >> > I'm now getting some very odd issues that did not previously exist > with my hostap before upgrading to the snapshot and applying the > patch. It

Re: 11n support for athn(4)

2017-01-14 Thread Peter Kay
On 12 January 2017 at 15:06, Stefan Sperling <s...@stsp.name> wrote: > On Tue, Jan 10, 2017 at 12:27:47AM +0100, Stefan Sperling wrote: >> On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: >> > This diff adds 11n support to the athn(4) driver. >> >

Re: 11n support for athn(4)

2017-01-12 Thread Stefan Sperling
On Tue, Jan 10, 2017 at 12:27:47AM +0100, Stefan Sperling wrote: > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > > This diff adds 11n support to the athn(4) driver. > > Requires -current net80211 code from today. > > A better diff which fixes several bu

Re: 11n support for athn(4)

2017-01-11 Thread Stefan Sperling
On Thu, Jan 12, 2017 at 06:19:06AM +, Peter Kay wrote: > OK, got it working. Pulled the kernel sources direct from cvs without > pre-loading and it compiled. Thank you for testing! > Haven't had time for a proper test, but there are a couple of points. > > Hardware MAC AR5416 rev 2, RF

Re: 11n support for athn(4)

2017-01-11 Thread Peter Kay
OK, got it working. Pulled the kernel sources direct from cvs without pre-loading and it compiled. Haven't had time for a proper test, but there are a couple of points. Hardware MAC AR5416 rev 2, RF AR2133 (3T2R), ROM rev 5 (PCI adapter) Blackberry Priv - connects between 100 and 130M at 2.4GHz

Re: 11n support for athn(4)

2017-01-11 Thread Peter Kay
On 11 January 2017 at 22:05, Stefan Sperling wrote: > > You haven't updated all of src/sys. I'm obviously being really dumb, but what is wrong with cd /usr tar zxf sys.tar.gz (from 6.0) cvs -qd anon...@anoncvs.au.openbsd.org:/cvs update -dP sys cd sys patch -p0 <

Re: 11n support for athn(4)

2017-01-11 Thread Stefan Sperling
On Wed, Jan 11, 2017 at 10:00:50PM +, Peter Kay wrote: > On 9 January 2017 at 23:27, Stefan Sperling <s...@stsp.name> wrote: > > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > >> This diff adds 11n support to the athn(4) driver. > >> Req

Re: 11n support for athn(4)

2017-01-11 Thread Peter Kay
On 9 January 2017 at 23:27, Stefan Sperling <s...@stsp.name> wrote: > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: >> This diff adds 11n support to the athn(4) driver. >> Requires -current net80211 code from today. > > A better diff which fixes

Re: 11n support for athn(4)

2017-01-11 Thread Vadim Vygonets
Quoth Vadim Vygonets on Tue, Jan 10, 2017: > Quoth Stefan Sperling on Tue, Jan 10, 2017: > > On Tue, Jan 10, 2017 at 07:14:40PM +0100, Vadim Vygonets wrote: > > > And it seems to work, although my testing was by no means > > > exhaustive. > > > > Thank you for testing! > > > > Are you testing

Re: 11n support for athn(4)

2017-01-10 Thread Stefan Sperling
On Tue, Jan 10, 2017 at 08:34:32PM -0500, Brandon Mercer wrote: > I've thrown this on my apu2 and done some tests with my ipad, android > phones and some openbsd laptops. Streamed 1080p from youtube works on > one device but when I try with 2x it starts to buffer a bit. > > Tested on 2.4Ghz: >

Re: 11n support for athn(4)

2017-01-10 Thread Brandon Mercer
On Tue, Jan 10, 2017 at 11:08:40PM +0100, Vincent Gross wrote: > On Tue, 10 Jan 2017 00:27:47 +0100 > Stefan Sperling <s...@stsp.name> wrote: > > > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > > > This diff adds 11n support to the athn(4) d

Re: 11n support for athn(4)

2017-01-10 Thread Vadim Vygonets
Quoth Stefan Sperling on Tue, Jan 10, 2017: > On Tue, Jan 10, 2017 at 07:14:40PM +0100, Vadim Vygonets wrote: > > And it seems to work, although my testing was by no means > > exhaustive. > > Thank you for testing! > > Are you testing athn in hostap or in client mode? In client mode. I can do

Re: 11n support for athn(4)

2017-01-10 Thread Vadim Vygonets
Quoth Vadim Vygonets on Tue, Jan 10, 2017: > Quoth Stefan Sperling on Tue, Jan 10, 2017: > > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > > > This diff adds 11n support to the athn(4) driver. > > > Requires -current net80211 code from today. > &g

Re: 11n support for athn(4)

2017-01-10 Thread Vadim Vygonets
Quoth Stefan Sperling on Tue, Jan 10, 2017: > On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > > This diff adds 11n support to the athn(4) driver. > > Requires -current net80211 code from today. > > A better diff which fixes several bugs. After ap

Re: 11n support for athn(4)

2017-01-09 Thread Stefan Sperling
On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > This diff adds 11n support to the athn(4) driver. > Requires -current net80211 code from today. A better diff which fixes several bugs. Most notably this should fix a crash in hostap mode triggered by clients joining and l

Re: 11n support for athn(4)

2017-01-09 Thread Stefan Sperling
On Mon, Jan 09, 2017 at 01:54:55PM +0100, Stefan Sperling wrote: > For Linux clients a fix for WME params is needed which I also posted to tech@. That fix is now committed.

11n support for athn(4)

2017-01-09 Thread Stefan Sperling
This diff adds 11n support to the athn(4) driver. Requires -current net80211 code from today. Tested in hostap mode and client mode with: athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 2 int 16 athn0: AR9280 rev 2 (2T2R), ROM rev 22, adddress xx:xx:xx:xx:xx:xx And in c