18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (c) 2008-2011 Atheros Communications Inc. 38c2ecf20Sopenharmony_ci * Copyright (c) 2011 Neratec Solutions AG 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any 68c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above 78c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies. 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 108c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 118c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 128c2ecf20Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 138c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 148c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 158c2ecf20Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 168c2ecf20Sopenharmony_ci */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#ifndef ATH9K_DFS_H 198c2ecf20Sopenharmony_ci#define ATH9K_DFS_H 208c2ecf20Sopenharmony_ci#include "../dfs_pattern_detector.h" 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#if defined(CONFIG_ATH9K_DFS_CERTIFIED) 238c2ecf20Sopenharmony_ci/** 248c2ecf20Sopenharmony_ci * ath9k_dfs_process_phyerr - process radar PHY error 258c2ecf20Sopenharmony_ci * @sc: ath_softc 268c2ecf20Sopenharmony_ci * @data: RX payload data 278c2ecf20Sopenharmony_ci * @rs: RX status after processing descriptor 288c2ecf20Sopenharmony_ci * @mactime: receive time 298c2ecf20Sopenharmony_ci * 308c2ecf20Sopenharmony_ci * This function is called whenever the HW DFS module detects a radar 318c2ecf20Sopenharmony_ci * pulse and reports it as a PHY error. 328c2ecf20Sopenharmony_ci * 338c2ecf20Sopenharmony_ci * The radar information provided as raw payload data is validated and 348c2ecf20Sopenharmony_ci * filtered for false pulses. Events passing all tests are forwarded to 358c2ecf20Sopenharmony_ci * the DFS detector for pattern detection. 368c2ecf20Sopenharmony_ci */ 378c2ecf20Sopenharmony_civoid ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data, 388c2ecf20Sopenharmony_ci struct ath_rx_status *rs, u64 mactime); 398c2ecf20Sopenharmony_ci#else 408c2ecf20Sopenharmony_cistatic inline void 418c2ecf20Sopenharmony_ciath9k_dfs_process_phyerr(struct ath_softc *sc, void *data, 428c2ecf20Sopenharmony_ci struct ath_rx_status *rs, u64 mactime) { } 438c2ecf20Sopenharmony_ci#endif 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#endif /* ATH9K_DFS_H */ 46