svn commit: r218160 - in head/sys/dev/ath: . ath_rate/amrr ath_rate/onoe ath_rate/sample

2011-02-01 Thread Adrian Chadd
Author: adrian Date: Tue Feb 1 08:10:18 2011 New Revision: 218160 URL: http://svn.freebsd.org/changeset/base/218160 Log: Add a new method to the rate control modules which extract out the three other rates and try counts. The 11n rate scenario path wants to take a list of rate and tries,

svn commit: r218170 - head/sys/dev/ath/ath_hal/ar5416

2011-02-01 Thread Adrian Chadd
Author: adrian Date: Tue Feb 1 15:26:30 2011 New Revision: 218170 URL: http://svn.freebsd.org/changeset/base/218170 Log: Just to be sure, make sure the MCS rates are allowed for TX. Approved by: rpaulo@ Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c Modified: head/sys/dev/ath

svn commit: r218183 - in head/sys/dev/ath/ath_hal: ar9001 ar9002

2011-02-01 Thread Adrian Chadd
Author: adrian Date: Wed Feb 2 03:55:34 2011 New Revision: 218183 URL: http://svn.freebsd.org/changeset/base/218183 Log: Call the correct ANI Attach routine. Modified: head/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c head/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c head/sys/dev/ath/ath_hal

svn commit: r218238 - head/sys/dev/ath

2011-02-03 Thread Adrian Chadd
Author: adrian Date: Thu Feb 3 20:26:26 2011 New Revision: 218238 URL: http://svn.freebsd.org/changeset/base/218238 Log: Disable the code I previously added from Rui's 802.11n branch. A-MPDU RX interferes with packet retransmission/reordering. In local testing, I was seeing A-MPDU being

svn commit: r218240 - head/sys/dev/ath

2011-02-03 Thread Adrian Chadd
Author: adrian Date: Thu Feb 3 20:30:17 2011 New Revision: 218240 URL: http://svn.freebsd.org/changeset/base/218240 Log: Modify the TX path to set and use the 11n rate scenario bits. This isn't strictly required to TX (at least non-agg and non-HT40, non-short-GI) frames; but as it needs

svn commit: r218243 - head/sys/dev/ath

2011-02-03 Thread Adrian Chadd
Author: adrian Date: Fri Feb 4 00:25:18 2011 New Revision: 218243 URL: http://svn.freebsd.org/changeset/base/218243 Log: Oops, fix newbie mistake that breaks the normal build. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ===

svn commit: r218354 - head/sys/dev/ath/ath_hal/ar5416

2011-02-05 Thread Adrian Chadd
Author: adrian Date: Sat Feb 5 22:54:37 2011 New Revision: 218354 URL: http://svn.freebsd.org/changeset/base/218354 Log: Add a temporary workaround so the 11n rate scenario setup code sets a useful TX chainmask. since the upper layers don't (yet) know about the active TX/RX chainmasks,

svn commit: r218378 - head/sys/dev/ath

2011-02-06 Thread Adrian Chadd
Author: adrian Date: Sun Feb 6 17:40:27 2011 New Revision: 218378 URL: http://svn.freebsd.org/changeset/base/218378 Log: Only tag packets with the A-MPDU bit if they were part of an A-MPDU RX. Whilst I'm here, add a counter to count said packets. Modified: head/sys/dev/ath/if_ath.c he

svn commit: r218379 - head/sys/dev/ath

2011-02-06 Thread Adrian Chadd
Author: adrian Date: Sun Feb 6 20:11:24 2011 New Revision: 218379 URL: http://svn.freebsd.org/changeset/base/218379 Log: Just tag all RX packets as needing reorder processing for now. This fixes two problems - * All packets need to be processed here, not just aggregate ones - as any

svn commit: r218402 - head/sys/dev/ath

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 15:09:13 2011 New Revision: 218402 URL: http://svn.freebsd.org/changeset/base/218402 Log: Add in a per phy error sysctl. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ===

svn commit: r218409 - head/sys/dev/ath/ath_hal/ar5212

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 17:04:31 2011 New Revision: 218409 URL: http://svn.freebsd.org/changeset/base/218409 Log: Fix typo in SIFS setup Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c ===

svn commit: r218415 - head/sys/dev/ath/ath_hal

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 21:30:13 2011 New Revision: 218415 URL: http://svn.freebsd.org/changeset/base/218415 Log: Add a new RMW macro for analog register writes which implements the needed wait period between operations. Modified: head/sys/dev/ath/ath_hal/ah_internal.h Modified: he

svn commit: r218416 - head/sys/dev/ath/ath_hal/ar9002

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 21:30:56 2011 New Revision: 218416 URL: http://svn.freebsd.org/changeset/base/218416 Log: Use analog delay macro for modifying an analog register. Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280.c Modified: head/sys/dev/ath/ath_hal/ar9002/ar9280.c ===

