|
@@ -151,6 +151,7 @@ static inline u8 spectral_bitmap_weight(u8 *bins)
|
|
|
return bins[0] & 0x3f;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_ATH9K_COMMON_DEBUG
|
|
|
void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv, struct dentry *debugfs_phy);
|
|
|
void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv);
|
|
|
|
|
@@ -161,5 +162,27 @@ int ath9k_cmn_spectral_scan_config(struct ath_common *common,
|
|
|
enum spectral_mode spectral_mode);
|
|
|
int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr,
|
|
|
struct ath_rx_status *rs, u64 tsf);
|
|
|
+#else
|
|
|
+static inline void ath9k_cmn_spectral_init_debug(struct ath_spec_scan_priv *spec_priv,
|
|
|
+ struct dentry *debugfs_phy)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+static inline void ath9k_cmn_spectral_deinit_debug(struct ath_spec_scan_priv *spec_priv)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+static inline void ath9k_cmn_spectral_scan_trigger(struct ath_common *common,
|
|
|
+ struct ath_spec_scan_priv *spec_priv)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+static inline int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv,
|
|
|
+ struct ieee80211_hdr *hdr,
|
|
|
+ struct ath_rx_status *rs, u64 tsf)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif /* CONFIG_ATH9K_COMMON_DEBUG */
|
|
|
|
|
|
#endif /* SPECTRAL_H */
|