K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-01-29T23:57:51.999144Z K 7 svn:log V 991 Implement HT40 spectral frame format support. HT40 spectral / radar frames report both the lower and upper 20MHz worth of samples (128 in total.) The two 20MHz halves have different RSSI values, so use the primary / extension values to calculate two sets of channel power, rather than doing it over the full 128 samples. The two 20MHz halves have different noise floor and RSSI values, so the right NF/RSSI values need to be lined up with the right half of the 40MHz channel. For HT40D (ie, extension channel below primary channel), swap the RSSI/NF values when calculating the power level. So: * remove the pri/ext FFT results - they're kind of pointless now; * calculate channel power separately for each 20MHz half; * Figure out which RSSI/NF to use based on the current channel flags; * Use chain 0 ctl/ext RSSI and NF (when the per-chain and per-half NF cal data is eventually used) in the signal level calculations. Tested: * AR9280, HT20 and HT40 spectral scan report modes END