svn commit: r218419 - head/sys/dev/ath/ath_hal

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 21:48:26 2011 New Revision: 218419 URL: http://svn.freebsd.org/changeset/base/218419 Log: Bring over some AR9280-specific v14 additions that exist in ath9k. Obtained from:Linux ath9k Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v14.c head/sys/dev

svn commit: r218420 - head/sys/dev/ath/ath_hal/ar5416

2011-02-07 Thread Adrian Chadd
Author: adrian Date: Mon Feb 7 22:00:31 2011 New Revision: 218420 URL: http://svn.freebsd.org/changeset/base/218420 Log: Add in some AR9280 specific board configuration options. * The existing radio config code was for the AR5416/AR9160 and missed out on some of the AR9280 specific stu

svn commit: r218436 - in head/sys/dev/ath/ath_hal: . ar5210 ar5211 ar5212 ar9002

2011-02-08 Thread Adrian Chadd
Author: adrian Date: Tue Feb 8 12:49:01 2011 New Revision: 218436 URL: http://svn.freebsd.org/changeset/base/218436 Log: There's apparently a bug with Merlin (AR9280) and later chipsets where putting descriptors (not buffers) across a 4k page boundary can cause issues. I've not seen it in p

svn commit: r218441 - head/sys/dev/ath/ath_hal/ar5416

2011-02-08 Thread Adrian Chadd
Author: adrian Date: Tue Feb 8 14:15:46 2011 New Revision: 218441 URL: http://svn.freebsd.org/changeset/base/218441 Log: I missed this commit - enable 4k transaction support for the ar5416+ar9160. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modified: head/sys/dev/ath/ath_hal/a

svn commit: r218448 - head/sys/dev/ath/ath_rate/sample

2011-02-08 Thread Adrian Chadd
Author: adrian Date: Tue Feb 8 18:31:28 2011 New Revision: 218448 URL: http://svn.freebsd.org/changeset/base/218448 Log: Commit some missing bits to the sample rate module to (more) correctly calculate 802.11n packet duration. This doesn't yet take into account HT40 packet durations as th

svn commit: r218453 - head/sys/dev/ath

2011-02-08 Thread Adrian Chadd
Author: adrian Date: Tue Feb 8 20:16:43 2011 New Revision: 218453 URL: http://svn.freebsd.org/changeset/base/218453 Log: net80211 really doesn't want A_MPDU to appear on non-11n station node mbufs. Revert back to the previous method of doing it for where a node can be identified and it's an

svn commit: r218483 - in head/sys/dev/ath: . ath_hal/ar5212

2011-02-09 Thread Adrian Chadd
Author: adrian Date: Wed Feb 9 15:23:16 2011 New Revision: 218483 URL: http://svn.freebsd.org/changeset/base/218483 Log: Fix the keycache behaviour for multicast keycache search. The correct bit to set is 0x1 in the high MAC address byte, not 0x80. The hardware isn't programmed with that

svn commit: r218488 - head/sys/dev/ath

2011-02-09 Thread Adrian Chadd
Author: adrian Date: Wed Feb 9 15:43:38 2011 New Revision: 218488 URL: http://svn.freebsd.org/changeset/base/218488 Log: Add in the (very!) optional glue to flip the 11n bits for if_ath. There's still a lot of random issues to sort out with the radio side of things and AMPDU RX handling

svn commit: r218490 - in head/sys/dev/ath: . ath_hal

2011-02-09 Thread Adrian Chadd
Author: adrian Date: Wed Feb 9 16:37:29 2011 New Revision: 218490 URL: http://svn.freebsd.org/changeset/base/218490 Log: Expose the 4k transaction workaround hooks to the driver, but don't (yet) fix the descriptor allocation. Modified: head/sys/dev/ath/ath_hal/ah.c head/sys/dev/ath/ath_h

Re: svn commit: r218130 - head

2011-02-10 Thread Adrian Chadd
So when I run this: adrian@ref8-amd64:/scratch/tmp/adrian/head/src$ env BUILD_FLAGS="NOCLEAN=1 NO_CLEAN=1" ../../build/build-scripts/bin/build rspro buildworld MAKEOBJDIRPREFIX: /scratch/tmp/adrian/head/src/../obj/mipseb/ env=MAKEOBJDIRPREFIX=/scratch/tmp/adrian/head/src/../obj/mipseb/ make NOCLEA

svn commit: r218556 - head/sys/dev/ath

2011-02-11 Thread Adrian Chadd
Author: adrian Date: Fri Feb 11 13:05:15 2011 New Revision: 218556 URL: http://svn.freebsd.org/changeset/base/218556 Log: The last parameter to ath_computedur_ht() is short-GI, not short-preamble. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.c ===

svn commit: r218566 - head/sys/dev/ath

2011-02-11 Thread Adrian Chadd
Author: adrian Date: Fri Feb 11 14:07:27 2011 New Revision: 218566 URL: http://svn.freebsd.org/changeset/base/218566 Log: .. how'd this compile before I commit it and then not now? Fixed. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.c ===

