1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17#ifndef SPECTRAL_H
18#define SPECTRAL_H
19
20#include "../spectral_common.h"
21
22
23
24
25
26
27
28struct ath10k_spec_scan {
29 u8 count;
30 u8 fft_size;
31};
32
33
34
35
36
37
38
39
40
41enum ath10k_spectral_mode {
42 SPECTRAL_DISABLED = 0,
43 SPECTRAL_BACKGROUND,
44 SPECTRAL_MANUAL,
45};
46
47#ifdef CONFIG_ATH10K_DEBUGFS
48
49int ath10k_spectral_process_fft(struct ath10k *ar,
50 const struct wmi_phyerr *phyerr,
51 const struct phyerr_fft_report *fftr,
52 size_t bin_len, u64 tsf);
53int ath10k_spectral_start(struct ath10k *ar);
54int ath10k_spectral_vif_stop(struct ath10k_vif *arvif);
55int ath10k_spectral_create(struct ath10k *ar);
56void ath10k_spectral_destroy(struct ath10k *ar);
57
58#else
59
60static inline int
61ath10k_spectral_process_fft(struct ath10k *ar,
62 const struct wmi_phyerr *phyerr,
63 const struct phyerr_fft_report *fftr,
64 size_t bin_len, u64 tsf)
65{
66 return 0;
67}
68
69static inline int ath10k_spectral_start(struct ath10k *ar)
70{
71 return 0;
72}
73
74static inline int ath10k_spectral_vif_stop(struct ath10k_vif *arvif)
75{
76 return 0;
77}
78
79static inline int ath10k_spectral_create(struct ath10k *ar)
80{
81 return 0;
82}
83
84static inline void ath10k_spectral_destroy(struct ath10k *ar)
85{
86}
87
88#endif
89
90#endif
91