45#include <sys/sysctl.h>
46#include <sys/kernel.h>
48#include <sys/malloc.h>
52#include <machine/bus.h>
53#include <machine/resource.h>
56#include <sys/socket.h>
59#include <net/if_var.h>
60#include <net/if_media.h>
61#include <net/if_arp.h>
62#include <net/ethernet.h>
64#include <net80211/ieee80211_var.h>
69#include <netinet/in.h>
70#include <netinet/if_ether.h>
117 if (! IEEE80211_IS_CHAN_DFS(chan))
121 memset(&pe,
'\0',
sizeof(pe));
132 if (IEEE80211_IS_CHAN_HT40(chan))
194 struct ieee80211_channel *chan)
224 void *outdata = NULL;
235 indata = malloc(insize, M_TEMP, M_NOWAIT);
236 if (indata == NULL) {
240 error = copyin(ad->
ad_in_data, indata, insize);
252 outdata = malloc(outsize, M_TEMP, M_NOWAIT);
253 if (outdata == NULL) {
268 memset(&peout, 0,
sizeof(peout));
272 memcpy(pe, &peout,
sizeof(*pe));
277 if (outsize < ad->ad_out_size)
283 free(indata, M_TEMP);
285 free(outdata, M_TEMP);
int ath_dfs_get_thresholds(struct ath_softc *sc, HAL_PHYERR_PARAM *param)
int ath_dfs_radar_disable(struct ath_softc *sc)
int ath_dfs_attach(struct ath_softc *sc)
int ath_dfs_radar_enable(struct ath_softc *sc, struct ieee80211_channel *chan)
int ath_dfs_detach(struct ath_softc *sc)
int ath_ioctl_phyerr(struct ath_softc *sc, struct ath_diag *ad)
int ath_dfs_tasklet_needed(struct ath_softc *sc, struct ieee80211_channel *chan)
void ath_dfs_process_phy_err(struct ath_softc *sc, struct mbuf *m, uint64_t tsf, struct ath_rx_status *rxstat)
int ath_dfs_process_radar_event(struct ath_softc *sc, struct ieee80211_channel *chan)
#define ath_hal_getdfsdefaultthresh(_ah, _param)
#define ath_hal_setcapability(_ah, _cap, _param, _v, _status)
#define ath_hal_enabledfs(_ah, _param)
#define ath_hal_getcapability(_ah, _cap, _param, _result)
#define ath_hal_getdfsthresh(_ah, _param)