Deleted Added
full compact
dfs_null.c (240002) dfs_null.c (244946)
1/*-
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
1/*-
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 12 unchanged lines hidden (view full) ---

21 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27 * THE POSSIBILITY OF SUCH DAMAGES.
28 *
29 * $FreeBSD: head/sys/dev/ath/ath_dfs/null/dfs_null.c 240002 2012-09-02 05:01:10Z adrian $
29 * $FreeBSD: head/sys/dev/ath/ath_dfs/null/dfs_null.c 244946 2013-01-02 01:36:10Z adrian $
30 */
31#include <sys/cdefs.h>
30 */
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/ath/ath_dfs/null/dfs_null.c 240002 2012-09-02 05:01:10Z adrian $");
32__FBSDID("$FreeBSD: head/sys/dev/ath/ath_dfs/null/dfs_null.c 244946 2013-01-02 01:36:10Z adrian $");
33
34/*
35 * This implements an empty DFS module.
36 */
37#include "opt_ath.h"
38#include "opt_inet.h"
39#include "opt_wlan.h"
40

--- 100 unchanged lines hidden (view full) ---

141
142 return (1);
143#else
144 return (0);
145#endif
146}
147
148/*
33
34/*
35 * This implements an empty DFS module.
36 */
37#include "opt_ath.h"
38#include "opt_inet.h"
39#include "opt_wlan.h"
40

--- 100 unchanged lines hidden (view full) ---

141
142 return (1);
143#else
144 return (0);
145#endif
146}
147
148/*
149 * Explicity disable radar reporting.
150 *
151 * Return 0 if it was disabled, < 0 on error.
152 */
153int
154ath_dfs_radar_disable(struct ath_softc *sc)
155{
156#if 0
157 HAL_PHYERR_PARAM pe;
158
159 (void) ath_hal_getdfsthresh(sc->sc_ah, &pe);
160 pe.pe_enabled = 0;
161 (void) ath_hal_enabledfs(sc->sc_ah, &pe);
162 return (0);
163#else
164 return (0);
165#endif
166}
167
168/*
149 * Process DFS related PHY errors
150 *
151 * The mbuf is not "ours" and if we want a copy, we have
152 * to take a copy. It'll be freed after this function returns.
153 */
154void
155ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m,
156 uint64_t tsf, struct ath_rx_status *rxstat)

--- 117 unchanged lines hidden ---
169 * Process DFS related PHY errors
170 *
171 * The mbuf is not "ours" and if we want a copy, we have
172 * to take a copy. It'll be freed after this function returns.
173 */
174void
175ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m,
176 uint64_t tsf, struct ath_rx_status *rxstat)

--- 117 unchanged lines hidden ---