Lines Matching refs:fft_sample_20

148 	struct fft_sample_ht20 fft_sample_20;  in ath_cmn_process_ht20_fft()  local
159 length = sizeof(fft_sample_20) - sizeof(struct fft_sample_tlv); in ath_cmn_process_ht20_fft()
160 fft_sample_20.tlv.type = ATH_FFT_SAMPLE_HT20; in ath_cmn_process_ht20_fft()
161 fft_sample_20.tlv.length = __cpu_to_be16(length); in ath_cmn_process_ht20_fft()
162 fft_sample_20.freq = __cpu_to_be16(freq); in ath_cmn_process_ht20_fft()
163 fft_sample_20.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_fft()
164 fft_sample_20.noise = ah->noise; in ath_cmn_process_ht20_fft()
170 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
174 fft_sample_20.max_index = max_index; in ath_cmn_process_ht20_fft()
177 fft_sample_20.bitmap_weight = bitmap_w; in ath_cmn_process_ht20_fft()
180 fft_sample_20.max_exp = max_exp; in ath_cmn_process_ht20_fft()
182 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
184 memcpy(fft_sample_20.data, sample_buf, SPECTRAL_HT20_NUM_BINS); in ath_cmn_process_ht20_fft()
191 if (fft_sample_20.data[max_index] != (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
199 fft_sample_20.data[dc_pos] = (fft_sample_20.data[dc_pos + 1] + in ath_cmn_process_ht20_fft()
200 fft_sample_20.data[dc_pos - 1]) / 2; in ath_cmn_process_ht20_fft()
209 if (fft_sample_20.data[i] > tmp_mag) { in ath_cmn_process_ht20_fft()
210 tmp_mag = fft_sample_20.data[i]; in ath_cmn_process_ht20_fft()
211 fft_sample_20.max_index = i; in ath_cmn_process_ht20_fft()
216 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
220 tmp_mag, fft_sample_20.max_index); in ath_cmn_process_ht20_fft()
223 if (fft_sample_20.data[i] == (magnitude >> max_exp)) in ath_cmn_process_ht20_fft()
226 fft_sample_20.data[i], i); in ath_cmn_process_ht20_fft()
228 if (fft_sample_20.data[i] > (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
231 i, fft_sample_20.data[i]); in ath_cmn_process_ht20_fft()
239 tlv = (struct fft_sample_tlv *)&fft_sample_20; in ath_cmn_process_ht20_fft()