svn commit: r218593 - head/sys/dev/ath

2011-02-11 Thread Adrian Chadd
Author: adrian Date: Sat Feb 12 02:14:19 2011 New Revision: 218593 URL: http://svn.freebsd.org/changeset/base/218593 Log: The current code used the fields in ath_set11nratescenario() . Use them correctly: * pass in whether to allow the hardware to override the duration field in the m

svn commit: r218637 - head/tools/tools/ath/ath_ee_v14_print

2011-02-13 Thread Adrian Chadd
Author: adrian Date: Sun Feb 13 13:11:00 2011 New Revision: 218637 URL: http://svn.freebsd.org/changeset/base/218637 Log: * add in new EEPROM fields from later revisions * add in printing futureBase Modified: head/tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c Modified: head/tools/too

svn commit: r218642 - head/sys/dev/ath

2011-02-13 Thread Adrian Chadd
Author: adrian Date: Sun Feb 13 15:14:13 2011 New Revision: 218642 URL: http://svn.freebsd.org/changeset/base/218642 Log: This should be TX stream, not RX stream. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.c =

svn commit: r218689 - head/sys/dev/ath

2011-02-14 Thread Adrian Chadd
Author: adrian Date: Mon Feb 14 21:24:54 2011 New Revision: 218689 URL: http://svn.freebsd.org/changeset/base/218689 Log: Some statistics additions - prepare for error codes > 32 (since the AR5416 error mask is > 5 bits) and add some extra CRC/HT40/ShortGI counters to help debug 802.11n issu

svn commit: r218690 - head/sys/dev/ath/ath_hal/ar5416

2011-02-14 Thread Adrian Chadd
Author: adrian Date: Mon Feb 14 21:35:11 2011 New Revision: 218690 URL: http://svn.freebsd.org/changeset/base/218690 Log: bring this in line with what ath9k does. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c ===

svn commit: r218708 - head/sys/dev/ath/ath_hal/ar9002

2011-02-15 Thread Adrian Chadd
Author: adrian Date: Tue Feb 15 13:29:52 2011 New Revision: 218708 URL: http://svn.freebsd.org/changeset/base/218708 Log: Disable flipping antennas for AR9280. Flipping antennas when doing 11n would cause all kinds of strange issues. Just don't do it for now and when it comes time to do i

svn commit: r218747 - head/sys/dev/flash

2011-02-16 Thread Adrian Chadd
Author: adrian Date: Wed Feb 16 20:07:44 2011 New Revision: 218747 URL: http://svn.freebsd.org/changeset/base/218747 Log: Modify the spi flash driver to allow smaller read IO sizes, but enforce the larger, aligned write+erase sizes the driver currently implements. This preserves write beh

svn commit: r218761 - head/sys/dev/ath/ath_rate/sample

2011-02-16 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 05:16:59 2011 New Revision: 218761 URL: http://svn.freebsd.org/changeset/base/218761 Log: Properly propagate whether the channel is HT40 or not when calculating packet duration for the ath_rate_sample module. This doesn't affect the packet TX at all; only h

svn commit: r218762 - head/sys/dev/ath/ath_hal/ar5416

2011-02-16 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 05:30:38 2011 New Revision: 218762 URL: http://svn.freebsd.org/changeset/base/218762 Log: Call the right function. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c =

svn commit: r218763 - in head/sys/dev/ath/ath_hal: . ar5416

2011-02-16 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 05:52:53 2011 New Revision: 218763 URL: http://svn.freebsd.org/changeset/base/218763 Log: Add a new parameter to selectively enable/disable the ANI operations. This was inspired by ath9k, which disables ANI anti-noise immunity parameter tweaking (but leaves

svn commit: r218764 - head/sys/dev/ath/ath_hal/ar9002

2011-02-16 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 05:56:03 2011 New Revision: 218764 URL: http://svn.freebsd.org/changeset/base/218764 Log: Add in ANI parameters for the AR9280. These aren't enabled by default as they're likely not entirely correct, but they give people something to toy with to compare behavi

svn commit: r218778 - head/sys/dev/ath

2011-02-17 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 17:31:36 2011 New Revision: 218778 URL: http://svn.freebsd.org/changeset/base/218778 Log: Disable short-GI in 20mhz mode - the hardware doesn't support this. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ==

svn commit: r218779 - head/sys/dev/ath

2011-02-17 Thread Adrian Chadd
Author: adrian Date: Thu Feb 17 17:35:09 2011 New Revision: 218779 URL: http://svn.freebsd.org/changeset/base/218779 Log: Just be double-sure short-gi isn't being enabled in 20mhz mode. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.c ==

svn commit: r218907 - head/sys/dev/ath

2011-02-20 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 03:52:51 2011 New Revision: 218907 URL: http://svn.freebsd.org/changeset/base/218907 Log: Implement setting the short preamble bit if it's needed for the current node. Short preamble rates are only for legacy rates; MCS rate codes don't have a short preamb

