Home
last modified time | relevance | path

Searched refs:fft_sample (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/contrib/dev/athk/ath10k/
H A Dspectral.c68 struct fft_sample_ath10k *fft_sample; in ath10k_spectral_process_fft() local
69 u8 buf[sizeof(*fft_sample) + SPECTRAL_ATH10K_MAX_NUM_BINS]; in ath10k_spectral_process_fft()
75 fft_sample = (struct fft_sample_ath10k *)&buf; in ath10k_spectral_process_fft()
85 length = sizeof(*fft_sample) - sizeof(struct fft_sample_tlv) + bin_len; in ath10k_spectral_process_fft()
86 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH10K; in ath10k_spectral_process_fft()
87 fft_sample->tlv.length = __cpu_to_be16(length); in ath10k_spectral_process_fft()
94 fft_sample->chan_width_mhz = 22; in ath10k_spectral_process_fft()
97 fft_sample->chan_width_mhz = 44; in ath10k_spectral_process_fft()
108 fft_sample->chan_width_mhz = 88; in ath10k_spectral_process_fft()
111 fft_sample->chan_width_mhz = phyerr->chan_width_mhz; in ath10k_spectral_process_fft()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dspectral.c579 struct fft_sample_ath11k *fft_sample, in ath11k_spectral_process_fft() argument
644 fft_sample->chan_width_mhz = chan_width_mhz; in ath11k_spectral_process_fft()
651 fft_sample->chan_width_mhz = chan_width_mhz; in ath11k_spectral_process_fft()
658 length = sizeof(*fft_sample) - sizeof(struct fft_sample_tlv) + num_bins; in ath11k_spectral_process_fft()
659 fft_sample->tlv.type = ATH_FFT_SAMPLE_ATH11K; in ath11k_spectral_process_fft()
660 fft_sample->tlv.length = __cpu_to_be16(length); in ath11k_spectral_process_fft()
662 fft_sample->tsf = __cpu_to_be32(search.timestamp); in ath11k_spectral_process_fft()
663 fft_sample->max_magnitude = __cpu_to_be16(search.peak_mag); in ath11k_spectral_process_fft()
664 fft_sample->max_index = FIELD_GET(SPECTRAL_FFT_REPORT_INFO0_PEAK_SIGNED_IDX, in ath11k_spectral_process_fft()
668 fft_sample->rssi = __cpu_to_be16(summary->inb_pwr_db); in ath11k_spectral_process_fft()
[all …]