Lines Matching refs:fft_sample_40

252 	struct fft_sample_ht20_40 fft_sample_40;  in ath_cmn_process_ht20_40_fft()  local
273 length = sizeof(fft_sample_40) - sizeof(struct fft_sample_tlv); in ath_cmn_process_ht20_40_fft()
274 fft_sample_40.tlv.type = ATH_FFT_SAMPLE_HT20_40; in ath_cmn_process_ht20_40_fft()
275 fft_sample_40.tlv.length = __cpu_to_be16(length); in ath_cmn_process_ht20_40_fft()
276 fft_sample_40.freq = __cpu_to_be16(freq); in ath_cmn_process_ht20_40_fft()
277 fft_sample_40.channel_type = chan_type; in ath_cmn_process_ht20_40_fft()
283 fft_sample_40.lower_noise = ah->noise; in ath_cmn_process_ht20_40_fft()
284 fft_sample_40.upper_noise = ext_nf; in ath_cmn_process_ht20_40_fft()
289 fft_sample_40.lower_noise = ext_nf; in ath_cmn_process_ht20_40_fft()
290 fft_sample_40.upper_noise = ah->noise; in ath_cmn_process_ht20_40_fft()
293 fft_sample_40.lower_rssi = lower_rssi; in ath_cmn_process_ht20_40_fft()
294 fft_sample_40.upper_rssi = upper_rssi; in ath_cmn_process_ht20_40_fft()
300 fft_sample_40.lower_max_magnitude = __cpu_to_be16(lower_mag); in ath_cmn_process_ht20_40_fft()
303 fft_sample_40.upper_max_magnitude = __cpu_to_be16(upper_mag); in ath_cmn_process_ht20_40_fft()
307 fft_sample_40.lower_max_index = lower_max_index; in ath_cmn_process_ht20_40_fft()
311 fft_sample_40.upper_max_index = upper_max_index; in ath_cmn_process_ht20_40_fft()
314 fft_sample_40.lower_bitmap_weight = lower_bitmap_w; in ath_cmn_process_ht20_40_fft()
317 fft_sample_40.upper_bitmap_weight = upper_bitmap_w; in ath_cmn_process_ht20_40_fft()
320 fft_sample_40.max_exp = max_exp; in ath_cmn_process_ht20_40_fft()
322 fft_sample_40.tsf = __cpu_to_be64(tsf); in ath_cmn_process_ht20_40_fft()
324 memcpy(fft_sample_40.data, sample_buf, SPECTRAL_HT20_40_NUM_BINS); in ath_cmn_process_ht20_40_fft()
338 (fft_sample_40.data[upper_max_index] == (upper_mag >> max_exp))) { in ath_cmn_process_ht20_40_fft()
340 fft_sample_40.upper_max_index = upper_max_index; in ath_cmn_process_ht20_40_fft()
344 (fft_sample_40.data[lower_max_index - dc_pos] == in ath_cmn_process_ht20_40_fft()
347 fft_sample_40.lower_max_index = lower_max_index; in ath_cmn_process_ht20_40_fft()
353 if ((fft_sample_40.data[upper_max_index + dc_pos] in ath_cmn_process_ht20_40_fft()
355 (fft_sample_40.data[lower_max_index] in ath_cmn_process_ht20_40_fft()
364 fft_sample_40.data[dc_pos] = (fft_sample_40.data[dc_pos + 1] + in ath_cmn_process_ht20_40_fft()
365 fft_sample_40.data[dc_pos - 1]) / 2; in ath_cmn_process_ht20_40_fft()
374 if (fft_sample_40.data[i] > tmp_mag) { in ath_cmn_process_ht20_40_fft()
375 tmp_mag = fft_sample_40.data[i]; in ath_cmn_process_ht20_40_fft()
376 fft_sample_40.lower_max_index = i; in ath_cmn_process_ht20_40_fft()
381 fft_sample_40.lower_max_magnitude = __cpu_to_be16(lower_mag); in ath_cmn_process_ht20_40_fft()
385 tmp_mag, fft_sample_40.lower_max_index); in ath_cmn_process_ht20_40_fft()
388 if (fft_sample_40.data[i] == (lower_mag >> max_exp)) in ath_cmn_process_ht20_40_fft()
391 fft_sample_40.data[i], i); in ath_cmn_process_ht20_40_fft()
393 if (fft_sample_40.data[i] > (lower_mag >> max_exp)) { in ath_cmn_process_ht20_40_fft()
396 i, fft_sample_40.data[i]); in ath_cmn_process_ht20_40_fft()
404 if (fft_sample_40.data[i] > tmp_mag) { in ath_cmn_process_ht20_40_fft()
405 tmp_mag = fft_sample_40.data[i]; in ath_cmn_process_ht20_40_fft()
406 fft_sample_40.upper_max_index = i; in ath_cmn_process_ht20_40_fft()
410 fft_sample_40.upper_max_magnitude = __cpu_to_be16(upper_mag); in ath_cmn_process_ht20_40_fft()
417 if (fft_sample_40.data[i] == (upper_mag >> max_exp)) in ath_cmn_process_ht20_40_fft()
420 fft_sample_40.data[i], i); in ath_cmn_process_ht20_40_fft()
422 if (fft_sample_40.data[i] > (upper_mag >> max_exp)) { in ath_cmn_process_ht20_40_fft()
425 i, fft_sample_40.data[i]); in ath_cmn_process_ht20_40_fft()
434 tlv = (struct fft_sample_tlv *)&fft_sample_40; in ath_cmn_process_ht20_40_fft()