svn commit: r218908 - head/sys/dev/ath/ath_hal/ar5416

2011-02-20 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 05:10:34 2011 New Revision: 218908 URL: http://svn.freebsd.org/changeset/base/218908 Log: Modify the AR5416 11na rate table to use 24mb OFDM 11a for control traffic, rather than MCS 0. Using MCS0 for protecting 11a rates seems a bit silly. Modified: head

svn commit: r218916 - head/sys/net80211

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 15:49:59 2011 New Revision: 218916 URL: http://svn.freebsd.org/changeset/base/218916 Log: Default to the lowest negotiated rate for mgmt/multicast traffic in 11n mode The current code transmits management and multicast frames at MCS 0. What it should do is

svn commit: r218923 - head/sys/dev/ath/ath_hal

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 18:58:58 2011 New Revision: 218923 URL: http://svn.freebsd.org/changeset/base/218923 Log: Add a vocal warning to ath_hal_computetxtime() function is used for non-11n rates. It's used to calculate: * the initial per-rate entries for short/long preamble A

svn commit: r218924 - head/sys/dev/ath

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 19:19:05 2011 New Revision: 218924 URL: http://svn.freebsd.org/changeset/base/218924 Log: Add a new counter which tracks frames TX'ed with HT protection. Modified: head/sys/dev/ath/if_ath.c head/sys/dev/ath/if_athioctl.h Modified: head/sys/dev/ath/if_ath.c =

svn commit: r218925 - head/sys/dev/ath

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Mon Feb 21 19:22:45 2011 New Revision: 218925 URL: http://svn.freebsd.org/changeset/base/218925 Log: Fix formatting of new stat sysctls; add descriptions Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c =

svn commit: r218931 - head/sys/dev/ath

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Tue Feb 22 00:01:19 2011 New Revision: 218931 URL: http://svn.freebsd.org/changeset/base/218931 Log: * Don't setup the scenario if the try count is 0 * Comment what else is going on during rate scenario setup Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys

svn commit: r218932 - head/sys/dev/ath

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Tue Feb 22 00:37:53 2011 New Revision: 218932 URL: http://svn.freebsd.org/changeset/base/218932 Log: Shuffle around the RTS/CTS rate/duration logic. * Turn ath_tx_calc_ctsduration() into a function that returns the ctsduration, or -1 for HT rates; * add a printf()

svn commit: r218935 - head/sys/dev/ath

2011-02-21 Thread Adrian Chadd
Author: adrian Date: Tue Feb 22 04:41:04 2011 New Revision: 218935 URL: http://svn.freebsd.org/changeset/base/218935 Log: Don't set the RTS/CTS enable bit per-scenario if the global RTS/CTS flags aren't set. Modified: head/sys/dev/ath/if_ath_tx_ht.c Modified: head/sys/dev/ath/if_ath_tx_ht.

Re: svn commit: r224267 - head/sys/dev/ath/ath_dfs/null

2011-07-27 Thread Adrian Chadd
Hm, nope. I'll double-check this against the reference code and commit a fix. Thanks for picking it up! adrian On 26 July 2011 21:30, Gavin Atkinson wrote: > On Fri, 2011-07-22 at 09:39 +, Adrian Chadd wrote: >> Author: adrian >> Date: Fri Jul 22 09:39:49 2011 >

Re: svn commit: r224267 - head/sys/dev/ath/ath_dfs/null

2011-07-27 Thread Adrian Chadd
On 26 July 2011 21:30, Gavin Atkinson wrote: [snip code] > And for these, you return negative error values.  Is this inconsistency > intentional? Nope; this somehow was incorrectly picked up from the reference code. I wonder if it's due to Linuxisms there.. Thanks, Adrian ___

svn commit: r224502 - head/sys/dev/ath

2011-07-29 Thread Adrian Chadd
Author: adrian Date: Fri Jul 29 23:55:17 2011 New Revision: 224502 URL: http://svn.freebsd.org/changeset/base/224502 Log: Reset the NIC if ANI is enabled or disabled. Although this may not be what the original sysctl was designed to do, it feels a bit more "expected". Before, if ANI

svn commit: r224509 - head/sys/dev/ath/ath_hal/ar5416

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:18:48 2011 New Revision: 224509 URL: http://svn.freebsd.org/changeset/base/224509 Log: Fix the AR9280 initial AGC calibration code. It looks like this was mixed up with the AR9285 calibration code. This code is now more in line with what Linux ath9k and

svn commit: r224510 - head/sys/dev/ath/ath_hal/ar5416

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:21:33 2011 New Revision: 224510 URL: http://svn.freebsd.org/changeset/base/224510 Log: I noticed that the Merlin NICs I had (AR9220, AR9280) never completed the ADC calibrations if the NIC is in 5ghz 11a or 5ghz HT/20 modes. I've been told that the dual-ADC

