Lines Matching refs:ab

228 		ath11k_warn(ar->ab, "failed to enable spectral scan: %d\n", ret);
262 ath11k_warn(ar->ab, "failed to configure spectral scan: %d\n", ret);
323 ath11k_warn(ar->ab, "failed to reconfigure spectral scan: %d\n",
330 ath11k_warn(ar->ab, "failed to trigger spectral scan: %d\n",
443 val > ar->ab->hw_params.spectral.max_fft_bins)
573 struct ath11k_base *ab = ar->ab;
586 if (!ab->hw_params.spectral.fft_sz) {
587 ath11k_warn(ab, "invalid bin size type for hw rev %d\n",
588 ab->hw_rev);
596 bin_len = tlv_len - ab->hw_params.spectral.fft_hdr_len;
599 ath11k_warn(ab, "mismatch in expected bin len %d and data len %d\n",
604 bin_sz = ab->hw_params.spectral.fft_sz + ab->hw_params.spectral.fft_pad_sz;
610 num_bins > ATH11K_SPECTRAL_MAX_IB_BINS(ab) ||
612 ath11k_warn(ab, "Invalid num of bins %d\n", num_bins);
616 check_length = sizeof(*fft_report) + (num_bins * ab->hw_params.spectral.fft_sz);
619 ath11k_warn(ar->ab, "found magic value in fft data, dropping\n");
625 ath11k_warn(ab, "failed to pull search report %d\n", ret);
638 if (ab->hw_params.spectral.fragment_160mhz) {
645 ath11k_warn(ab, "invalid channel width %d\n", chan_width_mhz);
680 ab->hw_params.spectral.fft_sz);
697 struct ath11k_base *ab = ar->ab;
716 sample_sz = sizeof(*fft_sample) + ATH11K_SPECTRAL_MAX_IB_BINS(ab);
728 ath11k_warn(ab, "failed to parse spectral tlv hdr at bytes %d\n",
738 ath11k_warn(ab, "Invalid sign 0x%x at bytes %d\n",
749 ath11k_warn(ab, "failed to parse spectral tlv payload at bytes %d tlv_len:%d data_len:%d\n",
765 ab->hw_params.spectral.summary_pad_sz;
768 ath11k_warn(ab, "failed to parse spectral summary at bytes %d tlv_len:%d\n",
776 ath11k_warn(ar->ab, "found magic value in spectral summary, dropping\n");
787 ath11k_warn(ab, "failed to parse spectral search fft at bytes %d\n",
798 ath11k_warn(ab, "failed to process spectral fft at bytes %d\n",
827 ath11k_warn(ar->ab, "failed to setup db ring\n");
838 ath11k_warn(ar->ab, "failed to setup db ring buffer\n");
845 ath11k_warn(ar->ab, "failed to setup db ring cfg\n");
900 void ath11k_spectral_deinit(struct ath11k_base *ab)
906 for (i = 0; i < ab->num_radios; i++) {
907 ar = ab->pdevs[i].ar;
932 ATH11K_SPECTRAL_SUB_BUFF_SIZE(ar->ab),
936 ath11k_warn(ar->ab, "failed to open relay in pdev %d\n",
946 ath11k_warn(ar->ab, "failed to open debugfs in pdev %d\n",
957 ath11k_warn(ar->ab, "failed to open debugfs in pdev %d\n",
968 ath11k_warn(ar->ab, "failed to open debugfs in pdev %d\n",
981 int ath11k_spectral_init(struct ath11k_base *ab)
990 ab->wmi_ab.svc_map))
993 if (!ab->hw_params.spectral.fft_sz)
996 for (i = 0; i < ab->num_radios; i++) {
997 ar = ab->pdevs[i].ar;
1000 ret = ath11k_dbring_get_cap(ar->ab, ar->pdev_idx,
1012 ath11k_warn(ab, "failed to init spectral ring for pdev %d\n",
1028 ath11k_warn(ab, "failed to register spectral for pdev %d\n",
1037 ath11k_spectral_deinit(ab);