7a1306a70fee0e017a445bde1dcfd1997f691cf4xc/*
3caf11144eab1a56717f986d44ae7f40ee8b28fcxc * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * Use is subject to license terms.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc */
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc/*
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * Copyright (c) 2002-2004 Sam Leffler, Errno Consulting
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * All rights reserved.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc *
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * Redistribution and use in source and binary forms, with or without
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * modification, are permitted provided that the following conditions
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * are met:
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * 1. Redistributions of source code must retain the above copyright
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * notice, this list of conditions and the following disclaimer,
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * without modification.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * 2. Redistributions in binary form must reproduce at minimum a disclaimer
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * redistribution must be conditioned upon including a substantially
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * similar Disclaimer requirement for further binary redistribution.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * 3. Neither the names of the above-listed copyright holders nor the names
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * of any contributors may be used to endorse or promote products derived
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * from this software without specific prior written permission.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc *
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * NO WARRANTY
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc * THE POSSIBILITY OF SUCH DAMAGES.
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc */
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#ifndef _ATH_AUX_H
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#define _ATH_AUX_H
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#ifdef __cplusplus
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcextern "C" {
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#endif
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#include "ath_hal.h"
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#include "ath_impl.h"
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcuint32_t ath_calcrxfilter(ath_t *asc);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_beacon_config(ath_t *asc);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcint ath_reset(ieee80211com_t *ic);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcint32_t ath_startrecv(ath_t *asc);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_stoprecv(ath_t *asc);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcuint32_t ath_chan2flags(ieee80211com_t *isc,
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc struct ieee80211_channel *chan);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcint32_t ath_getchannels(ath_t *asc, uint32_t cc,
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc HAL_BOOL outdoor, HAL_BOOL xchanmode);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcvoid ath_chan_change(ath_t *asc, struct ieee80211_channel *chan);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcint32_t ath_chan_set(ath_t *asc, struct ieee80211_channel *chan);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcint ath_txq_setup(ath_t *asc);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcvoid ath_txq_cleanup(ath_t *asc);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_rate_setup(ath_t *asc, uint32_t mode);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_setcurmode(ath_t *asc, enum ieee80211_phymode mode);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_mode_init(ath_t *asc);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xcvoid ath_draintxq(ath_t *asc);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcint ath_key_alloc(ieee80211com_t *ic, const struct ieee80211_key *k,
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc ieee80211_keyix *keyix, ieee80211_keyix *rxkeyix);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcint ath_key_delete(ieee80211com_t *ic, const struct ieee80211_key *k);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcint ath_key_set(ieee80211com_t *ic, const struct ieee80211_key *k,
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxc const uint8_t mac[IEEE80211_ADDR_LEN]);
0ba2cbe97e0678a691742f98d2532caed0a2c4aaxcvoid ath_set_shortslot(ieee80211com_t *ic, int onoff);
3caf11144eab1a56717f986d44ae7f40ee8b28fcxcconst char *ath_get_hal_status_desc(HAL_STATUS status);
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#ifdef __cplusplus
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc}
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#endif
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc
7a1306a70fee0e017a445bde1dcfd1997f691cf4xc#endif /* _ATH_AUX_H */