svn commit: r224512 - head/sys/dev/ath/ath_hal/ar5416

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:25:11 2011 New Revision: 224512 URL: http://svn.freebsd.org/changeset/base/224512 Log: Bring over AR5416 specific RX filter get/set routines. This in particular fixes radar PHY handling - on the AR5212 NIC, one enables the AR_PHY_ERR_RADAR bit in AR_PHY_

svn commit: r224514 - in head/sys/dev/ath/ath_hal: ar5212 ar5416

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:30:24 2011 New Revision: 224514 URL: http://svn.freebsd.org/changeset/base/224514 Log: Fix ANI handling to work correctly when (trying) to receive radar errors. * Teach the AR5212/AR5416 ANI code to use the RX filter methods, rather than calling the RX

svn commit: r224515 - head/sys/dev/ath/ath_hal/ar9002

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:31:27 2011 New Revision: 224515 URL: http://svn.freebsd.org/changeset/base/224515 Log: Fix the initial calibration sample count when doing ADC calibrations. Obtained from:Atheros Approved by: re (kib) Modified: head/sys/dev/ath/ath_hal/ar9002

svn commit: r224517 - head/sys/dev/ath/ath_hal/ar5416

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:34:57 2011 New Revision: 224517 URL: http://svn.freebsd.org/changeset/base/224517 Log: Fix AR5416 radar parameter initialisation. * I messed up the order of parameter true/false; oops! * AR_PHY_RADAR_1 was being written at the wrong place, and was writin

svn commit: r224518 - head/sys/dev/ath/ath_hal

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:37:38 2011 New Revision: 224518 URL: http://svn.freebsd.org/changeset/base/224518 Log: Prepare for embedded use of the AR9285/AR9287. Calibration/PCI data that's written to flash (rather than EEPROM attached to the NIC) is typically already in host-endia

svn commit: r224519 - in head/sys/dev/ath/ath_hal: . ar9002

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:45:12 2011 New Revision: 224519 URL: http://svn.freebsd.org/changeset/base/224519 Log: Introduce the FRAC_5G EEPROM parameter. This seems to indicate whether to program the NIC for fractional 5ghz mode (ie, 5mhz spaced channels, rather than 10 or 20mhz s

svn commit: r224520 - head/sys/dev/ath/ath_dfs/null

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sat Jul 30 13:46:41 2011 New Revision: 224520 URL: http://svn.freebsd.org/changeset/base/224520 Log: Fix incorrect error reporting during the dfs ioctl function. Approved by: re (kib) Modified: head/sys/dev/ath/ath_dfs/null/dfs_null.c Modified: head/sys/dev/ath/ath

svn commit: r224538 - head/sys/dev/ath/ath_hal

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 03:33:02 2011 New Revision: 224538 URL: http://svn.freebsd.org/changeset/base/224538 Log: Add some more phyerr bits. Obtained from:Atheros Approved by: re (kib) Modified: head/sys/dev/ath/ath_hal/ah_desc.h Modified: head/sys/dev/ath/ath_hal/ah_

svn commit: r224539 - head/sys/dev/ath/ath_hal

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 05:01:42 2011 New Revision: 224539 URL: http://svn.freebsd.org/changeset/base/224539 Log: Add extra flags for the radar event API. (They're not used by any public code at the current time.) Approved by: re (kib) Modified: head/sys/dev/ath/ath_hal/ah.h

svn commit: r224540 - head/sys/dev/ath

2011-07-30 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 05:59:33 2011 New Revision: 224540 URL: http://svn.freebsd.org/changeset/base/224540 Log: Fix typo! Approved by: re (kib) Modified: head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath/if_athvar.h ==

svn commit: r224541 - head/sys/dev/ath

2011-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 08:01:41 2011 New Revision: 224541 URL: http://svn.freebsd.org/changeset/base/224541 Log: Implement the 4KB split transaction workaround for Merlin (AR9280). The AR9280 apparently has an issue with descriptors which straddle a page boundary (4k). I'm not ye

svn commit: r224542 - head/sys/dev/ath

2011-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 08:13:25 2011 New Revision: 224542 URL: http://svn.freebsd.org/changeset/base/224542 Log: Remove two debugging printf()s which snuck in during the testing of the last commit. Approved by: re (kib) Pointy-hat-to:adrian@ Modified: head/sys/dev/a

svn commit: r224550 - head/sys/dev/ath

2011-07-31 Thread Adrian Chadd
Author: adrian Date: Sun Jul 31 16:16:25 2011 New Revision: 224550 URL: http://svn.freebsd.org/changeset/base/224550 Log: Disable the RXORN/RXEOL interrupts if RXEOL occurs, preventing an interrupt storm. This is easily triggered by flipping on and off tcpdump -y IEEE802_11_RADIO w/ wit

svn commit: r224588 - head/sys/dev/ath

