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: releng/11.0/sys/dev/ath/if_athdfs.h 244946 2013-01-02 01:36:10Z adrian $ 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); 36230658Sadrianextern int ath_dfs_radar_enable(struct ath_softc *, 37222585Sadrian struct ieee80211_channel *chan); 38244946Sadrianextern int ath_dfs_radar_disable(struct ath_softc *sc); 39237526Sadrianextern void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, 40222585Sadrian uint64_t tsf, struct ath_rx_status *rxstat); 41222585Sadrianextern int ath_dfs_process_radar_event(struct ath_softc *sc, 42222585Sadrian struct ieee80211_channel *chan); 43222585Sadrianextern int ath_dfs_tasklet_needed(struct ath_softc *sc, 44222585Sadrian struct ieee80211_channel *chan); 45222585Sadrianextern int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad); 46224716Sadrianextern int ath_dfs_get_thresholds(struct ath_softc *sc, 47224716Sadrian HAL_PHYERR_PARAM *param); 48222585Sadrian 49222585Sadrian#endif /* __IF_ATHDFS_H__ */ 50