Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2013 15:11:29 -0500
From:      Joshua Isom <jrisom@gmail.com>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        freebsd-wireless@freebsd.org
Subject:   Re: [wip] ar9300 hostap support
Message-ID:  <5154A3F1.1090200@gmail.com>
In-Reply-To: <CAJ-VmokOsEKiZK1ZnZi5L0oS0BfkNtJ8P23i5fT4Ard1caj7fg@mail.gmail.com>
References:  <CAJ-Vmo=4QRuYeG8LmEfntTB2W5OyfsnVDCz5cJ__zWYbXkme3w@mail.gmail.com> <CAJ-VmomtQFjiGZRR0ME3HvGaJjHfXq%2BRT6a699UUDqGnJM1zjw@mail.gmail.com> <CAJ-Vmon7-g6DOdCsF05i4twfL_UXjBYUneGYts6dZbiFgH3zww@mail.gmail.com> <51522277.6040107@gmail.com> <CAJ-VmonuiJ%2B3mwOtwZtSbm2T6_kisNV1wmzQPcXDo638_Kq0aQ@mail.gmail.com> <51523B6F.5010506@gmail.com> <CAJ-VmomDXdo-Ep02a_BBByw5Jkx6hcodhkXt=LeYaQnLunu-qQ@mail.gmail.com> <CAJ-Vmom6PwPW8v76Svz6xcR9=1Ggj_d88Mpo4H_D%2BRKP1eCLAw@mail.gmail.com> <51538239.9030903@gmail.com> <CAJ-VmomEy6fMNmNYyUUDcaJY3zHJUt5F5KkSv%2BSCp1wqPp1jLQ@mail.gmail.com> <5153852A.1040508@gmail.com> <CAJ-VmokOsEKiZK1ZnZi5L0oS0BfkNtJ8P23i5fT4Ard1caj7fg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 3/27/2013 6:53 PM, Adrian Chadd wrote:
> .. this has me worried. This would've caused a panic before. The next
> time it happens, but before you disconnect, please do this:
>
> sysctl dev.ath.0.txagg=1
>
> I'd like to see if any other TX queue has a frame hanging around in it
> that hasn't been completed.

I had syslogd pipe the output to a perl script to set the sysctl, not 
ideal but effective I hope.  I've got two today.

> Mar 28 07:03:01 jri kernel: ath0: ath_edma_tx_processq: Q1: empty?
> Mar 28 07:03:02 jri kernel: no tx bufs (empty list): 0
> Mar 28 07:03:02 jri kernel: no tx bufs (was busy): 0
> Mar 28 07:03:02 jri kernel: aggr single packet: 481
> Mar 28 07:03:02 jri kernel: aggr single packet w/ BAW closed: 0
> Mar 28 07:03:02 jri kernel: aggr non-baw packet: 20
> Mar 28 07:03:02 jri kernel: aggr aggregate packet: 1278
> Mar 28 07:03:02 jri kernel: aggr single packet low hwq: 13087
> Mar 28 07:03:02 jri kernel: aggr single packet RTS aggr limited: 0
> Mar 28 07:03:02 jri kernel: aggr sched, no work: 849
> Mar 28 07:03:02 jri kernel: 0:          0  1:          0  2:        318  3:        221
> Mar 28 07:03:02 jri kernel: 4:        331  5:         50  6:        221  7:         57
> Mar 28 07:03:02 jri kernel: 8:         35  9:         22 10:         13 11:          1
> Mar 28 07:03:02 jri kernel: 12:          5 13:          0 14:          1 15:          0
> Mar 28 07:03:02 jri kernel: 16:          2 17:          0 18:          0 19:          1
> Mar 28 07:03:02 jri kernel: 20:          0 21:          0 22:          0 23:          0
> Mar 28 07:03:02 jri kernel: 24:          0 25:          0 26:          0 27:          0
> Mar 28 07:03:02 jri kernel: 28:          0 29:          0 30:          0 31:          0
> Mar 28 07:03:02 jri kernel: 32:          0 33:          0 34:          0 35:          0
> Mar 28 07:03:02 jri kernel: 36:          0 37:          0 38:          0 39:          0
> Mar 28 07:03:02 jri kernel: 40:          0 41:          0 42:          0 43:          0
> Mar 28 07:03:02 jri kernel: 44:          0 45:          0 46:          0 47:          0
> Mar 28 07:03:02 jri kernel: 48:          0 49:          0 50:          0 51:          0
> Mar 28 07:03:02 jri kernel: 52:          0 53:          0 54:          0 55:          0
> Mar 28 07:03:02 jri kernel: 56:          0 57:          0 58:          0 59:          0
> Mar 28 07:03:02 jri kernel: 60:          0 61:          0 62:          0 63:          0
> Mar 28 07:03:02 jri kernel:
> Mar 28 07:03:02 jri kernel: HW TXQ 0: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:03:02 jri kernel: HW TXQ 1: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:03:02 jri kernel: HW TXQ 2: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:03:02 jri kernel: HW TXQ 3: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:03:02 jri kernel: HW TXQ 8: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:03:02 jri kernel: Total TX buffers: 512; Total TX buffers busy: 0 (512)
> Mar 28 07:03:02 jri kernel: Total mgmt TX buffers: 32; Total mgmt TX buffers busy: 0
> Mar 28 07:03:02 jri kernel: 0: fifolen: 16/16; head=0; tail=0
> Mar 28 07:03:02 jri kernel: 1: fifolen: 128/128; head=45; tail=45
> Mar 28 07:03:02 jri kernel: Total RX buffers in free list: 368 buffers
> Mar 28 07:03:05 jri kernel: ath0: ath_edma_recv_proc_queue: handled npkts 0