2011-08-01 Thread Adrian Chadd
Author: adrian Date: Tue Aug 2 02:46:03 2011 New Revision: 224588 URL: http://svn.freebsd.org/changeset/base/224588 Log: Fix a corner case in RXEOL handling which was likely introduced by yours truly. Before 802.11n, the RX descriptor list would employ the "self-linked tail descriptor"

svn commit: r224624 - head/sys/dev/ath/ath_hal

2011-08-02 Thread Adrian Chadd
Author: adrian Date: Wed Aug 3 06:51:14 2011 New Revision: 224624 URL: http://svn.freebsd.org/changeset/base/224624 Log: Remove the EEPROM minor >= 19 check for txgaintype; that's only needed for Merlin / v14 eeprom formats. Approved by: re (kib, blanket) Modified: head/sys/dev/ath/a

svn commit: r224633 - head/sys/dev/ath/ath_hal

2011-08-03 Thread Adrian Chadd
Author: adrian Date: Wed Aug 3 13:36:14 2011 New Revision: 224633 URL: http://svn.freebsd.org/changeset/base/224633 Log: * Fix a clash in structure naming which occurs with (closed source) radar detection code. This is just to make porting the atheros radar code easier. * add a mis

svn commit: r224634 - head/sys/dev/ath/ath_hal/ar9002

2011-08-03 Thread Adrian Chadd
Author: adrian Date: Wed Aug 3 13:39:11 2011 New Revision: 224634 URL: http://svn.freebsd.org/changeset/base/224634 Log: Add in a dirty hack that allows for AR9280/AR9285/AR9287 embedded systems, in the same way that AR9130 embedded systems work. This isn't -everything- that is required

svn commit: r224644 - head/sys/dev/ath/ath_hal/ar9002

2011-08-03 Thread Adrian Chadd
Author: adrian Date: Wed Aug 3 23:57:38 2011 New Revision: 224644 URL: http://svn.freebsd.org/changeset/base/224644 Log: Undo this for now. It's "right", but it means everything will rely on the ar9130 code. Since at least one kernel config specifies individual ath HAL chips rather tha

svn commit: r224709 - in head/sys/dev/ath: . ath_hal ath_hal/ar5212 ath_hal/ar5416

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 13:15:39 2011 New Revision: 224709 URL: http://svn.freebsd.org/changeset/base/224709 Log: Add another HAL method - ah_isFastClockEnabled - which returns AH_TRUE if 5ghz fast clock is enabled in the current operating mode. It's slightly dirty, but it's part

svn commit: r224714 - head/sys/dev/ath

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 15:41:03 2011 New Revision: 224714 URL: http://svn.freebsd.org/changeset/base/224714 Log: Fix method naming to match the reference HAL definition. Obtained from:Atheros Approved by: re (kib, blanket) Modified: head/sys/dev/ath/if_athvar.h Modif

svn commit: r224715 - head/sys/dev/ath

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 15:42:37 2011 New Revision: 224715 URL: http://svn.freebsd.org/changeset/base/224715 Log: .. and add a missing bracket. Approved by: re (kib, blanket) Modified: head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath/if_athvar.h =

svn commit: r224716 - in head/sys/dev/ath: . ath_dfs/null ath_hal

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 16:22:42 2011 New Revision: 224716 URL: http://svn.freebsd.org/changeset/base/224716 Log: Introduce some more DFS related hooks, inspired both by local work and the Atheros reference code. The radar detection code needs to know what the current DFS domain i

svn commit: r224718 - head/sys/dev/ath/ath_hal

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 17:33:35 2011 New Revision: 224718 URL: http://svn.freebsd.org/changeset/base/224718 Log: The older HAL code sets up the regulatory domain once; FreeBSD/net80211 allows it to be overridden at runtime. Thus, add a function which updates ah_dfsDomain after a

svn commit: r224719 - head/sys/dev/ath/ath_hal

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 18:05:22 2011 New Revision: 224719 URL: http://svn.freebsd.org/changeset/base/224719 Log: Bitten again by the optional HALDEBUG compilation. Remove this debugging, it's not needed anymore and when not enabled, those variables trigger a compiler warning.

svn commit: r224720 - head/sys/dev/ath

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Mon Aug 8 19:03:26 2011 New Revision: 224720 URL: http://svn.freebsd.org/changeset/base/224720 Log: And add another missing brace. Another pointy hat moment. This one however isn't used by any public code yet, so it didn't break the build. Approved by: re (kib, bl

svn commit: r224724 - head/sys/dev/ath

2011-08-08 Thread Adrian Chadd
Author: adrian Date: Tue Aug 9 04:24:56 2011 New Revision: 224724 URL: http://svn.freebsd.org/changeset/base/224724 Log: Remove this call, now that I've solved the radar module problem without needing this particular modification. It can be called during ath_dfs_radar_enable() and still

