Lines Matching refs:fft_sample_20
136 struct fft_sample_ht20 fft_sample_20; in ath_cmn_process_ht20_fft() local
147 length = sizeof(fft_sample_20) - sizeof(struct fft_sample_tlv); in ath_cmn_process_ht20_fft()
148 fft_sample_20.tlv.type = ATH_FFT_SAMPLE_HT20; in ath_cmn_process_ht20_fft()
149 fft_sample_20.tlv.length = __cpu_to_be16(length); in ath_cmn_process_ht20_fft()
150 fft_sample_20.freq = __cpu_to_be16(freq); in ath_cmn_process_ht20_fft()
151 fft_sample_20.rssi = fix_rssi_inv_only(rs->rs_rssi_ctl[0]); in ath_cmn_process_ht20_fft()
152 fft_sample_20.noise = ah->noise; in ath_cmn_process_ht20_fft()
158 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
161 fft_sample_20.max_index = max_index; in ath_cmn_process_ht20_fft()
164 fft_sample_20.bitmap_weight = bitmap_w; in ath_cmn_process_ht20_fft()
167 fft_sample_20.max_exp = max_exp; in ath_cmn_process_ht20_fft()
169 fft_sample_20.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_fft()
171 memcpy(fft_sample_20.data, sample_buf, SPECTRAL_HT20_NUM_BINS); in ath_cmn_process_ht20_fft()
178 if ((fft_sample_20.data[max_index] & 0xf8) != in ath_cmn_process_ht20_fft()
187 fft_sample_20.data[dc_pos] = (fft_sample_20.data[dc_pos + 1] + in ath_cmn_process_ht20_fft()
188 fft_sample_20.data[dc_pos - 1]) / 2; in ath_cmn_process_ht20_fft()
197 if (fft_sample_20.data[i] > tmp_mag) { in ath_cmn_process_ht20_fft()
198 tmp_mag = fft_sample_20.data[i]; in ath_cmn_process_ht20_fft()
199 fft_sample_20.max_index = i; in ath_cmn_process_ht20_fft()
204 fft_sample_20.max_magnitude = __cpu_to_be16(magnitude); in ath_cmn_process_ht20_fft()
208 tmp_mag, fft_sample_20.max_index); in ath_cmn_process_ht20_fft()
211 if (fft_sample_20.data[i] == (magnitude >> max_exp)) in ath_cmn_process_ht20_fft()
214 fft_sample_20.data[i], i); in ath_cmn_process_ht20_fft()
216 if (fft_sample_20.data[i] > (magnitude >> max_exp)) { in ath_cmn_process_ht20_fft()
219 i, fft_sample_20.data[i]); in ath_cmn_process_ht20_fft()
227 tlv = (struct fft_sample_tlv *)&fft_sample_20; in ath_cmn_process_ht20_fft()