Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2008-2011 Atheros Communications Inc.
0003  * Copyright (c) 2011 Neratec Solutions AG
0004  *
0005  * Permission to use, copy, modify, and/or distribute this software for any
0006  * purpose with or without fee is hereby granted, provided that the above
0007  * copyright notice and this permission notice appear in all copies.
0008  *
0009  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0010  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0011  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0012  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0013  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0014  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0015  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0016  */
0017 
0018 #ifndef ATH9K_DFS_H
0019 #define ATH9K_DFS_H
0020 #include "../dfs_pattern_detector.h"
0021 
0022 #if defined(CONFIG_ATH9K_DFS_CERTIFIED)
0023 /**
0024  * ath9k_dfs_process_phyerr - process radar PHY error
0025  * @sc: ath_softc
0026  * @data: RX payload data
0027  * @rs: RX status after processing descriptor
0028  * @mactime: receive time
0029  *
0030  * This function is called whenever the HW DFS module detects a radar
0031  * pulse and reports it as a PHY error.
0032  *
0033  * The radar information provided as raw payload data is validated and
0034  * filtered for false pulses. Events passing all tests are forwarded to
0035  * the DFS detector for pattern detection.
0036  */
0037 void ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
0038                   struct ath_rx_status *rs, u64 mactime);
0039 #else
0040 static inline void
0041 ath9k_dfs_process_phyerr(struct ath_softc *sc, void *data,
0042              struct ath_rx_status *rs, u64 mactime) { }
0043 #endif
0044 
0045 #endif /* ATH9K_DFS_H */