opnsense-src/sys/dev/ath/ath_hal
Adrian Chadd eee8e3627b [ath_hal] mad, mad hacks to get some semblence of correct HT/40 channels populated.
The HT40 channel population logic was "just" doing pairs of channels starting with
the band entry frequency.  Trouble is, a lot of the rules start way off at 5120MHz,
which isn't a valid 5GHz channel.  Then, eg for HT40U, it would populate:

* (5120,5140)
* (5160,5180)
* (5200,5220)
* (5240,5260)

.. as the HT40U pairs, with the first being the primary channel.  Channel 36
is 5180MHz, and since it's not a primary channel here, it wouldn't populate it.
Then, the next HT40U would be 5200/5220, which is highly wrong.

HT40D had the same problem.

So, this just forces that 5GHz HT40 channels start at channel 36 (5180),
no matter what the band edge says.  This includes eg doing 4.9GHz channels.

This erm, meant that the HT40 channels for the low band was always wrong.

Oops!

Tested:

* AR9380, STA mode
* AR9344 SoC, AP mode

MFC after:	1 week
2017-01-05 04:56:04 +00:00
..
ah_regdomain [ath_hal] Add FCC6_FCCA regulatory domain (0x0014). 2016-09-25 22:07:41 +00:00
ar5210 [ath_hal] retire a "long RX desc" flag, store/use the TX/RX timestamp length. 2016-07-08 21:34:39 +00:00
ar5211 [ath_hal] retire a "long RX desc" flag, store/use the TX/RX timestamp length. 2016-07-08 21:34:39 +00:00
ar5212 sys/dev: replace comma with semicolon when pertinent. 2016-08-09 19:41:46 +00:00
ar5312 ath(4): begin fleshing out a "reset type" extension to force cold/warn resets. 2015-11-09 15:59:42 +00:00
ar5416 [ath_hal] fixes for finer grain timestamping, some 11n macros 2016-09-09 04:45:25 +00:00
ar9001 Add initial support for the AR9485 CUS198 / CUS230 variants. 2014-09-30 03:19:29 +00:00
ar9002 dev/ath: minor spelling fixes in comments. 2016-05-02 19:56:48 +00:00
ar9003 [ath_hal] use the correct revision information for QCA953x. 2015-11-28 06:50:09 +00:00
ah.c [ath_hal] fixes for finer grain timestamping, some 11n macros 2016-09-09 04:45:25 +00:00
ah.h [ath_hal] add a new regdomain flag - I think this means "yes, you can use this 2016-09-26 02:05:02 +00:00
ah_btcoex.h [ath_hal] add BTCOEX_STOMP_AUDIO; delete unused methods. 2016-06-04 07:28:09 +00:00
ah_debug.h HAL additions to enable MCI Bluetooth coexistence in the AR9300 HAL. 2013-04-05 07:41:47 +00:00
ah_decode.h Add two new debug mark entries for chip power configuration. 2014-08-09 09:13:10 +00:00
ah_desc.h [ath_hal] extend the TX/RX descriptor layout to include location/beamforming fields. 2016-07-08 19:16:50 +00:00
ah_devid.h * Add device string for QCA955x (scorpion); 2015-11-28 00:27:16 +00:00
ah_diagcodes.h Add some more diagnostic codes. 2012-08-24 00:17:39 +00:00
ah_eeprom.h Bring over some new EEPROM regulatory domain flags. 2012-08-24 01:14:00 +00:00
ah_eeprom_9287.c Move this magic check to only occur if no eeprom data is given. 2012-08-26 04:26:49 +00:00
ah_eeprom_9287.h Make sure the extended regdomain word is initialised. 2011-06-28 00:01:55 +00:00
ah_eeprom_v1.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v1.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v3.c Fix the eeprom set API method to return HAL_STATUS. 2011-05-14 15:12:02 +00:00
ah_eeprom_v3.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00
ah_eeprom_v4k.c "Upgrade" the AR9285 code to support PCI/ART EEPROM on flash. 2012-04-20 21:56:13 +00:00
ah_eeprom_v4k.h Bring over a pdadc calibration fix from ath9k - unused power detector 2011-04-22 10:57:46 +00:00
ah_eeprom_v14.c Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_eeprom_v14.h Introduce the FRAC_5G EEPROM parameter. 2011-07-30 13:45:12 +00:00
ah_internal.h [ath_hal] Add FCC6_FCCA regulatory domain (0x0014). 2016-09-25 22:07:41 +00:00
ah_regdomain.c [ath_hal] mad, mad hacks to get some semblence of correct HT/40 channels populated. 2017-01-05 04:56:04 +00:00
ah_regdomain.h ath: refactor/split getchannels() method. 2016-05-19 23:00:30 +00:00
ah_soc.h Replace Id keyword with FreeBSD keyword and set the svn props correctly. 2010-03-03 17:32:32 +00:00