svn commit: r224734 - in head/sys/dev/ath: . ath_dfs/null

2011-08-09 Thread Adrian Chadd
Author: adrian Date: Tue Aug 9 15:46:52 2011 New Revision: 224734 URL: http://svn.freebsd.org/changeset/base/224734 Log: Remove the now unneeded references to these DFS methods. Sorry for the noise everyone. Approved by: re (kib, blanket) Modified: head/sys/dev/ath/ath_dfs/null/df

svn commit: r224907 - head/sys/net80211

2011-08-16 Thread Adrian Chadd
Author: adrian Date: Tue Aug 16 09:07:59 2011 New Revision: 224907 URL: http://svn.freebsd.org/changeset/base/224907 Log: Fix BAR frame TX completion - successful transmission is indicated by a status of 0. Approved by: re (kib) Modified: head/sys/net80211/ieee80211_ht.c Modified: he

svn commit: r225013 - head/sys/net80211

2011-08-19 Thread Adrian Chadd
Author: adrian Date: Fri Aug 19 15:21:13 2011 New Revision: 225013 URL: http://svn.freebsd.org/changeset/base/225013 Log: Correctly handle BAR TX failures. On a TX failure, ic_raw_xmit will still call ieee80211_node_free(). There's no need to call it here. Submitted by: moonlightak..

svn commit: r225111 - head/sys/dev/ath/ath_hal/ar5416

2011-08-23 Thread Adrian Chadd
Author: adrian Date: Tue Aug 23 13:36:09 2011 New Revision: 225111 URL: http://svn.freebsd.org/changeset/base/225111 Log: These timer registers are all 1uS in resolution in AR5416 or later. Previous hardware had some as TU, some as 1/8th TU. * Modify AR_NEXT_DBA and AR_NEXT_SWBA to use

svn commit: r225125 - head/sys/dev/ath/ath_hal/ar5416

2011-08-23 Thread Adrian Chadd
Author: adrian Date: Wed Aug 24 00:45:53 2011 New Revision: 225125 URL: http://svn.freebsd.org/changeset/base/225125 Log: TIM/Timer fixes for AR5416 and later: * Fix SLEEP1/SLEEP2 register definitions; the CAB/Beacon timeout fields have changed in AR5416 and later * The TIM_PERIOD and

svn commit: r225139 - head/sys/net80211

2011-08-24 Thread Adrian Chadd
Author: adrian Date: Wed Aug 24 08:53:33 2011 New Revision: 225139 URL: http://svn.freebsd.org/changeset/base/225139 Log: This patch fixes beacon frame sequence number generation. The code didn't set a sequence number; it didn't show up earlier because the hardware most people use for hostap

svn commit: r225145 - head/sys/dev/ath

2011-08-24 Thread Adrian Chadd
Author: adrian Date: Wed Aug 24 14:11:00 2011 New Revision: 225145 URL: http://svn.freebsd.org/changeset/base/225145 Log: Fix a missing initialisation of bt_flags when setting up the TDMA beacon. The AR5212 HAL didn't check this field; timers are enabled a different way. The AR5416 H

svn commit: r225420 - head/sys/dev/ath/ath_hal/ar5416

2011-09-06 Thread Adrian Chadd
Author: adrian Date: Tue Sep 6 10:49:05 2011 New Revision: 225420 URL: http://svn.freebsd.org/changeset/base/225420 Log: Fix the addac serial load register write for AR5416. Obtained from:Linux, Atheros Approved by: re (kib) Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416.in

svn commit: r225421 - head/sys/dev/ath/ath_hal/ar5416

2011-09-06 Thread Adrian Chadd
Author: adrian Date: Tue Sep 6 10:54:56 2011 New Revision: 225421 URL: http://svn.freebsd.org/changeset/base/225421 Log: Fix 5ghz calibration logic when using AR9280 w/ fast clock. When the fast clock (44mhz) is enabled for 5ghz HT20, the dual ADCs aren't enabled. Trying to do the ADC ca

svn commit: r225431 - head/sys/dev/ath/ath_hal/ar5416

2011-09-06 Thread Adrian Chadd
Author: adrian Date: Wed Sep 7 03:00:58 2011 New Revision: 225431 URL: http://svn.freebsd.org/changeset/base/225431 Log: Add a definition for ASYNC_CAUSE_CLR. It's not used yet, but the reference driver does clear the async interrupts after each service. I'll tinker with this in a future co

svn commit: r225444 - in head/sys/dev/ath: . ath_hal ath_hal/ar5210 ath_hal/ar5211 ath_hal/ar5212 ath_hal/ar5416

2011-09-07 Thread Adrian Chadd
Author: adrian Date: Thu Sep 8 01:23:05 2011 New Revision: 225444 URL: http://svn.freebsd.org/changeset/base/225444 Log: Update the TSF and next-TBTT methods to work for the AR5416 and later NICs. This is another commit in a series of TDMA support fixes for the 11n NICs. * Move ath_hal_g

