freebsd-dev/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
ar5416 [ath_hal] fixes for finer grain timestamping, some 11n macros 2016-09-09 04:45:25 +00:00
ar9001
ar9002
ar9003
ah_btcoex.h
ah_debug.h
ah_decode.h
ah_desc.h
ah_devid.h
ah_diagcodes.h
ah_eeprom_9287.c
ah_eeprom_9287.h
ah_eeprom_v1.c
ah_eeprom_v1.h
ah_eeprom_v3.c
ah_eeprom_v3.h
ah_eeprom_v4k.c
ah_eeprom_v4k.h
ah_eeprom_v14.c
ah_eeprom_v14.h
ah_eeprom.h
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
ah_soc.h
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