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>
118 M_TEMP, M_WAITOK | M_ZERO);
121 device_printf(sc->
sc_dev,
"%s: failed to alloc memory\n",
185 void *outdata = NULL;
205 indata = malloc(insize, M_TEMP, M_NOWAIT);
206 if (indata == NULL) {
210 error = copyin(ad->
ad_in_data, indata, insize);
222 outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO);
223 if (outdata == NULL) {
230 memset(&peout, 0,
sizeof(peout));
234 memcpy(pe, &peout,
sizeof(*pe));
260 if (insize <
sizeof(
int)) {
261 device_printf(sc->
sc_dev,
"%d != %d\n",
267 if (indata == NULL) {
268 device_printf(sc->
sc_dev,
"indata=NULL\n");
272 val = * ((
int *) indata);
287 if (outsize < ad->ad_out_size)
293 free(indata, M_TEMP);
295 free(outdata, M_TEMP);
#define ath_power_restore_power_state(sc)
#define ath_power_set_power_state(sc, ps)
int ath_spectral_enable(struct ath_softc *sc, struct ieee80211_channel *ch)
int ath_spectral_detach(struct ath_softc *sc)
int ath_spectral_attach(struct ath_softc *sc)
int ath_ioctl_spectral(struct ath_softc *sc, struct ath_diag *ad)
#define SPECTRAL_CONTROL_ENABLE
#define SPECTRAL_CONTROL_DISABLE
#define SPECTRAL_CONTROL_GET_PARAMS
#define SPECTRAL_CONTROL_STOP
#define SPECTRAL_CONTROL_START
#define SPECTRAL_CONTROL_ENABLE_AT_RESET
#define SPECTRAL_CONTROL_SET_PARAMS
#define ath_hal_spectral_get_config(_ah, _p)
#define ath_hal_spectral_supported(_ah)
#define ath_hal_spectral_configure(_ah, _p)
#define ath_hal_spectral_start(_ah)
#define ath_hal_spectral_stop(_ah)
int spectral_enable_after_reset
HAL_SPECTRAL_PARAM spectral_state