diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2013-01-02 01:36:10 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2013-01-02 01:36:10 +0000 |
| commit | c9b690d37a1c6164e1b7a61e0060fea587fae6bb (patch) | |
| tree | b37ac77bd0d4ce797b9fff5e89e74262e8ef3a60 /sys/dev/ath/ath_dfs/null/dfs_null.c | |
| parent | e9d8a3ab4b32d76b1be912be978c947f88fd638a (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath/ath_dfs/null/dfs_null.c')
| -rw-r--r-- | sys/dev/ath/ath_dfs/null/dfs_null.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_dfs/null/dfs_null.c b/sys/dev/ath/ath_dfs/null/dfs_null.c index 11b3d8a56a29..36b20420c6c7 100644 --- a/sys/dev/ath/ath_dfs/null/dfs_null.c +++ b/sys/dev/ath/ath_dfs/null/dfs_null.c @@ -146,6 +146,26 @@ ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan) } /* + * Explicity disable radar reporting. + * + * Return 0 if it was disabled, < 0 on error. + */ +int +ath_dfs_radar_disable(struct ath_softc *sc) +{ +#if 0 + HAL_PHYERR_PARAM pe; + + (void) ath_hal_getdfsthresh(sc->sc_ah, &pe); + pe.pe_enabled = 0; + (void) ath_hal_enabledfs(sc->sc_ah, &pe); + return (0); +#else + return (0); +#endif +} + +/* * Process DFS related PHY errors * * The mbuf is not "ours" and if we want a copy, we have |