> Mar 28 07:38:13 jri kernel: ath0: ath_edma_tx_processq: Q1: empty?
> Mar 28 07:38:14 jri kernel: no tx bufs (empty list): 0
> Mar 28 07:38:14 jri kernel: no tx bufs (was busy): 0
> Mar 28 07:38:14 jri kernel: aggr single packet: 481
> Mar 28 07:38:14 jri kernel: aggr single packet w/ BAW closed: 0
> Mar 28 07:38:14 jri kernel: aggr non-baw packet: 20
> Mar 28 07:38:14 jri kernel: aggr aggregate packet: 1278
> Mar 28 07:38:14 jri kernel: aggr single packet low hwq: 13087
> Mar 28 07:38:14 jri kernel: aggr single packet RTS aggr limited: 0
> Mar 28 07:38:14 jri kernel: aggr sched, no work: 849
> Mar 28 07:38:14 jri kernel: 0:          0  1:          0  2:        318  3:        221
> Mar 28 07:38:14 jri kernel: 4:        331  5:         50  6:        221  7:         57
> Mar 28 07:38:14 jri kernel: 8:         35  9:         22 10:         13 11:          1
> Mar 28 07:38:14 jri kernel: 12:          5 13:          0 14:          1 15:          0
> Mar 28 07:38:14 jri kernel: 16:          2 17:          0 18:          0 19:          1
> Mar 28 07:38:14 jri kernel: 20:          0 21:          0 22:          0 23:          0
> Mar 28 07:38:14 jri kernel: 24:          0 25:          0 26:          0 27:          0
> Mar 28 07:38:14 jri kernel: 28:          0 29:          0 30:          0 31:          0
> Mar 28 07:38:14 jri kernel: 32:          0 33:          0 34:          0 35:          0
> Mar 28 07:38:14 jri kernel: 36:          0 37:          0 38:          0 39:          0
> Mar 28 07:38:14 jri kernel: 40:          0 41:          0 42:          0 43:          0
> Mar 28 07:38:14 jri kernel: 44:          0 45:          0 46:          0 47:          0
> Mar 28 07:38:14 jri kernel: 48:          0 49:          0 50:          0 51:          0
> Mar 28 07:38:14 jri kernel: 52:          0 53:          0 54:          0 55:          0
> Mar 28 07:38:14 jri kernel: 56:          0 57:          0 58:          0 59:          0
> Mar 28 07:38:14 jri kernel: 60:          0 61:          0 62:          0 63:          0
> Mar 28 07:38:14 jri kernel:
> Mar 28 07:38:14 jri kernel: HW TXQ 0: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:38:14 jri kernel: HW TXQ 1: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:38:14 jri kernel: HW TXQ 2: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:38:14 jri kernel: HW TXQ 3: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:38:14 jri kernel: HW TXQ 8: axq_depth=0, axq_aggr_depth=0, axq_fifo_depth=0, holdingbf=0
> Mar 28 07:38:14 jri kernel: Total TX buffers: 512; Total TX buffers busy: 0 (512)
> Mar 28 07:38:14 jri kernel: Total mgmt TX buffers: 32; Total mgmt TX buffers busy: 0
> Mar 28 07:38:14 jri kernel: 0: fifolen: 16/16; head=0; tail=0
> Mar 28 07:38:14 jri kernel: 1: fifolen: 128/128; head=27; tail=27
> Mar 28 07:38:14 jri kernel: Total RX buffers in free list: 368 buffers
> Mar 28 07:38:32 jri kernel: ath0: ath_edma_recv_proc_queue: handled npkts 0


>
> Also, whats the output if 'ifconfig wlan0 list sta'? I wonder what the
> RSSI is and I do wonder why you see frequent disconnects.
>

My RSSI tends to be between 7.0 and 8.5, I don't think I've seen 9.0 
yet.  I'm still working on improving my signal but at least for right 
now it's stable enough to be usable.  Try making a little Faraday cage 
around your router, or put openwrt on it and drop your signal down for 
your connection.  Don't forget to add a dozen random wifi APs and devices.

> [jri:/var/log] jisom% ifconfig wlan0 list sta
> ADDR               AID CHAN RATE RSSI IDLE  TXSEQ  RXSEQ CAPS FLAG
> c0:c1:c0:35:19:88    1    1  26M  8.5    0   1865  29712 EP   AQEHTRS RSN HTCAP WPS WME


> Thanks,
>
>
> Adrian
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5154A3F1.1090200>