1222585Sadrian/*- 2222585Sadrian * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd 3222585Sadrian * All rights reserved. 4222585Sadrian * 5222585Sadrian * Redistribution and use in source and binary forms, with or without 6222585Sadrian * modification, are permitted provided that the following conditions 7222585Sadrian * are met: 8222585Sadrian * 1. Redistributions of source code must retain the above copyright 9222585Sadrian * notice, this list of conditions and the following disclaimer, 10222585Sadrian * without modification. 11222585Sadrian * 2. Redistributions in binary form must reproduce at minimum a disclaimer 12222585Sadrian * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any 13222585Sadrian * redistribution must be conditioned upon including a substantially 14222585Sadrian * similar Disclaimer requirement for further binary redistribution. 15222585Sadrian * 16222585Sadrian * NO WARRANTY 17222585Sadrian * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18222585Sadrian * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19222585Sadrian * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY 20222585Sadrian * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 21222585Sadrian * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 22222585Sadrian * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23222585Sadrian * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24222585Sadrian * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 25222585Sadrian * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26222585Sadrian * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 27222585Sadrian * THE POSSIBILITY OF SUCH DAMAGES. 28222585Sadrian * 29222585Sadrian * $FreeBSD$ 30222585Sadrian */ 31222585Sadrian#ifndef __IF_ATHDFS_H__ 32222585Sadrian#define __IF_ATHDFS_H__ 33222585Sadrian 34222585Sadrianextern int ath_dfs_attach(struct ath_softc *sc); 35222585Sadrianextern int ath_dfs_detach(struct ath_softc *sc); 36222585Sadrianextern void ath_dfs_radar_enable(struct ath_softc *, 37222585Sadrian struct ieee80211_channel *chan); 38222668Sadrianextern void ath_dfs_process_phy_err(struct ath_softc *sc, const char *buf, 39222585Sadrian uint64_t tsf, struct ath_rx_status *rxstat); 40222585Sadrianextern int ath_dfs_process_radar_event(struct ath_softc *sc, 41222585Sadrian struct ieee80211_channel *chan); 42222585Sadrianextern int ath_dfs_tasklet_needed(struct ath_softc *sc, 43222585Sadrian struct ieee80211_channel *chan); 44222585Sadrianextern int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad); 45224716Sadrianextern int ath_dfs_get_thresholds(struct ath_softc *sc, 46224716Sadrian HAL_PHYERR_PARAM *param); 47222585Sadrian 48222585Sadrian#endif /* __IF_ATHDFS_H__ */ 49