svn commit: r225473 - head/sys/dev/ath/ath_rate/sample

2011-09-11 Thread Adrian Chadd
Author: adrian Date: Sun Sep 11 09:43:13 2011 New Revision: 225473 URL: http://svn.freebsd.org/changeset/base/225473 Log: Fix the order of parameters passed to the HT frame duration calculation. Approved by: re (kib) Modified: head/sys/dev/ath/ath_rate/sample/sample.h Modified: head/sy

svn commit: r225570 - in head: share/man/man9 sys/kern

2011-09-15 Thread Adrian Chadd
Author: adrian Date: Thu Sep 15 08:42:06 2011 New Revision: 225570 URL: http://svn.freebsd.org/changeset/base/225570 Log: Ensure that ta_pending doesn't overflow u_short by capping its value at USHRT_MAX. If it overflows before the taskqueue can run, the task will be re-added to the task

svn commit: r225686 - head/sys/dev/iwn

2011-09-19 Thread Adrian Chadd
Author: adrian Date: Tue Sep 20 04:30:23 2011 New Revision: 225686 URL: http://svn.freebsd.org/changeset/base/225686 Log: Manually set the channel when using monitor mode - the firmware doesn't select it automatically. Submitted by: nox Reviewed by: bschmidt Approved by: re PR:

svn commit: r225818 - head/sys/dev/ath

2011-09-27 Thread Adrian Chadd
Author: adrian Date: Wed Sep 28 02:54:42 2011 New Revision: 225818 URL: http://svn.freebsd.org/changeset/base/225818 Log: Update the default AIFS value for hostap mode. Obtained from:Linux ath9k, Atheros reference Modified: head/sys/dev/ath/if_athvar.h Modified: head/sys/dev/ath

svn commit: r225819 - in head/sys/dev/ath/ath_hal: ar5212 ar5416

2011-09-27 Thread Adrian Chadd
Author: adrian Date: Wed Sep 28 03:03:23 2011 New Revision: 225819 URL: http://svn.freebsd.org/changeset/base/225819 Log: The AR5212 setup path (also used by the AR5416 code) configures a local variable with a beacon interval of 100 TU. This never gets modified if the beacon interval configu

svn commit: r225820 - in head/sys/dev/ath/ath_hal: ar5212 ar5416

2011-09-27 Thread Adrian Chadd
Author: adrian Date: Wed Sep 28 03:05:04 2011 New Revision: 225820 URL: http://svn.freebsd.org/changeset/base/225820 Log: Change the default CABQ time to be 70% of the beacon interval, rather than the whole beacon interval. The reference driver and Linux ath9k both choose 80% of the bea

svn commit: r225821 - head/sys/dev/ath

2011-09-27 Thread Adrian Chadd
Author: adrian Date: Wed Sep 28 03:07:51 2011 New Revision: 225821 URL: http://svn.freebsd.org/changeset/base/225821 Log: Fix lock order to be correcter. Nothing else locks these two queues (cabq, avp mcastq), but it should be consistent and correct. Modified: head/sys/dev/ath/if_ath.c

svn commit: r225822 - head/sys/dev/ath

2011-09-27 Thread Adrian Chadd
Author: adrian Date: Wed Sep 28 03:11:51 2011 New Revision: 225822 URL: http://svn.freebsd.org/changeset/base/225822 Log: Don't bother triggering the cabq queue if it's empty. Obtained from:Atheros Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c =

Re: svn commit: r225821 - head/sys/dev/ath

2011-09-28 Thread Adrian Chadd
On 28 September 2011 18:31, Kostik Belousov wrote: > Does the unlock order matter ? Unlock cannot block. > > I do not object against the change, rather, I am nit-picking against the > commit message. Nope it doesn't. It's just a cosmetic change. Adrian _

svn commit: r225883 - in head/sys/dev/ath: . ath_hal ath_hal/ar5210 ath_hal/ar5211 ath_hal/ar5212 ath_hal/ar5312 ath_hal/ar5416 ath_hal/ar9001 ath_hal/ar9002

2011-09-29 Thread Adrian Chadd
Author: adrian Date: Fri Sep 30 05:17:57 2011 New Revision: 225883 URL: http://svn.freebsd.org/changeset/base/225883 Log: Fix a corner case in the HAL debugging changes, where ah was NULL. Although I tried to fix this earlier by introducing HALDEBUG_G(), it turns out there seem to be othe

svn commit: r225892 - head/sys/mips/mips

2011-09-30 Thread Adrian Chadd
Author: adrian Date: Sat Oct 1 05:56:25 2011 New Revision: 225892 URL: http://svn.freebsd.org/changeset/base/225892 Log: Disable using wait in cpu_idle() until a better solution to timer and interrupt handling can be implemented. Modified: head/sys/mips/mips/machdep.c Modified: head/sys/m

<    4   5   6   7   8   9   10   11   12   13   >